Make WordPress Core

Changeset 50556


Ignore:
Timestamp:
03/20/2021 06:28:32 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r50505 r50556  
    112112?>
    113113>
    114 <input type="hidden" name="action" value="editedtag"/>
    115 <input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>"/>
    116 <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>"/>
     114<input type="hidden" name="action" value="editedtag" />
     115<input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ); ?>" />
     116<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>" />
    117117<?php
    118118wp_original_referer_field( true, 'previous' );
  • trunk/src/wp-admin/includes/ajax-actions.php

    r50390 r50556  
    36993699
    37003700        foreach ( $mce_styles as $style ) {
    3701             $styles .= sprintf( '<link rel="stylesheet" href="%s"/>', $style );
     3701            $styles .= sprintf( '<link rel="stylesheet" href="%s" />', $style );
    37023702        }
    37033703
  • trunk/src/wp-admin/includes/class-custom-image-header.php

    r50146 r50556  
    861861    </div>
    862862
    863     <input type="hidden" name="x1" id="x1" value="0"/>
    864     <input type="hidden" name="y1" id="y1" value="0"/>
    865     <input type="hidden" name="width" id="width" value="<?php echo esc_attr( $width ); ?>"/>
    866     <input type="hidden" name="height" id="height" value="<?php echo esc_attr( $height ); ?>"/>
     863    <input type="hidden" name="x1" id="x1" value="0" />
     864    <input type="hidden" name="y1" id="y1" value="0" />
     865    <input type="hidden" name="width" id="width" value="<?php echo esc_attr( $width ); ?>" />
     866    <input type="hidden" name="height" id="height" value="<?php echo esc_attr( $height ); ?>" />
    867867    <input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr( $attachment_id ); ?>" />
    868868    <input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" />
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r49631 r50556  
    445445        <p class="search-box">
    446446            <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
    447             <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...' ); ?>"/>
     447            <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...' ); ?>" />
    448448            <?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?>
    449449        </p>
  • trunk/src/wp-admin/includes/dashboard.php

    r50530 r50556  
    472472        <p>
    473473            <label class="screen-reader-text" for="search-users"><?php _e( 'Search Users' ); ?></label>
    474             <input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
     474            <input type="search" name="s" value="" size="30" autocomplete="off" id="search-users" />
    475475            <?php submit_button( __( 'Search Users' ), '', false, false, array( 'id' => 'submit_users' ) ); ?>
    476476        </p>
     
    480480        <p>
    481481            <label class="screen-reader-text" for="search-sites"><?php _e( 'Search Sites' ); ?></label>
    482             <input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
     482            <input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites" />
    483483            <?php submit_button( __( 'Search Sites' ), '', false, false, array( 'id' => 'submit_sites' ) ); ?>
    484484        </p>
  • trunk/src/wp-admin/includes/meta-boxes.php

    r49183 r50556  
    639639                <p id="<?php echo $tax_name; ?>-add" class="category-add wp-hidden-child">
    640640                    <label class="screen-reader-text" for="new<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_new_item; ?></label>
    641                     <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"/>
     641                    <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" />
    642642                    <label class="screen-reader-text" for="new<?php echo $tax_name; ?>_parent">
    643643                        <?php echo $taxonomy->labels->parent_item_colon; ?>
  • trunk/src/wp-admin/includes/theme-install.php

    r48509 r50556  
    184184    <?php wp_nonce_field( 'theme-upload' ); ?>
    185185    <label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label>
    186     <input type="file" id="themezip" name="themezip" accept=".zip"/>
     186    <input type="file" id="themezip" name="themezip" accept=".zip" />
    187187    <?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?>
    188188</form>
  • trunk/src/wp-admin/network/user-new.php

    r47853 r50556  
    131131        <tr class="form-field form-required">
    132132            <th scope="row"><label for="email"><?php _e( 'Email' ); ?></label></th>
    133             <td><input type="email" class="regular-text" name="user[email]" id="email"/></td>
     133            <td><input type="email" class="regular-text" name="user[email]" id="email" /></td>
    134134        </tr>
    135135        <tr class="form-field">
  • trunk/src/wp-admin/update-core.php

    r50506 r50556  
    159159
    160160    echo '<p>';
    161     echo '<input name="version" value="' . esc_attr( $update->current ) . '" type="hidden"/>';
    162     echo '<input name="locale" value="' . esc_attr( $update->locale ) . '" type="hidden"/>';
     161    echo '<input name="version" value="' . esc_attr( $update->current ) . '" type="hidden" />';
     162    echo '<input name="locale" value="' . esc_attr( $update->locale ) . '" type="hidden" />';
    163163    if ( $show_buttons ) {
    164164        if ( $first_pass ) {
  • trunk/src/wp-includes/admin-bar.php

    r50504 r50556  
    10641064    $form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />';
    10651065    $form .= '<label for="adminbar-search" class="screen-reader-text">' . __( 'Search' ) . '</label>';
    1066     $form .= '<input type="submit" class="adminbar-button" value="' . __( 'Search' ) . '"/>';
     1066    $form .= '<input type="submit" class="adminbar-button" value="' . __( 'Search' ) . '" />';
    10671067    $form .= '</form>';
    10681068
  • trunk/src/wp-includes/customize/class-wp-customize-media-control.php

    r47550 r50556  
    171171                        <# } #>
    172172                        <audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
    173                             <source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}"/>
     173                            <source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
    174174                        </audio>
    175175                    <# } else if ( 'video' === data.attachment.type ) { #>
     
    177177                            <video controls="controls" class="wp-video-shortcode" preload="metadata"
    178178                                <# if ( data.attachment.image && data.attachment.image.src !== data.attachment.icon ) { #>poster="{{ data.attachment.image.src }}"<# } #>>
    179                                 <source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}"/>
     179                                <source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
    180180                            </video>
    181181                        </div>
  • trunk/src/wp-includes/customize/class-wp-customize-site-icon-control.php

    r47382 r50556  
    6767
    6868                            <div class="favicon">
    69                                 <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
     69                                <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>" />
    7070                            </div>
    7171                            <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
    7272                        </div>
    73                         <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' ); ?>"/>
     73                        <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' ); ?>" />
    7474                    </div>
    7575                <# } #>
  • trunk/src/wp-includes/embed.php

    r50401 r50556  
    12031203function the_embed_site_title() {
    12041204    $site_title = sprintf(
    1205         '<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>',
     1205        '<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>',
    12061206        esc_url( home_url() ),
    12071207        esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ),
  • trunk/src/wp-includes/feed-atom.php

    r47122 r50556  
    9494        if ( get_comments_number() || comments_open() ) :
    9595            ?>
    96             <link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>"/>
    97             <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(); ?>"/>
     96            <link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>" />
     97            <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(); ?>" />
    9898            <thr:total><?php echo get_comments_number(); ?></thr:total>
    9999        <?php endif; ?>
  • trunk/src/wp-includes/media-template.php

    r50352 r50556  
    369369                <div class="wp-media-wrapper wp-audio">
    370370                    <audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
    371                         <source type="{{ data.mime }}" src="{{ data.url }}"/>
     371                        <source type="{{ data.mime }}" src="{{ data.url }}" />
    372372                    </audio>
    373373                </div>
     
    385385                        <# if ( data.height ) { #>height="{{ data.height }}"<# } #>
    386386                        <# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
    387                         <source type="{{ data.mime }}" src="{{ data.url }}"/>
     387                        <source type="{{ data.mime }}" src="{{ data.url }}" />
    388388                    </video>
    389389                </div>
     
    615615                <div class="wp-media-wrapper wp-audio">
    616616                    <audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
    617                         <source type="{{ data.mime }}" src="{{ data.url }}"/>
     617                        <source type="{{ data.mime }}" src="{{ data.url }}" />
    618618                    </audio>
    619619                </div>
     
    631631                        <# if ( data.height ) { #>height="{{ data.height }}"<# } #>
    632632                        <# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
    633                         <source type="{{ data.mime }}" src="{{ data.url }}"/>
     633                        <source type="{{ data.mime }}" src="{{ data.url }}" />
    634634                    </video>
    635635                </div>
     
    14921492
    14931493            <div class="favicon">
    1494                 <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
     1494                <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>" />
    14951495            </div>
    14961496            <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
     
    14991499        <strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong>
    15001500        <div class="app-icon-preview">
    1501             <img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
     1501            <img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>" />
    15021502        </div>
    15031503    </script>
  • trunk/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php

    r49221 r50556  
    7373        >
    7474
    75     <xsl:output method="html" encoding="UTF-8" indent="yes"/>
     75    <xsl:output method="html" encoding="UTF-8" indent="yes" />
    7676
    7777    <!--
  • trunk/src/wp-includes/widgets/class-wp-nav-menu-widget.php

    r48574 r50556  
    178178            <p>
    179179                <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
    180                 <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 ); ?>"/>
     180                <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 ); ?>" />
    181181            </p>
    182182            <p>
  • trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php

    r49946 r50556  
    248248        $instance = wp_parse_args( (array) $instance, $this->default_instance );
    249249        ?>
    250         <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'] ); ?>"/>
     250        <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'] ); ?>" />
    251251        <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>
    252252        <?php
  • trunk/src/wp-includes/widgets/class-wp-widget-text.php

    r49946 r50556  
    490490            <p>
    491491                <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'] ); ?>"/>
     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'] ); ?>" />
    493493            </p>
    494494            <div class="notice inline notice-info notice-alt">
Note: See TracChangeset for help on using the changeset viewer.