WordPress.org

Make WordPress Core

Changeset 13413


Ignore:
Timestamp:
02/25/10 21:56:28 (5 years ago)
Author:
westi
Message:

Disable update service editing by default for multisite. See #12229.
Introduce return_false for simple filtering. See #12381.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r13408 r13413  
    40434043    return trim($t, "\"'\n\r "); 
    40444044} 
     4045 
     4046/** 
     4047 * Returns false 
     4048 * 
     4049 * Useful for returning false to filters easily 
     4050 *  
     4051 * @return bool false 
     4052 */ 
     4053function __return_false() { 
     4054    return false; 
     4055} 
    40454056?> 
  • trunk/wp-includes/ms-default-filters.php

    r12954 r13413  
    3737 
    3838add_action( "phpmailer_init", "fix_phpmailer_messageid" ); 
     39 
     40// Disable somethings by default for multisite 
     41add_filter( 'enable_update_services_configuration', '__return_false' ); 
    3942?> 
Note: See TracChangeset for help on using the changeset viewer.