WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/20/2018 08:04:00 PM (8 months ago)
Author:
desrosj
Message:

Docs: Correctly specify the $page parameter of list_pages filter as a WP_Post.

Props ianbelanger.
Fixes #44398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-page-dropdown.php

    r42343 r44355  
    8181         * @since 3.1.0
    8282         *
    83          * @param string $title Page title.
    84          * @param object $page  Page data object.
     83         * @param string  $title Page title.
     84         * @param WP_Post $page  Page data object.
    8585         */
    8686        $title = apply_filters( 'list_pages', $title, $page );
Note: See TracChangeset for help on using the changeset viewer.