Ticket #30558: 30558.2.diff
| File 30558.2.diff, 15.8 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/admin-header.php
160 160 161 161 ?> 162 162 </head> 163 < ?php163 <body class="wp-admin wp-core-ui no-js <?php 164 164 /** 165 165 * Filter the CSS classes for the body tag in the admin. 166 166 * … … 172 172 * 173 173 * @param string $classes Space-separated string of CSS classes. 174 174 */ 175 ?> 176 <body class="wp-admin wp-core-ui no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class";?>">175 echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; 176 ?>"> 177 177 <script type="text/javascript"> 178 178 document.body.className = document.body.className.replace('no-js','js'); 179 179 </script> -
src/wp-admin/edit-form-advanced.php
451 451 <?php if ( post_type_supports($post_type, 'title') ) { ?> 452 452 <div id="titlediv"> 453 453 <div id="titlewrap"> 454 < ?php455 /**456 * Filter the title field placeholder text.457 *458 * @since 3.1.0459 *460 * @param string $text Placeholder text. Default 'Enter title here'.461 * @param WP_Post $post Post object.462 */463 ?>464 <label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post );?></label>454 <label class="screen-reader-text" id="title-prompt-text" for="title"><?php 455 /** 456 * Filter the title field placeholder text. 457 * 458 * @since 3.1.0 459 * 460 * @param string $text Placeholder text. Default 'Enter title here'. 461 * @param WP_Post $post Post object. 462 */ 463 echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); 464 ?></label> 465 465 <input type="text" name="post_title" size="30" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" spellcheck="true" autocomplete="off" /> 466 466 </div> 467 467 <?php -
src/wp-admin/includes/class-wp-links-list-table.php
187 187 ?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php 188 188 break; 189 189 default: 190 /**191 * Fires for each registered custom link column.192 *193 * @since 2.1.0194 *195 * @param string $column_name Name of the custom column.196 * @param int $link_id Link ID.197 */198 190 ?> 199 <td <?php echo $attributes ?>><?php do_action( 'manage_link_custom_column', $column_name, $link->link_id ); ?></td> 191 <td <?php echo $attributes ?>><?php 192 /** 193 * Fires for each registered custom link column. 194 * 195 * @since 2.1.0 196 * 197 * @param string $column_name Name of the custom column. 198 * @param int $link_id Link ID. 199 */ 200 do_action( 'manage_link_custom_column', $column_name, $link->link_id ); 201 ?></td> 200 202 <?php 201 203 break; 202 204 } -
src/wp-admin/includes/class-wp-media-list-table.php
473 473 break; 474 474 } 475 475 ?> 476 <td <?php echo $attributes ?>> 477 <?php 478 /** 479 * Fires for each custom column in the Media list table. 480 * 481 * Custom columns are registered using the 'manage_media_columns' filter. 482 * 483 * @since 2.5.0 484 * 485 * @param string $column_name Name of the custom column. 486 * @param int $post_id Attachment ID. 487 */ 488 ?> 489 <?php do_action( 'manage_media_custom_column', $column_name, $post->ID ); ?> 490 </td> 476 <td <?php echo $attributes ?>><?php 477 /** 478 * Fires for each custom column in the Media list table. 479 * 480 * Custom columns are registered using the 'manage_media_columns' filter. 481 * 482 * @since 2.5.0 483 * 484 * @param string $column_name Name of the custom column. 485 * @param int $post_id Attachment ID. 486 */ 487 do_action( 'manage_media_custom_column', $column_name, $post->ID ); 488 ?></td> 491 489 <?php 492 490 break; 493 491 } -
src/wp-admin/includes/export.php
391 391 $is_sticky = is_sticky( $post->ID ) ? 1 : 0; 392 392 ?> 393 393 <item> 394 <?php /** This filter is documented in wp-includes/feed.php */ ?> 395 <title><?php echo apply_filters( 'the_title_rss', $post->post_title ); ?></title> 394 <title><?php 395 /** This filter is documented in wp-includes/feed.php */ 396 echo apply_filters( 'the_title_rss', $post->post_title ); 397 ?></title> 396 398 <link><?php the_permalink_rss() ?></link> 397 399 <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate> 398 400 <dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator> -
src/wp-admin/includes/template.php
1585 1585 1586 1586 ?> 1587 1587 </head> 1588 <?php /** This filter is documented in wp-admin/admin-header.php */ ?> 1589 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>"> 1588 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php 1589 /** This filter is documented in wp-admin/admin-header.php */ 1590 echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; 1591 ?>"> 1590 1592 <script type="text/javascript"> 1591 1593 //<![CDATA[ 1592 1594 (function(){ … … 1868 1870 if ( $is_IE ) 1869 1871 @header('X-UA-Compatible: IE=edge'); 1870 1872 1871 /**1872 * Fires inside the HTML tag in the admin header.1873 *1874 * @since 2.2.01875 */1876 1873 ?> 1877 1874 <!DOCTYPE html> 1878 1875 <!--[if IE 8]> 1879 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); ?>> 1876 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php 1877 /** 1878 * Fires inside the HTML tag in the admin header. 1879 * 1880 * @since 2.2.0 1881 */ 1882 do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); 1883 ?>> 1880 1884 <![endif]--> 1881 1885 <!--[if !(IE 8) ]><!--> 1882 <?php /** This action is documented in wp-admin/includes/template.php */ ?> 1883 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); ?>> 1886 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php 1887 /** This action is documented in wp-admin/includes/template.php */ 1888 do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); 1889 ?>> 1884 1890 <!--<![endif]--> 1885 1891 <head> 1886 1892 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> -
src/wp-admin/user-edit.php
232 232 <?php } 233 233 } ?> 234 234 </h2> 235 < ?php236 /**237 * Fires inside the your-profile form tag on the user editing screen.238 *239 * @since 3.0.0240 */241 ?> 242 <form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php do_action( 'user_edit_form_tag' );?>>235 <form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php 236 /** 237 * Fires inside the your-profile form tag on the user editing screen. 238 * 239 * @since 3.0.0 240 */ 241 do_action( 'user_edit_form_tag' ); 242 ?>> 243 243 <?php wp_nonce_field('update-user_' . $user_id) ?> 244 244 <?php if ( $wp_http_referer ) : ?> 245 245 <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" /> … … 261 261 <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?> 262 262 <tr class="user-admin-color-wrap"> 263 263 <th scope="row"><?php _e('Admin Color Scheme')?></th> 264 < ?php265 /**266 * Fires in the 'Admin Color Scheme' section of the user editing screen.267 *268 * The section is only enabled if a callback is hooked to the action,269 * and if there is more than one defined color scheme for the admin.270 *271 * @since 3.0.0272 * @since 3.8.1 Added `$user_id` parameter.273 *274 * @param int $user_id The user ID.275 */276 ?> 277 <td><?php do_action( 'admin_color_scheme_picker', $user_id );?></td>264 <td><?php 265 /** 266 * Fires in the 'Admin Color Scheme' section of the user editing screen. 267 * 268 * The section is only enabled if a callback is hooked to the action, 269 * and if there is more than one defined color scheme for the admin. 270 * 271 * @since 3.0.0 272 * @since 3.8.1 Added `$user_id` parameter. 273 * 274 * @param int $user_id The user ID. 275 */ 276 do_action( 'admin_color_scheme_picker', $user_id ); 277 ?></td> 278 278 </tr> 279 279 <?php 280 280 endif; // $_wp_admin_css_colors -
src/wp-admin/user-new.php
280 280 $type = 'text'; 281 281 } 282 282 ?> 283 < ?php284 /**285 * Fires inside the adduser form tag.286 *287 * @since 3.0.0288 */289 ?> 290 <form action="" method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>>283 <form action="" method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"<?php 284 /** 285 * Fires inside the adduser form tag. 286 * 287 * @since 3.0.0 288 */ 289 do_action( 'user_new_form_tag' ); 290 ?>> 291 291 <input name="action" type="hidden" value="adduser" /> 292 292 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 293 293 … … 335 335 ?> 336 336 <p><?php _e('Create a brand new user and add them to this site.'); ?></p> 337 337 <?php /** This action is documented in wp-admin/user-new.php */ ?> 338 <form action="" method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>> 338 <form action="" method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"<?php 339 /** This action is documented in wp-admin/user-new.php */ 340 do_action( 'user_new_form_tag' ); 341 ?>> 339 342 <input name="action" type="hidden" value="createuser" /> 340 343 <?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ); ?> 341 344 <?php -
src/wp-includes/feed-rdf.php
34 34 <link><?php bloginfo_rss('url') ?></link> 35 35 <description><?php bloginfo_rss('description') ?></description> 36 36 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 37 <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?> 38 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 39 <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?> 40 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 37 <sy:updatePeriod><?php 38 /** This filter is documented in wp-includes/feed-rss2.php */ 39 echo apply_filters( 'rss_update_period', 'hourly' ); 40 ?></sy:updatePeriod> 41 <sy:updateFrequency><?php 42 /** This filter is documented in wp-includes/feed-rss2.php */ 43 echo apply_filters( 'rss_update_frequency', '1' ); 44 ?></sy:updateFrequency> 41 45 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 42 46 <?php 43 47 /** -
src/wp-includes/feed-rss2-comments.php
44 44 <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link> 45 45 <description><?php bloginfo_rss("description") ?></description> 46 46 <lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate> 47 <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?> 48 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 49 <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?> 50 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 47 <sy:updatePeriod><?php 48 /** This filter is documented in wp-includes/feed-rss2.php */ 49 echo apply_filters( 'rss_update_period', 'hourly' ); 50 ?></sy:updatePeriod> 51 <sy:updateFrequency><?php 52 /** This filter is documented in wp-includes/feed-rss2.php */ 53 echo apply_filters( 'rss_update_frequency', '1' ); 54 ?></sy:updateFrequency> 51 55 <?php 52 56 /** 53 57 * Fires at the end of the RSS2 comment feed header. -
src/wp-includes/feed-rss2.php
44 44 <description><?php bloginfo_rss("description") ?></description> 45 45 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> 46 46 <language><?php bloginfo_rss( 'language' ); ?></language> 47 <?php $duration = 'hourly'; ?> 48 <sy:updatePeriod><?php 49 /** 50 * Filter how often to update the RSS feed. 51 * 52 * @since 2.1.0 53 * 54 * @param string $duration The update period. Accepts 'hourly', 'daily', 'weekly', 'monthly', 55 * 'yearly'. Default 'hourly'. 56 */ 57 echo apply_filters( 'rss_update_period', $duration ); 58 ?></sy:updatePeriod> 47 59 <?php 48 $duration = 'hourly';49 /**50 * Filter how often to update the RSS feed.51 *52 * @since 2.1.053 *54 * @param string $duration The update period.55 * Default 'hourly'. Accepts 'hourly', 'daily', 'weekly', 'monthly', 'yearly'.56 */57 ?>58 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', $duration ); ?></sy:updatePeriod>59 <?php60 60 $frequency = '1'; 61 61 /** 62 62 * Filter the RSS update frequency. -
src/wp-includes/theme-compat/comments-popup.php
96 96 <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> 97 97 <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e('Say It!' ); ?>" /> 98 98 </p> 99 <?php do_action('comment_form', $post->ID); ?> 99 <?php 100 /** This filter is documented in wp-includes/comment-template.php */ 101 do_action( 'comment_form', $post->ID ); 102 ?> 100 103 </form> 101 104 <?php } else { // comments are closed ?> 102 105 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p> -
src/wp-includes/theme-compat/comments.php
91 91 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" /> 92 92 <?php comment_id_fields(); ?> 93 93 </p> 94 <?php do_action('comment_form', $post->ID); ?> 94 <?php 95 /** This filter is documented in wp-includes/comment-template.php */ 96 do_action( 'comment_form', $post->ID ); 97 ?> 95 98 96 99 </form> 97 100