Make WordPress Core


Ignore:
Timestamp:
01/12/2015 04:39:39 PM (10 years ago)
Author:
wonderboymusic
Message:

There are some random add_action() and add_filter() calls littered around some files in wp-includes/. These should be moved to wp-includes/default-filters.php with the rest of the registered hooks. It seems like this was the best practice for awhile and then we randomly stopped. This file loads way before any of the includes, so the hooks will be registered for any request that loads WordPress, even SHORTINIT - a lot of the hooks registered won't run anyways (that's already the case).

See #30947.

File:
1 edited

Legend:

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

    r30742 r31168  
    20292029    update_blog_status( get_current_blog_id(), 'public', (int) $value );
    20302030}
    2031 add_action('update_option_blog_public', 'update_blog_public', 10, 2);
    20322031
    20332032/**
     
    20702069    return false;
    20712070}
    2072 add_filter('option_users_can_register', 'users_can_register_signup_filter');
    20732071
    20742072/**
     
    20992097    return $text;
    21002098}
    2101 add_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );
    21022099
    21032100/**
Note: See TracChangeset for help on using the changeset viewer.