Disable update service editing by default for multisite. See #12229.

Introduce __return_false for simple filtering. See #12381.

git-svn-id: https://develop.svn.wordpress.org/trunk@13413 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-02-25 21:56:28 +00:00
parent 0ecd82b142
commit fd0925a920
2 changed files with 14 additions and 0 deletions

View File

@ -4042,4 +4042,15 @@ function get_file_data( $file, $default_headers, $context = '' ) {
function _search_terms_tidy($t) {
return trim($t, "\"'\n\r ");
}
/**
* Returns false
*
* Useful for returning false to filters easily
*
* @return bool false
*/
function __return_false() {
return false;
}
?>

View File

@ -36,4 +36,7 @@ add_filter ( 'wp_mail_from', 'wordpressmu_wp_mail_from' );
add_action( "phpmailer_init", "fix_phpmailer_messageid" );
// Disable somethings by default for multisite
add_filter( 'enable_update_services_configuration', '__return_false' );
?>