WordPress.org

Make WordPress Core

Ticket #26869: 26869.diff

File 26869.diff, 7.8 KB (added by DrewAPicture, 4 years ago)
  • src/wp-admin/admin-header.php

     
    157157 
    158158?> 
    159159</head> 
    160 <?php 
     160<body class="wp-admin wp-core-ui no-js <?php 
    161161/** 
    162162 * Filter the admin <body> CSS classes. 
    163163 * 
     
    169169 * 
    170170 * @param string $classes Space-separated string of CSS classes. 
    171171 */ 
    172 ?> 
    173 <body class="wp-admin wp-core-ui no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>"> 
     172echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; 
     173?>"> 
    174174<script type="text/javascript"> 
    175175        document.body.className = document.body.className.replace('no-js','js'); 
    176176</script> 
  • src/wp-admin/edit-form-advanced.php

     
    382382        <span class="hide-if-no-sessionstorage"><?php _e( 'We&#8217;re backing up this post in your browser, just in case.' ); ?></span> 
    383383        </p> 
    384384</div> 
    385 <?php 
     385 
     386<form name="post" action="post.php" method="post" id="post"<?php 
    386387/** 
    387388 * Fires inside the post editor <form> tag. 
    388389 * 
     
    390391 * 
    391392 * @param WP_Post $post Post object. 
    392393 */ 
    393 ?> 
    394 <form name="post" action="post.php" method="post" id="post"<?php do_action( 'post_edit_form_tag', $post ); ?>> 
     394do_action( 'post_edit_form_tag', $post ); 
     395?>> 
    395396<?php wp_nonce_field($nonce_action); ?> 
    396397<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 
    397398<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ) ?>" /> 
  • src/wp-admin/edit-tag-form.php

     
    6464<div class="wrap"> 
    6565<h2><?php echo $tax->labels->edit_item; ?></h2> 
    6666<div id="ajax-response"></div> 
    67 <?php 
     67 
     68<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate" <?php 
    6869/** 
    6970 * Fires inside the Edit Term form tag. 
    7071 * 
     
    7374 * 
    7475 * @since 3.7.0 
    7576 */ 
    76 ?> 
    77 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"<?php do_action( "{$taxonomy}_term_edit_form_tag" ); ?>> 
     77do_action( "{$taxonomy}_term_edit_form_tag" ); 
     78?>> 
    7879<input type="hidden" name="action" value="editedtag" /> 
    7980<input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" /> 
    8081<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" /> 
  • src/wp-admin/edit-tags.php

     
    431431 
    432432<div class="form-wrap"> 
    433433<h3><?php echo $tax->labels->add_new_item; ?></h3> 
    434 <?php 
     434 
     435<form id="addtag" method="post" action="edit-tags.php" class="validate"<?php 
    435436/** 
    436437 * Fires at the beginning of the Add Tag form. 
    437438 * 
     
    439440 * 
    440441 * @since 3.7.0 
    441442 */ 
    442 ?> 
    443 <form id="addtag" method="post" action="edit-tags.php" class="validate"<?php do_action( "{$taxonomy}_term_new_form_tag" ); ?>> 
     443do_action( "{$taxonomy}_term_new_form_tag" ); 
     444?>> 
    444445<input type="hidden" name="action" value="add-tag" /> 
    445446<input type="hidden" name="screen" value="<?php echo esc_attr($current_screen->id); ?>" /> 
    446447<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" /> 
  • src/wp-admin/includes/meta-boxes.php

     
    626626 * @param object $post 
    627627 */ 
    628628function post_slug_meta_box($post) { 
    629 /** This filter is documented in wp-admin/edit-tag-form.php */ 
    630629?> 
    631 <label class="screen-reader-text" for="post_name"><?php _e('Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( apply_filters( 'editable_slug', $post->post_name ) ); ?>" /> 
     630<label class="screen-reader-text" for="post_name"><?php _e('Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php 
     631        /** This filter is documented in wp-admin/edit-tag-form.php */ 
     632        echo esc_attr( apply_filters( 'editable_slug', $post->post_name ) ); 
     633?>" /> 
    632634<?php 
    633635} 
    634636 
  • src/wp-admin/includes/template.php

     
    18001800 
    18011801        if ( $is_IE ) 
    18021802                @header('X-UA-Compatible: IE=edge'); 
    1803  
     1803?> 
     1804<!DOCTYPE html> 
     1805<!--[if IE 8]> 
     1806<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php 
    18041807/** 
    18051808 * Fires inside the HTML tag in the admin header. 
    18061809 * 
    18071810 * @since 2.2.0 
    18081811 */ 
    1809 ?> 
    1810 <!DOCTYPE html> 
    1811 <!--[if IE 8]> 
    1812 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); ?>> 
     1812do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); 
     1813?>> 
    18131814<![endif]--> 
    18141815<!--[if !(IE 8) ]><!--> 
    18151816<?php /** This action is documented in wp-admin/includes/template.php */ ?> 
  • src/wp-admin/plugin-install.php

     
    8989 * 
    9090 * @param int $paged The current page number of the plugins list table. 
    9191 */ 
     92do_action( "install_plugins_$tab", $paged ); 
    9293?> 
    93 <?php do_action( "install_plugins_$tab", $paged ); ?> 
    9494</div> 
    9595<?php 
    9696/** 
  • src/wp-admin/user-edit.php

     
    221221        <?php } 
    222222} ?> 
    223223</h2> 
    224 <?php 
     224 
     225<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php 
    225226/** 
    226227 * Fires inside the your-profile form tag on the user editing screen. 
    227228 * 
    228229 * @since 3.0.0 
    229230 */ 
    230 ?> 
    231 <form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action( 'user_edit_form_tag' ); ?>> 
     231do_action( 'user_edit_form_tag' ); 
     232?>> 
    232233<?php wp_nonce_field('update-user_' . $user_id) ?> 
    233234<?php if ( $wp_http_referer ) : ?> 
    234235        <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" /> 
     
    250251<?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?> 
    251252<tr> 
    252253<th scope="row"><?php _e('Admin Color Scheme')?></th> 
    253 <?php 
     254<td><?php 
    254255/** 
    255256 * Fires in the 'Admin Color Scheme' section of the user editing screen. 
    256257 * 
     
    259260 * 
    260261 * @since 3.0.0 
    261262 */ 
    262 ?> 
    263 <td><?php do_action( 'admin_color_scheme_picker', $user_id ); ?></td> 
     263do_action( 'admin_color_scheme_picker', $user_id ); 
     264?></td> 
    264265</tr> 
    265266<?php 
    266267endif; // $_wp_admin_css_colors 
  • src/wp-admin/user-new.php

     
    279279                $label = __('E-mail or Username'); 
    280280        } 
    281281?> 
    282 <?php 
     282<form action="" method="post" name="adduser" id="adduser" class="validate"<?php 
    283283/** 
    284284 * Fires inside the adduser form tag. 
    285285 * 
    286286 * @since 3.0.0 
    287287 */ 
    288 ?> 
    289 <form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action( 'user_new_form_tag' );?>> 
     288do_action( 'user_new_form_tag' ); 
     289?>> 
    290290<input name="action" type="hidden" value="adduser" /> 
    291291<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 
    292292