Make WordPress Core

Ticket #30558: 30558.diff

File 30558.diff, 15.5 KB (added by DrewAPicture, 11 years ago)
  • src/wp-admin/admin-header.php

     
    160160
    161161?>
    162162</head>
    163 <?php
     163<body class="wp-admin wp-core-ui no-js <?php
    164164/**
    165165 * Filter the CSS classes for the body tag in the admin.
    166166 *
     
    172172 *
    173173 * @param string $classes Space-separated string of CSS classes.
    174174 */
    175 ?>
    176 <body class="wp-admin wp-core-ui no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
     175echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class";
     176?>">
    177177<script type="text/javascript">
    178178        document.body.className = document.body.className.replace('no-js','js');
    179179</script>
  • src/wp-admin/edit-form-advanced.php

     
    451451<?php if ( post_type_supports($post_type, 'title') ) { ?>
    452452<div id="titlediv">
    453453<div id="titlewrap">
    454         <?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         ?>
    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">
     455                <?php
     456                /**
     457                 * Filter the title field placeholder text.
     458                 *
     459                 * @since 3.1.0
     460                 *
     461                 * @param string  $text Placeholder text. Default 'Enter title here'.
     462                 * @param WP_Post $post Post object.
     463                 */
     464                echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post );
     465                ?>
     466        </label>
    465467        <input type="text" name="post_title" size="30" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" spellcheck="true" autocomplete="off" />
    466468</div>
    467469<?php
  • src/wp-admin/includes/class-wp-links-list-table.php

     
    187187                                                ?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php
    188188                                                break;
    189189                                        default:
    190                                                 /**
    191                                                  * Fires for each registered custom link column.
    192                                                  *
    193                                                  * @since 2.1.0
    194                                                  *
    195                                                  * @param string $column_name Name of the custom column.
    196                                                  * @param int    $link_id     Link ID.
    197                                                  */
    198190                                                ?>
    199                                                 <td <?php echo $attributes ?>><?php do_action( 'manage_link_custom_column', $column_name, $link->link_id ); ?></td>
     191                                                <td <?php echo $attributes ?>>
     192                                                        <?php
     193                                                        /**
     194                                                         * Fires for each registered custom link column.
     195                                                         *
     196                                                         * @since 2.1.0
     197                                                         *
     198                                                         * @param string $column_name Name of the custom column.
     199                                                         * @param int    $link_id     Link ID.
     200                                                         */
     201                                                        do_action( 'manage_link_custom_column', $column_name, $link->link_id );
     202                                                        ?>
     203                                                </td>
    200204                                                <?php
    201205                                                break;
    202206                                }
  • src/wp-admin/includes/class-wp-media-list-table.php

     
    471471?>
    472472                <td <?php echo $attributes ?>>
    473473                        <?php
    474                                 /**
    475                                  * Fires for each custom column in the Media list table.
    476                                  *
    477                                  * Custom columns are registered using the 'manage_media_columns' filter.
    478                                  *
    479                                  * @since 2.5.0
    480                                  *
    481                                  * @param string $column_name Name of the custom column.
    482                                  * @param int    $post_id     Attachment ID.
    483                                  */
     474                        /**
     475                         * Fires for each custom column in the Media list table.
     476                         *
     477                         * Custom columns are registered using the 'manage_media_columns' filter.
     478                         *
     479                         * @since 2.5.0
     480                         *
     481                         * @param string $column_name Name of the custom column.
     482                         * @param int    $post_id     Attachment ID.
     483                         */
     484                        do_action( 'manage_media_custom_column', $column_name, $post->ID );
    484485                        ?>
    485                         <?php do_action( 'manage_media_custom_column', $column_name, $post->ID ); ?>
    486486                </td>
    487487<?php
    488488                break;
  • src/wp-admin/includes/export.php

     
    391391                $is_sticky = is_sticky( $post->ID ) ? 1 : 0;
    392392?>
    393393        <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>
     395                        <?php
     396                        /** This filter is documented in wp-includes/feed.php */
     397                        echo apply_filters( 'the_title_rss', $post->post_title );
     398                        ?>
     399                </title>
    396400                <link><?php the_permalink_rss() ?></link>
    397401                <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
    398402                <dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator>
  • src/wp-admin/includes/template.php

     
    15841584
    15851585?>
    15861586</head>
    1587 <?php /** This filter is documented in wp-admin/admin-header.php */ ?>
    1588 <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; ?>">
     1587<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php
     1588        /** This filter is documented in wp-admin/admin-header.php */
     1589        echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class;
     1590?>">
    15891591<script type="text/javascript">
    15901592//<![CDATA[
    15911593(function(){
     
    18671869        if ( $is_IE )
    18681870                @header('X-UA-Compatible: IE=edge');
    18691871
     1872?>
     1873<!DOCTYPE html>
     1874<!--[if IE 8]>
     1875<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php
    18701876/**
    18711877 * Fires inside the HTML tag in the admin header.
    18721878 *
    18731879 * @since 2.2.0
    18741880 */
    1875 ?>
    1876 <!DOCTYPE html>
    1877 <!--[if IE 8]>
    1878 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); ?>>
     1881do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); ?>>
    18791882<![endif]-->
    18801883<!--[if !(IE 8) ]><!-->
    1881 <?php /** This action is documented in wp-admin/includes/template.php */ ?>
    1882 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php do_action( 'admin_xml_ns' ); ?> <?php language_attributes(); ?>>
     1884<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php
     1885/** This action is documented in wp-admin/includes/template.php */
     1886do_action( 'admin_xml_ns' ); ?> <?php language_attributes();
     1887?>>
    18831888<!--<![endif]-->
    18841889<head>
    18851890<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
  • src/wp-admin/user-edit.php

     
    232232        <?php }
    233233} ?>
    234234</h2>
     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"
    235236<?php
    236 /**
    237  * Fires inside the your-profile form tag on the user editing screen.
    238  *
    239  * @since 3.0.0
    240  */
    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' ); ?>>
     237        /**
     238        * Fires inside the your-profile form tag on the user editing screen.
     239        *
     240        * @since 3.0.0
     241        */
     242        do_action( 'user_edit_form_tag' );
     243?>>
    243244<?php wp_nonce_field('update-user_' . $user_id) ?>
    244245<?php if ( $wp_http_referer ) : ?>
    245246        <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" />
     
    261262<?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>
    262263<tr class="user-admin-color-wrap">
    263264<th scope="row"><?php _e('Admin Color Scheme')?></th>
    264 <?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 ?>
    277 <td><?php do_action( 'admin_color_scheme_picker', $user_id ); ?></td>
     265<td>
     266        <?php
     267        /**
     268         * Fires in the 'Admin Color Scheme' section of the user editing screen.
     269         *
     270         * The section is only enabled if a callback is hooked to the action,
     271         * and if there is more than one defined color scheme for the admin.
     272         *
     273         * @since 3.0.0
     274         * @since 3.8.1 Added `$user_id` parameter.
     275         *
     276         * @param int $user_id The user ID.
     277         */
     278        do_action( 'admin_color_scheme_picker', $user_id );
     279        ?>
     280</td>
    278281</tr>
    279282<?php
    280283endif; // $_wp_admin_css_colors
  • src/wp-admin/user-new.php

     
    280280                $type  = 'text';
    281281        }
    282282?>
     283<form action="" method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"
    283284<?php
    284 /**
    285  * Fires inside the adduser form tag.
    286  *
    287  * @since 3.0.0
    288  */
    289 ?>
    290 <form action="" method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>>
     285        /**
     286        * Fires inside the adduser form tag.
     287        *
     288        * @since 3.0.0
     289        */
     290        do_action( 'user_new_form_tag' );
     291?>>
    291292<input name="action" type="hidden" value="adduser" />
    292293<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
    293294
     
    335336?>
    336337<p><?php _e('Create a brand new user and add them to this site.'); ?></p>
    337338<?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' );?>>
     339<form action="" method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"
     340<?php
     341        /** This action is documented in wp-admin/user-new.php */
     342        do_action( 'user_new_form_tag' );
     343?>>
    339344<input name="action" type="hidden" value="createuser" />
    340345<?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ); ?>
    341346<?php
  • src/wp-includes/feed-rdf.php

     
    3434        <link><?php bloginfo_rss('url') ?></link>
    3535        <description><?php bloginfo_rss('description') ?></description>
    3636        <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>
     38                <?php
     39                /** This filter is documented in wp-includes/feed-rss2.php */
     40                echo apply_filters( 'rss_update_period', 'hourly' );
     41                ?>
     42        </sy:updatePeriod>
     43        <sy:updateFrequency>
     44                <?php
     45                /** This filter is documented in wp-includes/feed-rss2.php */
     46                echo apply_filters( 'rss_update_frequency', '1' );
     47                ?>
     48        </sy:updateFrequency>
    4149        <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    4250        <?php
    4351        /**
  • src/wp-includes/feed-rss2-comments.php

     
    4444        <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    4545        <description><?php bloginfo_rss("description") ?></description>
    4646        <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>
     48                <?php
     49                /** This filter is documented in wp-includes/feed-rss2.php */
     50                echo apply_filters( 'rss_update_period', 'hourly' );
     51                ?>
     52        </sy:updatePeriod>
     53        <sy:updateFrequency>
     54                <?php
     55                /** This filter is documented in wp-includes/feed-rss2.php */
     56                echo apply_filters( 'rss_update_frequency', '1' );
     57                ?>
     58        </sy:updateFrequency>
    5159        <?php
    5260        /**
    5361         * Fires at the end of the RSS2 comment feed header.
  • src/wp-includes/feed-rss2.php

     
    4646        <language><?php bloginfo_rss( 'language' ); ?></language>
    4747        <?php
    4848        $duration = 'hourly';
    49         /**
    50          * Filter how often to update the RSS feed.
    51          *
    52          * @since 2.1.0
    53          *
    54          * @param string $duration The update period.
    55          *                         Default 'hourly'. Accepts 'hourly', 'daily', 'weekly', 'monthly', 'yearly'.
    56          */
    5749        ?>
    58         <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', $duration ); ?></sy:updatePeriod>
     50        <sy:updatePeriod>
     51                <?php
     52                /**
     53                 * Filter how often to update the RSS feed.
     54                 *
     55                 * @since 2.1.0
     56                 *
     57                 * @param string $duration The update period. Accepts 'hourly', 'daily', 'weekly', 'monthly',
     58                 *                         'yearly'. Default 'hourly'.
     59                 */
     60                echo apply_filters( 'rss_update_period', $duration );
     61                ?>
     62        </sy:updatePeriod>
    5963        <?php
    6064        $frequency = '1';
    6165        /**
  • src/wp-includes/theme-compat/comments-popup.php

     
    9696          <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" />
    9797          <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e('Say It!' ); ?>" />
    9898        </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        ?>
    100103</form>
    101104<?php } else { // comments are closed ?>
    102105<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
  • src/wp-includes/theme-compat/comments.php

     
    9191<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
    9292<?php comment_id_fields(); ?>
    9393</p>
    94 <?php do_action('comment_form', $post->ID); ?>
     94<?php
     95/** This filter is documented in wp-includes/comment-template.php */
     96do_action( 'comment_form', $post->ID );
     97?>
    9598
    9699</form>
    97100