Make WordPress Core


Ignore:
Timestamp:
11/22/2015 03:50:32 AM (10 years ago)
Author:
SergeyBiryukov
Message:

After [35718], update the location of some files in This filter is documented in docs.

Partially reverts [33954].

Fixes #33413.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r35718 r35725  
    21302130    $counts = wp_cache_get( $cache_key, 'counts' );
    21312131    if ( false !== $counts ) {
    2132         /** This filter is documented in wp-includes/post-functions.php */
     2132        /** This filter is documented in wp-includes/post.php */
    21332133        return apply_filters( 'wp_count_posts', $counts, $type, $perm );
    21342134    }
     
    34853485    wp_transition_post_status( 'publish', $old_status, $post );
    34863486
    3487     /** This action is documented in wp-includes/post-functions.php */
     3487    /** This action is documented in wp-includes/post.php */
    34883488    do_action( 'edit_post', $post->ID, $post );
    34893489
    3490     /** This action is documented in wp-includes/post-functions.php */
     3490    /** This action is documented in wp-includes/post.php */
    34913491    do_action( "save_post_{$post->post_type}", $post->ID, $post, true );
    34923492
    3493     /** This action is documented in wp-includes/post-functions.php */
     3493    /** This action is documented in wp-includes/post.php */
    34943494    do_action( 'save_post', $post->ID, $post, true );
    34953495
    3496     /** This action is documented in wp-includes/post-functions.php */
     3496    /** This action is documented in wp-includes/post.php */
    34973497    do_action( 'wp_insert_post', $post->ID, $post, true );
    34983498}
     
    44044404        // Convert to WP_Post instances.
    44054405        $pages = array_map( 'get_post', $cache );
    4406         /** This filter is documented in wp-includes/post-functions.php */
     4406        /** This filter is documented in wp-includes/post.php */
    44074407        $pages = apply_filters( 'get_pages', $pages, $r );
    44084408        return $pages;
     
    45464546
    45474547    if ( empty($pages) ) {
    4548         /** This filter is documented in wp-includes/post-functions.php */
     4548        /** This filter is documented in wp-includes/post.php */
    45494549        $pages = apply_filters( 'get_pages', array(), $r );
    45504550        return $pages;
     
    47364736        delete_metadata_by_mid( 'post', $mid );
    47374737
    4738     /** This action is documented in wp-includes/post-functions.php */
     4738    /** This action is documented in wp-includes/post.php */
    47394739    do_action( 'delete_post', $post_id );
    47404740    $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) );
     
    47424742        return false;
    47434743    }
    4744     /** This action is documented in wp-includes/post-functions.php */
     4744    /** This action is documented in wp-includes/post.php */
    47454745    do_action( 'deleted_post', $post_id );
    47464746
Note: See TracChangeset for help on using the changeset viewer.