mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@32653 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -116,9 +116,7 @@ function wp_delete_link( $link_id ) {
|
||||
* @return array The requested link's categories
|
||||
*/
|
||||
function wp_get_link_cats( $link_id = 0 ) {
|
||||
|
||||
$cats = wp_get_object_terms( $link_id, 'link_category', array('fields' => 'ids') );
|
||||
|
||||
return array_unique( $cats );
|
||||
}
|
||||
|
||||
@@ -308,4 +306,3 @@ function wp_link_manager_disabled_message() {
|
||||
|
||||
wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
|
||||
}
|
||||
add_action( 'admin_page_access_denied', 'wp_link_manager_disabled_message' );
|
||||
|
||||
Reference in New Issue
Block a user