From 54debcd452487512f4f90a228bc8838eb85a293b Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Thu, 20 Dec 2018 20:04:00 +0000 Subject: [PATCH] Docs: Correctly specify the `$page` parameter of `list_pages` filter as a `WP_Post`. Props ianbelanger. Fixes #44398. git-svn-id: https://develop.svn.wordpress.org/trunk@44355 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-walker-page-dropdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-walker-page-dropdown.php b/src/wp-includes/class-walker-page-dropdown.php index 23975af2f9..195c46de67 100644 --- a/src/wp-includes/class-walker-page-dropdown.php +++ b/src/wp-includes/class-walker-page-dropdown.php @@ -80,8 +80,8 @@ class Walker_PageDropdown extends Walker { * * @since 3.1.0 * - * @param string $title Page title. - * @param object $page Page data object. + * @param string $title Page title. + * @param WP_Post $page Page data object. */ $title = apply_filters( 'list_pages', $title, $page );