Make WordPress Core

Changeset 45742

Timestamp:
08/04/2019 12:27:02 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing description for $post global.

Props immeet94.
Fixes #46503. See #47110.

Location:
trunk/src
Files:
17 edited

Legend:

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

    r45674 r45742  
    1515 * @global string       $post_type
    1616 * @global WP_Post_Type $post_type_object
    17  * @global WP_Post      $post
     17 * @global WP_Post      $post
    1818 */
    1919global $post_type, $post_type_object, $post;
  • trunk/src/wp-admin/edit-form-blocks.php

    r45657 r45742  
    1717 * @global string       $post_type
    1818 * @global WP_Post_Type $post_type_object
    19  * @global WP_Post      $post
     19 * @global WP_Post      $post
    2020 * @global string       $title
    2121 * @global array        $editor_styles
  • trunk/src/wp-admin/includes/ajax-actions.php

    r45727 r45742  
    30823082 * @since 3.5.0
    30833083 *
    3084  * @global WP_Post  $post
     3084 * @global WP_Post  $post
    30853085 * @global WP_Embed $wp_embed
    30863086 */
     
    34073407 * @since 4.0.0
    34083408 *
    3409  * @global WP_Post    $post       Global $post.
     3409 * @global WP_Post    $post       Global t.
    34103410 * @global WP_Embed   $wp_embed   Embed API instance.
    34113411 * @global WP_Scripts $wp_scripts
     
    35403540 * @since 4.0.0
    35413541 *
    3542  * @global WP_Post    $post
     3542 * @global WP_Post    $post
    35433543 * @global WP_Scripts $wp_scripts
    35443544 */
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r45583 r45742  
    534534
    535535    /**
    536      * @global WP_Post    $post
     536     * @global WP_Post    $post
    537537     * @global WP_Comment $comment
    538538     *
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r45739 r45742  
    612612
    613613    /**
    614      * @global WP_Post $post
     614     * @global WP_Post $post
    615615     */
    616616    public function display_rows() {
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r45739 r45742  
    742742    /**
    743743     * @global wpdb    $wpdb WordPress database abstraction object.
    744      * @global WP_Post $post
     744     * @global WP_Post $post
    745745     * @param array $pages
    746746     * @param int $pagenum
     
    12611261
    12621262    /**
    1263      * @global WP_Post $post
     1263     * @global WP_Post $post
    12641264     *
    12651265     * @param int|WP_Post $post
  • trunk/src/wp-admin/includes/export.php

    r45739 r45742  
    2626 *
    2727 * @global wpdb    $wpdb WordPress database abstraction object.
    28  * @global WP_Post $post Global `$post`.
     28 * @global WP_Post $post Global .
    2929 *
    3030 * @param array $args {
  • trunk/src/wp-admin/includes/revision.php

    r45583 r45742  
    349349 * @since 4.1.0
    350350 *
    351  * @global WP_Post $post The global `$post` object.
     351 * @global WP_Post $post object.
    352352 */
    353353function wp_print_revision_templates() {
  • trunk/src/wp-admin/post-new.php

    r45224 r45742  
    1313 * @global string  $post_type
    1414 * @global object  $post_type_object
    15  * @global WP_Post $post
     15 * @global WP_Post $post
    1616 */
    1717global $post_type, $post_type_object, $post;
  • trunk/src/wp-admin/post.php

    r45602 r45742  
    3131 * @global string  $post_type
    3232 * @global object  $post_type_object
    33  * @global WP_Post $post
     33 * @global WP_Post $post
    3434 */
    3535global $post_type, $post_type_object, $post;
  • trunk/src/wp-includes/class-wp-query.php

    r45739 r45742  
    32603260     * @since 1.5.0
    32613261     *
    3262      * @global WP_Post $post
     3262     * @global WP_Post $post
    32633263     */
    32643264    public function the_post() {
     
    43274327     * @since 3.7.0
    43284328     *
    4329      * @global WP_Post $post
     4329     * @global WP_Post $post
    43304330     */
    43314331    public function reset_postdata() {
  • trunk/src/wp-includes/comment-template.php

    r45741 r45742  
    13041304 *
    13051305 * @global WP_Query   $wp_query         WordPress Query object.
    1306  * @global WP_Post    $post
     1306 * @global WP_Post    $post
    13071307 * @global wpdb       $wpdb             WordPress database abstraction object.
    13081308 * @global int        $id
  • trunk/src/wp-includes/functions.php

    r45739 r45742  
    63476347 * @since 4.3.0
    63486348 *
    6349  * @global WP_Post $post
     6349 * @global WP_Post $post
    63506350 */
    63516351function wp_post_preview_js() {
  • trunk/src/wp-includes/post.php

    r45735 r45742  
    585585 * @todo Check validity of description.
    586586 *
    587  * @global WP_Post $post
     587 * @global WP_Post $post
    588588 *
    589589 * @param mixed  $args   Optional. User defined arguments for replacing the defaults. Default empty.
     
    698698 * @since 1.5.1
    699699 *
    700  * @global WP_Post $post
     700 * @global WP_Post $post
    701701 *
    702702 * @param int|WP_Post|null $post   Optional. Post ID or post object. Defaults to global $post.
     
    30013001        }
    30023002        if ( get_option( 'page_for_posts' ) == $post->ID ) {
    3003             delete_option( 'page_for_posts', 0 );
     3003            delete_option( 'page_for_posts' );
    30043004        }
    30053005    }
  • trunk/src/wp-includes/template.php

    r45739 r45742  
    685685 *
    686686 * @global array      $posts
    687  * @global WP_Post    $post
     687 * @global WP_Post    $post
    688688 * @global bool       $wp_did_header
    689689 * @global WP_Query   $wp_query      WordPress Query object.
  • trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php

    r45143 r45742  
    104104     * @since 4.8.1
    105105     *
    106      * @global WP_Post $post
     106     * @global WP_Post $post Global post object.
     107     *
    107108     * @param array $args     Display arguments including 'before_title', 'after_title',
    108109     *                        'before_widget', and 'after_widget'.
  • trunk/src/wp-includes/widgets/class-wp-widget-text.php

    r45611 r45742  
    214214     * @since 2.8.0
    215215     *
    216      * @global WP_Post $post
     216     * @global WP_Post $post
    217217     *
    218218     * @param array $args     Display arguments including 'before_title', 'after_title',
Note: See TracChangeset for help on using the changeset viewer.