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:
parent
97090ba1a2
commit
34d3291d32
|
@ -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;
|
||||
}
|
||||
?>
|
|
@ -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' );
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue