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

Introduce __return_false for simple filtering. See #12381.

git-svn-id: http://svn.automattic.com/wordpress/trunk@13413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-02-25 21:56:28 +00:00
parent 97090ba1a2
commit 34d3291d32
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' );
?>