Make WordPress Core


Ignore:
Timestamp:
05/29/2015 05:03:13 PM (9 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/bookmark.php

    r32642 r32653  
    117117 */
    118118function wp_get_link_cats( $link_id = 0 ) {
    119 
    120119    $cats = wp_get_object_terms( $link_id, 'link_category', array('fields' => 'ids') );
    121 
    122120    return array_unique( $cats );
    123121}
     
    309307    wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
    310308}
    311 add_action( 'admin_page_access_denied', 'wp_link_manager_disabled_message' );
Note: See TracChangeset for help on using the changeset viewer.