Changeset 42343 for trunk/src/wp-includes/ms-default-filters.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ms-default-filters.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-default-filters.php
r41665 r42343 28 28 add_action( 'wpmu_activate_user', 'wpmu_welcome_user_notification', 10, 3 ); 29 29 add_action( 'after_signup_user', 'wpmu_signup_user_notification', 10, 4 ); 30 add_action( 'network_site_new_created_user', 'wp_send_new_user_notifications' );30 add_action( 'network_site_new_created_user', 'wp_send_new_user_notifications' ); 31 31 add_action( 'network_site_users_created_user', 'wp_send_new_user_notifications' ); 32 add_action( 'network_user_new_created_user', 'wp_send_new_user_notifications' );32 add_action( 'network_user_new_created_user', 'wp_send_new_user_notifications' ); 33 33 add_filter( 'sanitize_user', 'strtolower' ); 34 34 … … 58 58 59 59 // Counts 60 add_action( 'admin_init', 'wp_schedule_update_network_counts' );60 add_action( 'admin_init', 'wp_schedule_update_network_counts' ); 61 61 add_action( 'update_network_counts', 'wp_update_network_counts', 10, 0 ); 62 foreach ( array( 'user_register', 'deleted_user', 'wpmu_new_user', 'make_spam_user', 'make_ham_user' ) as $action ) 62 foreach ( array( 'user_register', 'deleted_user', 'wpmu_new_user', 'make_spam_user', 'make_ham_user' ) as $action ) { 63 63 add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0 ); 64 foreach ( array( 'make_spam_blog', 'make_ham_blog', 'archive_blog', 'unarchive_blog', 'make_delete_blog', 'make_undelete_blog' ) as $action ) 64 } 65 foreach ( array( 'make_spam_blog', 'make_ham_blog', 'archive_blog', 'unarchive_blog', 'make_delete_blog', 'make_undelete_blog' ) as $action ) { 65 66 add_action( $action, 'wp_maybe_update_network_site_counts', 10, 0 ); 67 } 66 68 unset( $action ); 67 69 … … 78 80 // Disable somethings by default for multisite 79 81 add_filter( 'enable_update_services_configuration', '__return_false' ); 80 if ( ! defined( 'POST_BY_EMAIL') || ! POST_BY_EMAIL )// back compat constant.82 if ( ! defined( 'POST_BY_EMAIL' ) || ! POST_BY_EMAIL ) { // back compat constant. 81 83 add_filter( 'enable_post_by_email_configuration', '__return_false' ); 82 if ( ! defined('EDIT_ANY_USER') || ! EDIT_ANY_USER ) // back compat constant. 84 } 85 if ( ! defined( 'EDIT_ANY_USER' ) || ! EDIT_ANY_USER ) { // back compat constant. 83 86 add_filter( 'enable_edit_any_user_configuration', '__return_false' ); 87 } 84 88 add_filter( 'force_filtered_html_on_import', '__return_true' ); 85 89 86 90 // WP_HOME and WP_SITEURL should not have any effect in MS 87 91 remove_filter( 'option_siteurl', '_config_wp_siteurl' ); 88 remove_filter( 'option_home', '_config_wp_home');92 remove_filter( 'option_home', '_config_wp_home' ); 89 93 90 94 // Some options changes should trigger site details refresh. 91 add_action( 'update_option_blogname', 'clean_site_details_cache', 10, 0 );92 add_action( 'update_option_siteurl', 'clean_site_details_cache', 10, 0 );95 add_action( 'update_option_blogname', 'clean_site_details_cache', 10, 0 ); 96 add_action( 'update_option_siteurl', 'clean_site_details_cache', 10, 0 ); 93 97 add_action( 'update_option_post_count', 'clean_site_details_cache', 10, 0 ); 94 add_action( 'update_option_home', 'clean_site_details_cache', 10, 0 );98 add_action( 'update_option_home', 'clean_site_details_cache', 10, 0 ); 95 99 96 100 // If the network upgrade hasn't run yet, assume ms-files.php rewriting is used.
Note: See TracChangeset
for help on using the changeset viewer.