[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/widgets/ -> class-wp-widget-text.php (source)

   1  <?php
   2  /**
   3   * Widget API: WP_Widget_Text class
   4   *
   5   * @package WordPress
   6   * @subpackage Widgets
   7   * @since 4.4.0
   8   */
   9  
  10  /**
  11   * Core class used to implement a Text widget.
  12   *
  13   * @since 2.8.0
  14   *
  15   * @see WP_Widget
  16   */
  17  class WP_Widget_Text extends WP_Widget {
  18  
  19      /**
  20       * Whether or not the widget has been registered yet.
  21       *
  22       * @since 4.8.1
  23       * @var bool
  24       */
  25      protected $registered = false;
  26  
  27      /**
  28       * Sets up a new Text widget instance.
  29       *
  30       * @since 2.8.0
  31       */
  32  	public function __construct() {
  33          $widget_ops  = array(
  34              'classname'                   => 'widget_text',
  35              'description'                 => __( 'Arbitrary text.' ),
  36              'customize_selective_refresh' => true,
  37          );
  38          $control_ops = array(
  39              'width'  => 400,
  40              'height' => 350,
  41          );
  42          parent::__construct( 'text', __( 'Text' ), $widget_ops, $control_ops );
  43      }
  44  
  45      /**
  46       * Add hooks for enqueueing assets when registering all widget instances of this widget class.
  47       *
  48       * @param integer $number Optional. The unique order number of this widget instance
  49       *                        compared to other instances of the same class. Default -1.
  50       */
  51  	public function _register_one( $number = -1 ) {
  52          parent::_register_one( $number );
  53          if ( $this->registered ) {
  54              return;
  55          }
  56          $this->registered = true;
  57  
  58          wp_add_inline_script( 'text-widgets', sprintf( 'wp.textWidgets.idBases.push( %s );', wp_json_encode( $this->id_base ) ) );
  59  
  60          if ( $this->is_preview() ) {
  61              add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) );
  62          }
  63  
  64          // Note that the widgets component in the customizer will also do the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
  65          add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );
  66  
  67          // Note that the widgets component in the customizer will also do the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
  68          add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Text', 'render_control_template_scripts' ) );
  69      }
  70  
  71      /**
  72       * Determines whether a given instance is legacy and should bypass using TinyMCE.
  73       *
  74       * @since 4.8.1
  75       *
  76       * @param array $instance {
  77       *     Instance data.
  78       *
  79       *     @type string      $text   Content.
  80       *     @type bool|string $filter Whether autop or content filters should apply.
  81       *     @type bool        $legacy Whether widget is in legacy mode.
  82       * }
  83       * @return bool Whether Text widget instance contains legacy data.
  84       */
  85  	public function is_legacy_instance( $instance ) {
  86  
  87          // Legacy mode when not in visual mode.
  88          if ( isset( $instance['visual'] ) ) {
  89              return ! $instance['visual'];
  90          }
  91  
  92          // Or, the widget has been added/updated in 4.8.0 then filter prop is 'content' and it is no longer legacy.
  93          if ( isset( $instance['filter'] ) && 'content' === $instance['filter'] ) {
  94              return false;
  95          }
  96  
  97          // If the text is empty, then nothing is preventing migration to TinyMCE.
  98          if ( empty( $instance['text'] ) ) {
  99              return false;
 100          }
 101  
 102          $wpautop         = ! empty( $instance['filter'] );
 103          $has_line_breaks = ( false !== strpos( trim( $instance['text'] ), "\n" ) );
 104  
 105          // If auto-paragraphs are not enabled and there are line breaks, then ensure legacy mode.
 106          if ( ! $wpautop && $has_line_breaks ) {
 107              return true;
 108          }
 109  
 110          // If an HTML comment is present, assume legacy mode.
 111          if ( false !== strpos( $instance['text'], '<!--' ) ) {
 112              return true;
 113          }
 114  
 115          // In the rare case that DOMDocument is not available we cannot reliably sniff content and so we assume legacy.
 116          if ( ! class_exists( 'DOMDocument' ) ) {
 117              // @codeCoverageIgnoreStart
 118              return true;
 119              // @codeCoverageIgnoreEnd
 120          }
 121  
 122          $doc = new DOMDocument();
 123  
 124          // Suppress warnings generated by loadHTML
 125          $errors = libxml_use_internal_errors( true );
 126          // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
 127          @$doc->loadHTML(
 128              sprintf(
 129                  '<!DOCTYPE html><html><head><meta charset="%s"></head><body>%s</body></html>',
 130                  esc_attr( get_bloginfo( 'charset' ) ),
 131                  $instance['text']
 132              )
 133          );
 134          libxml_use_internal_errors( $errors );
 135  
 136          $body = $doc->getElementsByTagName( 'body' )->item( 0 );
 137  
 138          // See $allowedposttags.
 139          $safe_elements_attributes = array(
 140              'strong'  => array(),
 141              'em'      => array(),
 142              'b'       => array(),
 143              'i'       => array(),
 144              'u'       => array(),
 145              's'       => array(),
 146              'ul'      => array(),
 147              'ol'      => array(),
 148              'li'      => array(),
 149              'hr'      => array(),
 150              'abbr'    => array(),
 151              'acronym' => array(),
 152              'code'    => array(),
 153              'dfn'     => array(),
 154              'a'       => array(
 155                  'href' => true,
 156              ),
 157              'img'     => array(
 158                  'src' => true,
 159                  'alt' => true,
 160              ),
 161          );
 162          $safe_empty_elements      = array( 'img', 'hr', 'iframe' );
 163  
 164          foreach ( $body->getElementsByTagName( '*' ) as $element ) {
 165              /** @var DOMElement $element */
 166              $tag_name = strtolower( $element->nodeName );
 167  
 168              // If the element is not safe, then the instance is legacy.
 169              if ( ! isset( $safe_elements_attributes[ $tag_name ] ) ) {
 170                  return true;
 171              }
 172  
 173              // If the element is not safely empty and it has empty contents, then legacy mode.
 174              if ( ! in_array( $tag_name, $safe_empty_elements, true ) && '' === trim( $element->textContent ) ) {
 175                  return true;
 176              }
 177  
 178              // If an attribute is not recognized as safe, then the instance is legacy.
 179              foreach ( $element->attributes as $attribute ) {
 180                  /** @var DOMAttr $attribute */
 181                  $attribute_name = strtolower( $attribute->nodeName );
 182  
 183                  if ( ! isset( $safe_elements_attributes[ $tag_name ][ $attribute_name ] ) ) {
 184                      return true;
 185                  }
 186              }
 187          }
 188  
 189          // Otherwise, the text contains no elements/attributes that TinyMCE could drop, and therefore the widget does not need legacy mode.
 190          return false;
 191      }
 192  
 193      /**
 194       * Filter gallery shortcode attributes.
 195       *
 196       * Prevents all of a site's attachments from being shown in a gallery displayed on a
 197       * non-singular template where a $post context is not available.
 198       *
 199       * @since 4.9.0
 200       *
 201       * @param array $attrs Attributes.
 202       * @return array Attributes.
 203       */
 204  	public function _filter_gallery_shortcode_attrs( $attrs ) {
 205          if ( ! is_singular() && empty( $attrs['id'] ) && empty( $attrs['include'] ) ) {
 206              $attrs['id'] = -1;
 207          }
 208          return $attrs;
 209      }
 210  
 211      /**
 212       * Outputs the content for the current Text widget instance.
 213       *
 214       * @since 2.8.0
 215       *
 216       * @global WP_Post $post Global post object.
 217       *
 218       * @param array $args     Display arguments including 'before_title', 'after_title',
 219       *                        'before_widget', and 'after_widget'.
 220       * @param array $instance Settings for the current Text widget instance.
 221       */
 222  	public function widget( $args, $instance ) {
 223          global $post;
 224  
 225          $title = ! empty( $instance['title'] ) ? $instance['title'] : '';
 226  
 227          /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
 228          $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
 229  
 230          $text                  = ! empty( $instance['text'] ) ? $instance['text'] : '';
 231          $is_visual_text_widget = ( ! empty( $instance['visual'] ) && ! empty( $instance['filter'] ) );
 232  
 233          // In 4.8.0 only, visual Text widgets get filter=content, without visual prop; upgrade instance props just-in-time.
 234          if ( ! $is_visual_text_widget ) {
 235              $is_visual_text_widget = ( isset( $instance['filter'] ) && 'content' === $instance['filter'] );
 236          }
 237          if ( $is_visual_text_widget ) {
 238              $instance['filter'] = true;
 239              $instance['visual'] = true;
 240          }
 241  
 242          /*
 243           * Suspend legacy plugin-supplied do_shortcode() for 'widget_text' filter for the visual Text widget to prevent
 244           * shortcodes being processed twice. Now do_shortcode() is added to the 'widget_text_content' filter in core itself
 245           * and it applies after wpautop() to prevent corrupting HTML output added by the shortcode. When do_shortcode() is
 246           * added to 'widget_text_content' then do_shortcode() will be manually called when in legacy mode as well.
 247           */
 248          $widget_text_do_shortcode_priority       = has_filter( 'widget_text', 'do_shortcode' );
 249          $should_suspend_legacy_shortcode_support = ( $is_visual_text_widget && false !== $widget_text_do_shortcode_priority );
 250          if ( $should_suspend_legacy_shortcode_support ) {
 251              remove_filter( 'widget_text', 'do_shortcode', $widget_text_do_shortcode_priority );
 252          }
 253  
 254          // Override global $post so filters (and shortcodes) apply in a consistent context.
 255          $original_post = $post;
 256          if ( is_singular() ) {
 257              // Make sure post is always the queried object on singular queries (not from another sub-query that failed to clean up the global $post).
 258              $post = get_queried_object();
 259          } else {
 260              // Nullify the $post global during widget rendering to prevent shortcodes from running with the unexpected context on archive queries.
 261              $post = null;
 262          }
 263  
 264          // Prevent dumping out all attachments from the media library.
 265          add_filter( 'shortcode_atts_gallery', array( $this, '_filter_gallery_shortcode_attrs' ) );
 266  
 267          /**
 268           * Filters the content of the Text widget.
 269           *
 270           * @since 2.3.0
 271           * @since 4.4.0 Added the `$this` parameter.
 272           * @since 4.8.1 The `$this` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object.
 273           *
 274           * @param string                               $text     The widget content.
 275           * @param array                                $instance Array of settings for the current widget.
 276           * @param WP_Widget_Text|WP_Widget_Custom_HTML $this     Current Text widget instance.
 277           */
 278          $text = apply_filters( 'widget_text', $text, $instance, $this );
 279  
 280          if ( $is_visual_text_widget ) {
 281  
 282              /**
 283               * Filters the content of the Text widget to apply changes expected from the visual (TinyMCE) editor.
 284               *
 285               * By default a subset of the_content filters are applied, including wpautop and wptexturize.
 286               *
 287               * @since 4.8.0
 288               *
 289               * @param string         $text     The widget content.
 290               * @param array          $instance Array of settings for the current widget.
 291               * @param WP_Widget_Text $this     Current Text widget instance.
 292               */
 293              $text = apply_filters( 'widget_text_content', $text, $instance, $this );
 294          } else {
 295              // Now in legacy mode, add paragraphs and line breaks when checkbox is checked.
 296              if ( ! empty( $instance['filter'] ) ) {
 297                  $text = wpautop( $text );
 298              }
 299  
 300              /*
 301               * Manually do shortcodes on the content when the core-added filter is present. It is added by default
 302               * in core by adding do_shortcode() to the 'widget_text_content' filter to apply after wpautop().
 303               * Since the legacy Text widget runs wpautop() after 'widget_text' filters are applied, the widget in
 304               * legacy mode here manually applies do_shortcode() on the content unless the default
 305               * core filter for 'widget_text_content' has been removed, or if do_shortcode() has already
 306               * been applied via a plugin adding do_shortcode() to 'widget_text' filters.
 307               */
 308              if ( has_filter( 'widget_text_content', 'do_shortcode' ) && ! $widget_text_do_shortcode_priority ) {
 309                  if ( ! empty( $instance['filter'] ) ) {
 310                      $text = shortcode_unautop( $text );
 311                  }
 312                  $text = do_shortcode( $text );
 313              }
 314          }
 315  
 316          // Restore post global.
 317          $post = $original_post;
 318          remove_filter( 'shortcode_atts_gallery', array( $this, '_filter_gallery_shortcode_attrs' ) );
 319  
 320          // Undo suspension of legacy plugin-supplied shortcode handling.
 321          if ( $should_suspend_legacy_shortcode_support ) {
 322              add_filter( 'widget_text', 'do_shortcode', $widget_text_do_shortcode_priority );
 323          }
 324  
 325          echo $args['before_widget'];
 326          if ( ! empty( $title ) ) {
 327              echo $args['before_title'] . $title . $args['after_title'];
 328          }
 329  
 330          $text = preg_replace_callback( '#<(video|iframe|object|embed)\s[^>]*>#i', array( $this, 'inject_video_max_width_style' ), $text );
 331  
 332          // Adds noreferrer and noopener relationships, without duplicating values, to all HTML A elements that have a target.
 333          $text = wp_targeted_link_rel( $text );
 334  
 335          ?>
 336              <div class="textwidget"><?php echo $text; ?></div>
 337          <?php
 338          echo $args['after_widget'];
 339      }
 340  
 341      /**
 342       * Inject max-width and remove height for videos too constrained to fit inside sidebars on frontend.
 343       *
 344       * @since 4.9.0
 345       *
 346       * @see WP_Widget_Media_Video::inject_video_max_width_style()
 347       * @param array $matches Pattern matches from preg_replace_callback.
 348       * @return string HTML Output.
 349       */
 350  	public function inject_video_max_width_style( $matches ) {
 351          $html = $matches[0];
 352          $html = preg_replace( '/\sheight="\d+"/', '', $html );
 353          $html = preg_replace( '/\swidth="\d+"/', '', $html );
 354          $html = preg_replace( '/(?<=width:)\s*\d+px(?=;?)/', '100%', $html );
 355          return $html;
 356      }
 357  
 358      /**
 359       * Handles updating settings for the current Text widget instance.
 360       *
 361       * @since 2.8.0
 362       *
 363       * @param array $new_instance New settings for this instance as input by the user via
 364       *                            WP_Widget::form().
 365       * @param array $old_instance Old settings for this instance.
 366       * @return array Settings to save or bool false to cancel saving.
 367       */
 368  	public function update( $new_instance, $old_instance ) {
 369          $new_instance = wp_parse_args(
 370              $new_instance,
 371              array(
 372                  'title'  => '',
 373                  'text'   => '',
 374                  'filter' => false, // For back-compat.
 375                  'visual' => null, // Must be explicitly defined.
 376              )
 377          );
 378  
 379          $instance = $old_instance;
 380  
 381          $instance['title'] = sanitize_text_field( $new_instance['title'] );
 382          if ( current_user_can( 'unfiltered_html' ) ) {
 383              $instance['text'] = $new_instance['text'];
 384          } else {
 385              $instance['text'] = wp_kses_post( $new_instance['text'] );
 386          }
 387  
 388          $instance['filter'] = ! empty( $new_instance['filter'] );
 389  
 390          // Upgrade 4.8.0 format.
 391          if ( isset( $old_instance['filter'] ) && 'content' === $old_instance['filter'] ) {
 392              $instance['visual'] = true;
 393          }
 394          if ( 'content' === $new_instance['filter'] ) {
 395              $instance['visual'] = true;
 396          }
 397  
 398          if ( isset( $new_instance['visual'] ) ) {
 399              $instance['visual'] = ! empty( $new_instance['visual'] );
 400          }
 401  
 402          // Filter is always true in visual mode.
 403          if ( ! empty( $instance['visual'] ) ) {
 404              $instance['filter'] = true;
 405          }
 406  
 407          return $instance;
 408      }
 409  
 410      /**
 411       * Enqueue preview scripts.
 412       *
 413       * These scripts normally are enqueued just-in-time when a playlist shortcode is used.
 414       * However, in the customizer, a playlist shortcode may be used in a text widget and
 415       * dynamically added via selective refresh, so it is important to unconditionally enqueue them.
 416       *
 417       * @since 4.9.3
 418       */
 419  	public function enqueue_preview_scripts() {
 420          require_once dirname( dirname( __FILE__ ) ) . '/media.php';
 421  
 422          wp_playlist_scripts( 'audio' );
 423          wp_playlist_scripts( 'video' );
 424      }
 425  
 426      /**
 427       * Loads the required scripts and styles for the widget control.
 428       *
 429       * @since 4.8.0
 430       */
 431  	public function enqueue_admin_scripts() {
 432          wp_enqueue_editor();
 433          wp_enqueue_media();
 434          wp_enqueue_script( 'text-widgets' );
 435          wp_add_inline_script( 'text-widgets', 'wp.textWidgets.init();', 'after' );
 436      }
 437  
 438      /**
 439       * Outputs the Text widget settings form.
 440       *
 441       * @since 2.8.0
 442       * @since 4.8.0 Form only contains hidden inputs which are synced with JS template.
 443       * @since 4.8.1 Restored original form to be displayed when in legacy mode.
 444       * @see WP_Widget_Text::render_control_template_scripts()
 445       * @see _WP_Editors::editor()
 446       *
 447       * @param array $instance Current settings.
 448       * @return void
 449       */
 450  	public function form( $instance ) {
 451          $instance = wp_parse_args(
 452              (array) $instance,
 453              array(
 454                  'title' => '',
 455                  'text'  => '',
 456              )
 457          );
 458          ?>
 459          <?php if ( ! $this->is_legacy_instance( $instance ) ) : ?>
 460              <?php
 461  
 462              if ( user_can_richedit() ) {
 463                  add_filter( 'the_editor_content', 'format_for_editor', 10, 2 );
 464                  $default_editor = 'tinymce';
 465              } else {
 466                  $default_editor = 'html';
 467              }
 468  
 469              /** This filter is documented in wp-includes/class-wp-editor.php */
 470              $text = apply_filters( 'the_editor_content', $instance['text'], $default_editor );
 471  
 472              // Reset filter addition.
 473              if ( user_can_richedit() ) {
 474                  remove_filter( 'the_editor_content', 'format_for_editor' );
 475              }
 476  
 477              // Prevent premature closing of textarea in case format_for_editor() didn't apply or the_editor_content filter did a wrong thing.
 478              $escaped_text = preg_replace( '#</textarea#i', '&lt;/textarea', $text );
 479  
 480              ?>
 481              <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" class="title sync-input" type="hidden" value="<?php echo esc_attr( $instance['title'] ); ?>">
 482              <textarea id="<?php echo $this->get_field_id( 'text' ); ?>" name="<?php echo $this->get_field_name( 'text' ); ?>" class="text sync-input" hidden><?php echo $escaped_text; ?></textarea>
 483              <input id="<?php echo $this->get_field_id( 'filter' ); ?>" name="<?php echo $this->get_field_name( 'filter' ); ?>" class="filter sync-input" type="hidden" value="on">
 484              <input id="<?php echo $this->get_field_id( 'visual' ); ?>" name="<?php echo $this->get_field_name( 'visual' ); ?>" class="visual sync-input" type="hidden" value="on">
 485          <?php else : ?>
 486              <input id="<?php echo $this->get_field_id( 'visual' ); ?>" name="<?php echo $this->get_field_name( 'visual' ); ?>" class="visual" type="hidden" value="">
 487              <p>
 488                  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
 489                  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>"/>
 490              </p>
 491              <div class="notice inline notice-info notice-alt">
 492                  <?php if ( ! isset( $instance['visual'] ) ) : ?>
 493                      <p><?php _e( 'This widget may contain code that may work better in the &#8220;Custom HTML&#8221; widget. How about trying that widget instead?' ); ?></p>
 494                  <?php else : ?>
 495                      <p><?php _e( 'This widget may have contained code that may work better in the &#8220;Custom HTML&#8221; widget. If you haven&#8217;t yet, how about trying that widget instead?' ); ?></p>
 496                  <?php endif; ?>
 497              </div>
 498              <p>
 499                  <label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Content:' ); ?></label>
 500                  <textarea class="widefat" rows="16" cols="20" id="<?php echo $this->get_field_id( 'text' ); ?>" name="<?php echo $this->get_field_name( 'text' ); ?>"><?php echo esc_textarea( $instance['text'] ); ?></textarea>
 501              </p>
 502              <p>
 503                  <input id="<?php echo $this->get_field_id( 'filter' ); ?>" name="<?php echo $this->get_field_name( 'filter' ); ?>" type="checkbox"<?php checked( ! empty( $instance['filter'] ) ); ?> />&nbsp;<label for="<?php echo $this->get_field_id( 'filter' ); ?>"><?php _e( 'Automatically add paragraphs' ); ?></label>
 504              </p>
 505              <?php
 506          endif;
 507      }
 508  
 509      /**
 510       * Render form template scripts.
 511       *
 512       * @since 4.8.0
 513       * @since 4.9.0 The method is now static.
 514       */
 515  	public static function render_control_template_scripts() {
 516          $dismissed_pointers = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
 517          ?>
 518          <script type="text/html" id="tmpl-widget-text-control-fields">
 519              <# var elementIdPrefix = 'el' + String( Math.random() ).replace( /\D/g, '' ) + '_' #>
 520              <p>
 521                  <label for="{{ elementIdPrefix }}title"><?php esc_html_e( 'Title:' ); ?></label>
 522                  <input id="{{ elementIdPrefix }}title" type="text" class="widefat title">
 523              </p>
 524  
 525              <?php if ( ! in_array( 'text_widget_custom_html', $dismissed_pointers, true ) ) : ?>
 526                  <div hidden class="wp-pointer custom-html-widget-pointer wp-pointer-top">
 527                      <div class="wp-pointer-content">
 528                          <h3><?php _e( 'New Custom HTML Widget' ); ?></h3>
 529                          <?php if ( is_customize_preview() ) : ?>
 530                              <p><?php _e( 'Did you know there is a &#8220;Custom HTML&#8221; widget now? You can find it by pressing the &#8220;<a class="add-widget" href="#">Add a Widget</a>&#8221; button and searching for &#8220;HTML&#8221;. Check it out to add some custom code to your site!' ); ?></p>
 531                          <?php else : ?>
 532                              <p><?php _e( 'Did you know there is a &#8220;Custom HTML&#8221; widget now? You can find it by scanning the list of available widgets on this screen. Check it out to add some custom code to your site!' ); ?></p>
 533                          <?php endif; ?>
 534                          <div class="wp-pointer-buttons">
 535                              <a class="close" href="#"><?php _e( 'Dismiss' ); ?></a>
 536                          </div>
 537                      </div>
 538                      <div class="wp-pointer-arrow">
 539                          <div class="wp-pointer-arrow-inner"></div>
 540                      </div>
 541                  </div>
 542              <?php endif; ?>
 543  
 544              <?php if ( ! in_array( 'text_widget_paste_html', $dismissed_pointers, true ) ) : ?>
 545                  <div hidden class="wp-pointer paste-html-pointer wp-pointer-top">
 546                      <div class="wp-pointer-content">
 547                          <h3><?php _e( 'Did you just paste HTML?' ); ?></h3>
 548                          <p><?php _e( 'Hey there, looks like you just pasted HTML into the &#8220;Visual&#8221; tab of the Text widget. You may want to paste your code into the &#8220;Text&#8221; tab instead. Alternately, try out the new &#8220;Custom HTML&#8221; widget!' ); ?></p>
 549                          <div class="wp-pointer-buttons">
 550                              <a class="close" href="#"><?php _e( 'Dismiss' ); ?></a>
 551                          </div>
 552                      </div>
 553                      <div class="wp-pointer-arrow">
 554                          <div class="wp-pointer-arrow-inner"></div>
 555                      </div>
 556                  </div>
 557              <?php endif; ?>
 558  
 559              <p>
 560                  <label for="{{ elementIdPrefix }}text" class="screen-reader-text"><?php esc_html_e( 'Content:' ); ?></label>
 561                  <textarea id="{{ elementIdPrefix }}text" class="widefat text wp-editor-area" style="height: 200px" rows="16" cols="20"></textarea>
 562              </p>
 563          </script>
 564          <?php
 565      }
 566  }


Generated: Thu Sep 19 01:00:03 2019 Cross-referenced by PHPXref 0.7.1