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:
parent
643888dfc6
commit
d3d78e755b
|
@ -111,9 +111,9 @@ if ( $message ) {
|
|||
do_action( "{$taxonomy}_term_edit_form_tag" );
|
||||
?>
|
||||
>
|
||||
<input type="hidden" name="action" value="editedtag"/>
|
||||
<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="action" value="editedtag" />
|
||||
<input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>" />
|
||||
<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>" />
|
||||
<?php
|
||||
wp_original_referer_field( true, 'previous' );
|
||||
wp_nonce_field( 'update-tag_' . $tag_ID );
|
||||
|
|
|
@ -3698,7 +3698,7 @@ function wp_ajax_parse_embed() {
|
|||
$mce_styles = wpview_media_sandbox_styles();
|
||||
|
||||
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 );
|
||||
|
|
|
@ -860,10 +860,10 @@ endif;
|
|||
<img src="<?php echo esc_url( $url ); ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="" />
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="x1" id="x1" 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="height" id="height" value="<?php echo esc_attr( $height ); ?>"/>
|
||||
<input type="hidden" name="x1" id="x1" 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="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="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" />
|
||||
<?php if ( empty( $_POST ) && isset( $_GET['file'] ) ) { ?>
|
||||
|
|
|
@ -444,7 +444,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
?>
|
||||
<p class="search-box">
|
||||
<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' ) ); ?>
|
||||
</p>
|
||||
<?php
|
||||
|
|
|
@ -471,7 +471,7 @@ function wp_network_dashboard_right_now() {
|
|||
<form action="<?php echo network_admin_url( 'users.php' ); ?>" method="get">
|
||||
<p>
|
||||
<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' ) ); ?>
|
||||
</p>
|
||||
</form>
|
||||
|
@ -479,7 +479,7 @@ function wp_network_dashboard_right_now() {
|
|||
<form action="<?php echo network_admin_url( 'sites.php' ); ?>" method="get">
|
||||
<p>
|
||||
<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' ) ); ?>
|
||||
</p>
|
||||
</form>
|
||||
|
|
|
@ -638,7 +638,7 @@ function post_categories_meta_box( $post, $box ) {
|
|||
</a>
|
||||
<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>
|
||||
<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">
|
||||
<?php echo $taxonomy->labels->parent_item_colon; ?>
|
||||
</label>
|
||||
|
|
|
@ -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' ); ?>">
|
||||
<?php wp_nonce_field( 'theme-upload' ); ?>
|
||||
<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 ); ?>
|
||||
</form>
|
||||
<?php
|
||||
|
|
|
@ -130,7 +130,7 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) {
|
|||
</tr>
|
||||
<tr class="form-field form-required">
|
||||
<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 class="form-field">
|
||||
<td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>
|
||||
|
|
|
@ -158,8 +158,8 @@ function list_core_update( $update ) {
|
|||
wp_nonce_field( 'upgrade-core' );
|
||||
|
||||
echo '<p>';
|
||||
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="version" value="' . esc_attr( $update->current ) . '" type="hidden" />';
|
||||
echo '<input name="locale" value="' . esc_attr( $update->locale ) . '" type="hidden" />';
|
||||
if ( $show_buttons ) {
|
||||
if ( $first_pass ) {
|
||||
submit_button( $submit, $current ? '' : 'primary regular', 'upgrade', false );
|
||||
|
|
|
@ -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 .= '<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 .= '<input type="submit" class="adminbar-button" value="' . __( 'Search' ) . '"/>';
|
||||
$form .= '<input type="submit" class="adminbar-button" value="' . __( 'Search' ) . '" />';
|
||||
$form .= '</form>';
|
||||
|
||||
$wp_admin_bar->add_node(
|
||||
|
|
|
@ -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>
|
||||
<# } #>
|
||||
<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>
|
||||
<# } else if ( 'video' === data.attachment.type ) { #>
|
||||
<div class="wp-media-wrapper wp-video">
|
||||
<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 }}"<# } #>>
|
||||
<source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}"/>
|
||||
<source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
|
||||
</video>
|
||||
</div>
|
||||
<# } else { #>
|
||||
|
|
|
@ -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="" />
|
||||
|
||||
<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>
|
||||
<span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
|
||||
</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 class="actions">
|
||||
|
|
|
@ -1205,7 +1205,7 @@ function print_embed_sharing_dialog() {
|
|||
*/
|
||||
function the_embed_site_title() {
|
||||
$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( 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' ) ) ),
|
||||
|
|
|
@ -93,8 +93,8 @@ do_action( 'rss_tag_pre', 'atom' );
|
|||
|
||||
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="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="<?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(); ?>" />
|
||||
<thr:total><?php echo get_comments_number(); ?></thr:total>
|
||||
<?php endif; ?>
|
||||
</entry>
|
||||
|
|
|
@ -368,7 +368,7 @@ function wp_print_media_templates() {
|
|||
<# if ( 'audio' === data.type ) { #>
|
||||
<div class="wp-media-wrapper wp-audio">
|
||||
<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>
|
||||
</div>
|
||||
<# } else if ( 'video' === data.type ) {
|
||||
|
@ -384,7 +384,7 @@ function wp_print_media_templates() {
|
|||
<# if ( data.width ) { #>width="{{ data.width }}"<# } #>
|
||||
<# if ( data.height ) { #>height="{{ data.height }}"<# } #>
|
||||
<# 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>
|
||||
</div>
|
||||
<# } #>
|
||||
|
@ -614,7 +614,7 @@ function wp_print_media_templates() {
|
|||
<# if ( 'audio' === data.type ) { #>
|
||||
<div class="wp-media-wrapper wp-audio">
|
||||
<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>
|
||||
</div>
|
||||
<# } else if ( 'video' === data.type ) {
|
||||
|
@ -630,7 +630,7 @@ function wp_print_media_templates() {
|
|||
<# if ( data.width ) { #>width="{{ data.width }}"<# } #>
|
||||
<# if ( data.height ) { #>height="{{ data.height }}"<# } #>
|
||||
<# 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>
|
||||
</div>
|
||||
<# } 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="" />
|
||||
|
||||
<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>
|
||||
<span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
|
||||
</div>
|
||||
|
||||
<strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong>
|
||||
<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>
|
||||
</script>
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ class WP_Sitemaps_Stylesheet {
|
|||
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.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
|
@ -177,7 +177,7 @@ class WP_Nav_Menu_Widget extends WP_Widget {
|
|||
<div class="nav-menu-widget-form-controls" <?php echo $empty_menus_style; ?>>
|
||||
<p>
|
||||
<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>
|
||||
<label for="<?php echo $this->get_field_id( 'nav_menu' ); ?>"><?php _e( 'Select Menu:' ); ?></label>
|
||||
|
|
|
@ -247,7 +247,7 @@ class WP_Widget_Custom_HTML extends WP_Widget {
|
|||
public function form( $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>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -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="">
|
||||
<p>
|
||||
<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>
|
||||
<div class="notice inline notice-info notice-alt">
|
||||
<?php if ( ! isset( $instance['visual'] ) ) : ?>
|
||||
|
|
Loading…
Reference in New Issue