Coding Standards: Add a space before `/` character in some self-closing HTML tags.

While this has no effect on the code, it fixes a minor inconsistency with the rest of core.

Props laxman-prajapati.
Fixes #52870.
Built from https://develop.svn.wordpress.org/trunk@50556


git-svn-id: http://core.svn.wordpress.org/trunk@50169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-03-20 18:30:08 +00:00
parent 643888dfc6
commit d3d78e755b
20 changed files with 35 additions and 35 deletions

View File

@ -111,9 +111,9 @@ if ( $message ) {
do_action( "{$taxonomy}_term_edit_form_tag" ); do_action( "{$taxonomy}_term_edit_form_tag" );
?> ?>
> >
<input type="hidden" name="action" value="editedtag"/> <input type="hidden" name="action" value="editedtag" />
<input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>"/> <input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>" />
<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>"/> <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>" />
<?php <?php
wp_original_referer_field( true, 'previous' ); wp_original_referer_field( true, 'previous' );
wp_nonce_field( 'update-tag_' . $tag_ID ); wp_nonce_field( 'update-tag_' . $tag_ID );

View File

@ -3698,7 +3698,7 @@ function wp_ajax_parse_embed() {
$mce_styles = wpview_media_sandbox_styles(); $mce_styles = wpview_media_sandbox_styles();
foreach ( $mce_styles as $style ) { foreach ( $mce_styles as $style ) {
$styles .= sprintf( '<link rel="stylesheet" href="%s"/>', $style ); $styles .= sprintf( '<link rel="stylesheet" href="%s" />', $style );
} }
$html = do_shortcode( $parsed ); $html = do_shortcode( $parsed );

View File

@ -860,10 +860,10 @@ endif;
<img src="<?php echo esc_url( $url ); ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="" /> <img src="<?php echo esc_url( $url ); ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="" />
</div> </div>
<input type="hidden" name="x1" id="x1" value="0"/> <input type="hidden" name="x1" id="x1" value="0" />
<input type="hidden" name="y1" id="y1" value="0"/> <input type="hidden" name="y1" id="y1" value="0" />
<input type="hidden" name="width" id="width" value="<?php echo esc_attr( $width ); ?>"/> <input type="hidden" name="width" id="width" value="<?php echo esc_attr( $width ); ?>" />
<input type="hidden" name="height" id="height" value="<?php echo esc_attr( $height ); ?>"/> <input type="hidden" name="height" id="height" value="<?php echo esc_attr( $height ); ?>" />
<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr( $attachment_id ); ?>" /> <input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr( $attachment_id ); ?>" />
<input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" /> <input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" />
<?php if ( empty( $_POST ) && isset( $_GET['file'] ) ) { ?> <?php if ( empty( $_POST ) && isset( $_GET['file'] ) ) { ?>

View File

@ -444,7 +444,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
?> ?>
<p class="search-box"> <p class="search-box">
<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label> <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
<input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>"/> <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>" />
<?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?> <?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?>
</p> </p>
<?php <?php

View File

@ -471,7 +471,7 @@ function wp_network_dashboard_right_now() {
<form action="<?php echo network_admin_url( 'users.php' ); ?>" method="get"> <form action="<?php echo network_admin_url( 'users.php' ); ?>" method="get">
<p> <p>
<label class="screen-reader-text" for="search-users"><?php _e( 'Search Users' ); ?></label> <label class="screen-reader-text" for="search-users"><?php _e( 'Search Users' ); ?></label>
<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/> <input type="search" name="s" value="" size="30" autocomplete="off" id="search-users" />
<?php submit_button( __( 'Search Users' ), '', false, false, array( 'id' => 'submit_users' ) ); ?> <?php submit_button( __( 'Search Users' ), '', false, false, array( 'id' => 'submit_users' ) ); ?>
</p> </p>
</form> </form>
@ -479,7 +479,7 @@ function wp_network_dashboard_right_now() {
<form action="<?php echo network_admin_url( 'sites.php' ); ?>" method="get"> <form action="<?php echo network_admin_url( 'sites.php' ); ?>" method="get">
<p> <p>
<label class="screen-reader-text" for="search-sites"><?php _e( 'Search Sites' ); ?></label> <label class="screen-reader-text" for="search-sites"><?php _e( 'Search Sites' ); ?></label>
<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/> <input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites" />
<?php submit_button( __( 'Search Sites' ), '', false, false, array( 'id' => 'submit_sites' ) ); ?> <?php submit_button( __( 'Search Sites' ), '', false, false, array( 'id' => 'submit_sites' ) ); ?>
</p> </p>
</form> </form>

View File

@ -638,7 +638,7 @@ function post_categories_meta_box( $post, $box ) {
</a> </a>
<p id="<?php echo $tax_name; ?>-add" class="category-add wp-hidden-child"> <p id="<?php echo $tax_name; ?>-add" class="category-add wp-hidden-child">
<label class="screen-reader-text" for="new<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_new_item; ?></label> <label class="screen-reader-text" for="new<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_new_item; ?></label>
<input type="text" name="new<?php echo $tax_name; ?>" id="new<?php echo $tax_name; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $taxonomy->labels->new_item_name ); ?>" aria-required="true"/> <input type="text" name="new<?php echo $tax_name; ?>" id="new<?php echo $tax_name; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $taxonomy->labels->new_item_name ); ?>" aria-required="true" />
<label class="screen-reader-text" for="new<?php echo $tax_name; ?>_parent"> <label class="screen-reader-text" for="new<?php echo $tax_name; ?>_parent">
<?php echo $taxonomy->labels->parent_item_colon; ?> <?php echo $taxonomy->labels->parent_item_colon; ?>
</label> </label>

View File

@ -183,7 +183,7 @@ function install_themes_upload() {
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url( 'update.php?action=upload-theme' ); ?>"> <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url( 'update.php?action=upload-theme' ); ?>">
<?php wp_nonce_field( 'theme-upload' ); ?> <?php wp_nonce_field( 'theme-upload' ); ?>
<label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label> <label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label>
<input type="file" id="themezip" name="themezip" accept=".zip"/> <input type="file" id="themezip" name="themezip" accept=".zip" />
<?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?> <?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?>
</form> </form>
<?php <?php

View File

@ -130,7 +130,7 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) {
</tr> </tr>
<tr class="form-field form-required"> <tr class="form-field form-required">
<th scope="row"><label for="email"><?php _e( 'Email' ); ?></label></th> <th scope="row"><label for="email"><?php _e( 'Email' ); ?></label></th>
<td><input type="email" class="regular-text" name="user[email]" id="email"/></td> <td><input type="email" class="regular-text" name="user[email]" id="email" /></td>
</tr> </tr>
<tr class="form-field"> <tr class="form-field">
<td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td> <td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>

View File

@ -158,8 +158,8 @@ function list_core_update( $update ) {
wp_nonce_field( 'upgrade-core' ); wp_nonce_field( 'upgrade-core' );
echo '<p>'; echo '<p>';
echo '<input name="version" value="' . esc_attr( $update->current ) . '" type="hidden"/>'; echo '<input name="version" value="' . esc_attr( $update->current ) . '" type="hidden" />';
echo '<input name="locale" value="' . esc_attr( $update->locale ) . '" type="hidden"/>'; echo '<input name="locale" value="' . esc_attr( $update->locale ) . '" type="hidden" />';
if ( $show_buttons ) { if ( $show_buttons ) {
if ( $first_pass ) { if ( $first_pass ) {
submit_button( $submit, $current ? '' : 'primary regular', 'upgrade', false ); submit_button( $submit, $current ? '' : 'primary regular', 'upgrade', false );

View File

@ -1063,7 +1063,7 @@ function wp_admin_bar_search_menu( $wp_admin_bar ) {
$form = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">'; $form = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">';
$form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />'; $form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />';
$form .= '<label for="adminbar-search" class="screen-reader-text">' . __( 'Search' ) . '</label>'; $form .= '<label for="adminbar-search" class="screen-reader-text">' . __( 'Search' ) . '</label>';
$form .= '<input type="submit" class="adminbar-button" value="' . __( 'Search' ) . '"/>'; $form .= '<input type="submit" class="adminbar-button" value="' . __( 'Search' ) . '" />';
$form .= '</form>'; $form .= '</form>';
$wp_admin_bar->add_node( $wp_admin_bar->add_node(

View File

@ -170,13 +170,13 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
<p class="attachment-meta">{{ data.attachment.artist || data.attachment.meta.artist }}</p> <p class="attachment-meta">{{ data.attachment.artist || data.attachment.meta.artist }}</p>
<# } #> <# } #>
<audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none"> <audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
<source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}"/> <source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
</audio> </audio>
<# } else if ( 'video' === data.attachment.type ) { #> <# } else if ( 'video' === data.attachment.type ) { #>
<div class="wp-media-wrapper wp-video"> <div class="wp-media-wrapper wp-video">
<video controls="controls" class="wp-video-shortcode" preload="metadata" <video controls="controls" class="wp-video-shortcode" preload="metadata"
<# if ( data.attachment.image && data.attachment.image.src !== data.attachment.icon ) { #>poster="{{ data.attachment.image.src }}"<# } #>> <# if ( data.attachment.image && data.attachment.image.src !== data.attachment.icon ) { #>poster="{{ data.attachment.image.src }}"<# } #>>
<source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}"/> <source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
</video> </video>
</div> </div>
<# } else { #> <# } else { #>

View File

@ -66,11 +66,11 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
<img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" /> <img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" />
<div class="favicon"> <div class="favicon">
<img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/> <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>" />
</div> </div>
<span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span> <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
</div> </div>
<img class="app-icon-preview" src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/> <img class="app-icon-preview" src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>" />
</div> </div>
<# } #> <# } #>
<div class="actions"> <div class="actions">

View File

@ -1205,7 +1205,7 @@ function print_embed_sharing_dialog() {
*/ */
function the_embed_site_title() { function the_embed_site_title() {
$site_title = sprintf( $site_title = sprintf(
'<a href="%s" target="_top"><img src="%s" srcset="%s 2x" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>', '<a href="%s" target="_top"><img src="%s" srcset="%s 2x" width="32" height="32" alt="" class="wp-embed-site-icon" /><span>%s</span></a>',
esc_url( home_url() ), esc_url( home_url() ),
esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ), esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ),
esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-blue.png' ) ) ), esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-blue.png' ) ) ),

View File

@ -93,8 +93,8 @@ do_action( 'rss_tag_pre', 'atom' );
if ( get_comments_number() || comments_open() ) : if ( get_comments_number() || comments_open() ) :
?> ?>
<link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>"/> <link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>" />
<link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link( 0, 'atom' ) ); ?>" thr:count="<?php echo get_comments_number(); ?>"/> <link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link( 0, 'atom' ) ); ?>" thr:count="<?php echo get_comments_number(); ?>" />
<thr:total><?php echo get_comments_number(); ?></thr:total> <thr:total><?php echo get_comments_number(); ?></thr:total>
<?php endif; ?> <?php endif; ?>
</entry> </entry>

View File

@ -368,7 +368,7 @@ function wp_print_media_templates() {
<# if ( 'audio' === data.type ) { #> <# if ( 'audio' === data.type ) { #>
<div class="wp-media-wrapper wp-audio"> <div class="wp-media-wrapper wp-audio">
<audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none"> <audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
<source type="{{ data.mime }}" src="{{ data.url }}"/> <source type="{{ data.mime }}" src="{{ data.url }}" />
</audio> </audio>
</div> </div>
<# } else if ( 'video' === data.type ) { <# } else if ( 'video' === data.type ) {
@ -384,7 +384,7 @@ function wp_print_media_templates() {
<# if ( data.width ) { #>width="{{ data.width }}"<# } #> <# if ( data.width ) { #>width="{{ data.width }}"<# } #>
<# if ( data.height ) { #>height="{{ data.height }}"<# } #> <# if ( data.height ) { #>height="{{ data.height }}"<# } #>
<# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>> <# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
<source type="{{ data.mime }}" src="{{ data.url }}"/> <source type="{{ data.mime }}" src="{{ data.url }}" />
</video> </video>
</div> </div>
<# } #> <# } #>
@ -614,7 +614,7 @@ function wp_print_media_templates() {
<# if ( 'audio' === data.type ) { #> <# if ( 'audio' === data.type ) { #>
<div class="wp-media-wrapper wp-audio"> <div class="wp-media-wrapper wp-audio">
<audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none"> <audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
<source type="{{ data.mime }}" src="{{ data.url }}"/> <source type="{{ data.mime }}" src="{{ data.url }}" />
</audio> </audio>
</div> </div>
<# } else if ( 'video' === data.type ) { <# } else if ( 'video' === data.type ) {
@ -630,7 +630,7 @@ function wp_print_media_templates() {
<# if ( data.width ) { #>width="{{ data.width }}"<# } #> <# if ( data.width ) { #>width="{{ data.width }}"<# } #>
<# if ( data.height ) { #>height="{{ data.height }}"<# } #> <# if ( data.height ) { #>height="{{ data.height }}"<# } #>
<# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>> <# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
<source type="{{ data.mime }}" src="{{ data.url }}"/> <source type="{{ data.mime }}" src="{{ data.url }}" />
</video> </video>
</div> </div>
<# } else { #> <# } else { #>
@ -1491,14 +1491,14 @@ function wp_print_media_templates() {
<img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" height="" alt="" /> <img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" height="" alt="" />
<div class="favicon"> <div class="favicon">
<img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/> <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>" />
</div> </div>
<span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span> <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
</div> </div>
<strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong> <strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong>
<div class="app-icon-preview"> <div class="app-icon-preview">
<img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/> <img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>" />
</div> </div>
</script> </script>

View File

@ -72,7 +72,7 @@ class WP_Sitemaps_Stylesheet {
exclude-result-prefixes="sitemap" exclude-result-prefixes="sitemap"
> >
<xsl:output method="html" encoding="UTF-8" indent="yes"/> <xsl:output method="html" encoding="UTF-8" indent="yes" />
<!-- <!--
Set variables for whether lastmod, changefreq or priority occur for any url in the sitemap. Set variables for whether lastmod, changefreq or priority occur for any url in the sitemap.

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.8-alpha-50555'; $wp_version = '5.8-alpha-50556';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -177,7 +177,7 @@ class WP_Nav_Menu_Widget extends WP_Widget {
<div class="nav-menu-widget-form-controls" <?php echo $empty_menus_style; ?>> <div class="nav-menu-widget-form-controls" <?php echo $empty_menus_style; ?>>
<p> <p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $title ); ?>"/> <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $title ); ?>" />
</p> </p>
<p> <p>
<label for="<?php echo $this->get_field_id( 'nav_menu' ); ?>"><?php _e( 'Select Menu:' ); ?></label> <label for="<?php echo $this->get_field_id( 'nav_menu' ); ?>"><?php _e( 'Select Menu:' ); ?></label>

View File

@ -247,7 +247,7 @@ class WP_Widget_Custom_HTML extends WP_Widget {
public function form( $instance ) { public function form( $instance ) {
$instance = wp_parse_args( (array) $instance, $this->default_instance ); $instance = wp_parse_args( (array) $instance, $this->default_instance );
?> ?>
<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'] ); ?>"/> <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'] ); ?>" />
<textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" class="content sync-input" hidden><?php echo esc_textarea( $instance['content'] ); ?></textarea> <textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" class="content sync-input" hidden><?php echo esc_textarea( $instance['content'] ); ?></textarea>
<?php <?php
} }

View File

@ -489,7 +489,7 @@ class WP_Widget_Text extends WP_Widget {
<input id="<?php echo $this->get_field_id( 'visual' ); ?>" name="<?php echo $this->get_field_name( 'visual' ); ?>" class="visual" type="hidden" value=""> <input id="<?php echo $this->get_field_id( 'visual' ); ?>" name="<?php echo $this->get_field_name( 'visual' ); ?>" class="visual" type="hidden" value="">
<p> <p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
<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'] ); ?>"/> <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'] ); ?>" />
</p> </p>
<div class="notice inline notice-info notice-alt"> <div class="notice inline notice-info notice-alt">
<?php if ( ! isset( $instance['visual'] ) ) : ?> <?php if ( ! isset( $instance['visual'] ) ) : ?>