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

    r32642 r32653  
    4242    return $file;
    4343}
    44 add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );
    4544
    4645/**
     
    301300    wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content );
    302301}
    303 add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
    304 add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
    305302
    306303/**
     
    384381    }
    385382}
    386 add_action( 'personal_options_update', 'send_confirmation_on_profile_email' );
    387383
    388384/**
     
    396392        echo "<div class='update-nag'>" . sprintf( __( "Your email address has not been updated yet. Please check your inbox at %s for a confirmation email." ), $email['newemail'] ) . "</div>";
    397393}
    398 add_action( 'admin_notices', 'new_user_email_admin_notice' );
    399394
    400395/**
     
    491486    <?php
    492487}
    493 add_action( 'wpmueditblogaction', 'upload_space_setting' );
    494488
    495489/**
     
    622616    return $term;
    623617}
    624 add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 );
    625618
    626619/**
     
    663656    wp_die( $output, 403 );
    664657}
    665 add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );
    666658
    667659/**
     
    678670    return true;
    679671}
    680 add_filter( 'import_allow_create_users', 'check_import_new_users' );
    681672// See "import_allow_fetch_attachments" and "import_attachment_size_limit" filters too.
    682673
     
    747738        echo "<div class='update-nag'>" . sprintf( __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ) . "</div>";
    748739}
    749 add_action( 'admin_notices', 'site_admin_notice' );
    750 add_action( 'network_admin_notices', 'site_admin_notice' );
    751740
    752741/**
     
    783772    return $data;
    784773}
    785 add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 );
    786774
    787775/**
Note: See TracChangeset for help on using the changeset viewer.