Ticket #23734: 23734.2.diff
File 23734.2.diff, 1.3 KB (added by , 10 years ago) |
---|
-
src/wp-includes/post-template.php
1054 1054 * Filter the HTML output of a list of pages as a drop down. 1055 1055 * 1056 1056 * @since 2.1.0 1057 * @since 4.4.0 `$r` and `$pages` added as arguments. 1057 1058 * 1058 1059 * @param string $output HTML output for drop down list of pages. 1059 */ 1060 $html = apply_filters( 'wp_dropdown_pages', $output ); 1060 * @param array $r The parsed arguments array. 1061 * @param array $pages List of WP_Post objects returned by `get_pages()` 1062 */ 1063 $html = apply_filters( 'wp_dropdown_pages', $output, $r, $pages ); 1061 1064 1062 1065 if ( $r['echo'] ) { 1063 1066 echo $html; … … 1161 1164 * Filter the HTML output of the pages to list. 1162 1165 * 1163 1166 * @since 1.5.1 1167 * @since 4.4.0 `$pages` added as arguments. 1164 1168 * 1165 1169 * @see wp_list_pages() 1166 1170 * 1167 1171 * @param string $output HTML output of the pages list. 1168 1172 * @param array $r An array of page-listing arguments. 1173 * @param array $pages List of WP_Post objects returned by `get_pages()` 1169 1174 */ 1170 $html = apply_filters( 'wp_list_pages', $output, $r );1175 $html = apply_filters( 'wp_list_pages', $output, $r, $pages ); 1171 1176 1172 1177 if ( $r['echo'] ) { 1173 1178 echo $html;