Make WordPress Core


Ignore:
Timestamp:
11/28/2014 12:17:27 PM (12 years ago)
Author:
DrewAPicture
Message:

4.1 Docs Audit: Improve inline documentation for the new WP_Query::setup_postdata() method.

See #30469.

File:
1 edited

Legend:

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

    r30323 r30620  
    45594559                        $page = 1;
    45604560
    4561                 // Force full post content when viewing the permalink for the $post, or
    4562                 // when on an RSS feed. Otherwise respect the 'more' tag.
     4561                /*
     4562                 * Force full post content when viewing the permalink for the $post,
     4563                 * or when on an RSS feed. Otherwise respect the 'more' tag.
     4564                 */
    45634565                if ( $post->ID === get_queried_object_id() && ( $this->is_page() || $this->is_single() ) ) {
    45644566                        $more = 1;
     
    45764578                        $content = str_replace( "\n<!--nextpage-->", '<!--nextpage-->', $content );
    45774579                        $content = str_replace( "<!--nextpage-->\n", '<!--nextpage-->', $content );
     4580
    45784581                        // Ignore nextpage at the beginning of the content.
    45794582                        if ( 0 === strpos( $content, '<!--nextpage-->' ) )
    45804583                                $content = substr( $content, 15 );
     4584
    45814585                        $pages = explode('<!--nextpage-->', $content);
    45824586                        $numpages = count($pages);
     
    45914595                 *
    45924596                 * @since 2.8.0
    4593                  * @since 4.1.0 Introduced $this parameter.
     4597                 * @since 4.1.0 Introduced `$this` parameter.
    45944598                 *
    45954599                 * @param WP_Post  &$post The Post object (passed by reference).
Note: See TracChangeset for help on using the changeset viewer.