Make WordPress Core


Ignore:
Timestamp:
05/29/2015 05:03:13 PM (10 years ago)
Author:
wonderboymusic
Message:

In the style of #30947 and default-filters.php, add 2 new files to wp-admin/includes:
admin-filters.php
ms-admin-filters.php

There are random actions and filters littered among files like misc.php. These files contain functions that won't work outside of admin context and are typically only loaded in files that have already loaded the admin bootstrap.

See #32529.

File:
1 edited

Legend:

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

    r29206 r32653  
    1515    load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' );
    1616}
     17
     18/** WordPress Administration Hooks */
     19require_once(ABSPATH . 'wp-admin/includes/admin-filters.php');
    1720
    1821/** WordPress Bookmark Administration API */
     
    7073/** WordPress Multisite support API */
    7174if ( is_multisite() ) {
     75    require_once(ABSPATH . 'wp-admin/includes/ms-admin-filters.php');
    7276    require_once(ABSPATH . 'wp-admin/includes/ms.php');
    7377    require_once(ABSPATH . 'wp-admin/includes/ms-deprecated.php');
Note: See TracChangeset for help on using the changeset viewer.