Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /home/domain/public_html/wp-includes/widgets/class-wp-widget-text.php on line 59

  • Unknown's avatar

    ‘widget_text’,
    ‘description’ => __( ‘Arbitrary text or HTML.’ ),
    ‘customize_selective_refresh’ => true,
    );
    $control_ops = array( ‘width’ => 400, ‘height’ => 350 );
    parent::__construct( ‘text’, __( ‘Text’ ), $widget_ops, $control_ops );
    }

    /**
    * Outputs the content for the current Text widget instance.
    *
    * @since 2.8.0
    * @access public
    *
    * @param array $args Display arguments including ‘before_title’, ‘after_title’,
    * ‘before_widget’, and ‘after_widget’.
    * @param array $instance Settings for the current Text widget instance.
    */
    public function widget( $args, $instance ) {

    /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    $title = apply_filters( ‘widget_title’, empty( $instance[‘title’] ) ? ” : $instance[‘title’], $instance, $this->id_base );

    $widget_text = ! empty( $instance[‘text’] ) ? $instance[‘text’] : ”;
    }
    /**
    * Filters the content of the Text widget.
    *
    * @since 2.3.0
    * @since 4.4.0 Added the `$this` parameter.
    *
    * @param string $widget_text The widget content.
    * @param

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
  • Hi there,

    On what site are you seeing this error, and what were you doing that caused it to appear?

    If you’re working on a site using the open source WordPress software, please post in the self-hosted WordPress forums instead, as we do not provide support for those sites here on WordPress.com:

    https://wordpress.org/support/

  • The topic ‘Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /home/domain/public_html/wp-includes/widgets/class-wp-widget-text.php on line 59’ is closed to new replies.