Move Walker_Page and Walker_PageDropdown into their own files via svn cp. Remove them from post-template.php. Load them in post.php.

`post-template.php` loads after `post.php` in `wp-settings.php`. It could probably also be loaded in `post.php`, but avoiding that for the moment.

See #33413.


git-svn-id: https://develop.svn.wordpress.org/trunk@34109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-14 02:58:40 +00:00
parent 2d5945f0fc
commit 1ccae571d9
4 changed files with 236 additions and 211 deletions
+9
View File
@@ -7,5 +7,14 @@
* @since 1.5.0
*/
/** Core posts functionality */
require_once( ABSPATH . WPINC . '/post-functions.php' );
/** Walker_Page class */
require_once( ABSPATH . WPINC . '/class-walker-page.php' );
/** Walker_PageDropdown class */
require_once( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
/** WP_Post class */
require_once( ABSPATH . WPINC . '/class-wp-post.php' );