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/update.php

    r32643 r32653  
    189189    }
    190190}
    191 add_filter( 'update_footer', 'core_update_footer' );
    192191
    193192/**
     
    217216    echo "<div class='update-nag'>$msg</div>";
    218217}
    219 add_action( 'admin_notices', 'update_nag', 3 );
    220 add_action( 'network_admin_notices', 'update_nag', 3 );
    221218
    222219// Called directly from dashboard
     
    267264    }
    268265}
    269 add_action( 'admin_init', 'wp_plugin_update_rows' );
    270266
    271267function wp_plugin_update_row( $file, $plugin_data ) {
     
    363359    }
    364360}
    365 add_action( 'admin_init', 'wp_theme_update_rows' );
    366361
    367362function wp_theme_update_row( $theme_key, $theme ) {
     
    442437    echo "<div class='update-nag'>$msg</div>";
    443438}
    444 add_action( 'admin_notices', 'maintenance_nag' );
    445 add_action( 'network_admin_notices', 'maintenance_nag' );
Note: See TracChangeset for help on using the changeset viewer.