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


Generated: Sat Dec 5 01:00:03 2020 Cross-referenced by PHPXref 0.7.1