WordPress.org

Make WordPress Core

Changeset 35740


Ignore:
Timestamp:
11/25/15 22:18:49 (17 months ago)
Author:
helen
Message:

Avoid potential fatal errors after [35718].

While these classes are intended for admin use, there are developers out there who include wp-admin/includes/template.php to access them in other contexts. There is no intention to continue to support this indefinitely, but a breaking change like that would need to happen very early in a cycle and communicated loudly.

In the meantime, if you're reading this commit message and you do the above, please update your code to not do that. Thank you :)

fixes #33413.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r35718 r35740  
    5959/** WordPress Template Administration API */ 
    6060require_once(ABSPATH . 'wp-admin/includes/template.php'); 
    61 require_once(ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php'); 
    62 require_once(ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php'); 
    6361 
    6462/** WordPress List Table Administration API and base class */ 
  • trunk/src/wp-admin/includes/template.php

    r35730 r35740  
    88 * @subpackage Administration 
    99 */ 
     10 
     11/** Walker_Category_Checklist class */  
     12require_once( ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php' ); 
     13 
     14/** WP_Internal_Pointers class */  
     15require_once( ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php' ); 
    1016 
    1117// 
Note: See TracChangeset for help on using the changeset viewer.