Mainstream things that don't need to be multisite only. Formatting cleanups. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7b64248bc8
commit
d24ac0a095
|
@ -629,7 +629,6 @@ function delete_option( $name ) {
|
|||
function delete_transient($transient) {
|
||||
global $_wp_using_ext_object_cache, $wpdb;
|
||||
|
||||
if( is_multisite() )
|
||||
do_action( 'delete_transient_' . $transient );
|
||||
|
||||
if ( $_wp_using_ext_object_cache ) {
|
||||
|
@ -699,7 +698,6 @@ function get_transient($transient) {
|
|||
function set_transient($transient, $value, $expiration = 0) {
|
||||
global $_wp_using_ext_object_cache, $wpdb;
|
||||
|
||||
if( is_multisite() )
|
||||
$value = apply_filters( 'pre_set_transient_' . $transient, $value );
|
||||
|
||||
if ( $_wp_using_ext_object_cache ) {
|
||||
|
@ -2186,14 +2184,11 @@ function wp_upload_bits( $name, $deprecated, $bits, $time = null ) {
|
|||
if ( $upload['error'] !== false )
|
||||
return $upload;
|
||||
|
||||
if( is_multisite() ) {
|
||||
/* WPMU check file before writing it */
|
||||
$upload_bits_error = apply_filters( 'wp_upload_bits', array( 'name' => $name, 'bits' => $bits, 'time' => $time ) );
|
||||
if( is_array( $upload_bits_error ) == false ) {
|
||||
if ( !is_array( $upload_bits_error ) ) {
|
||||
$upload[ 'error' ] = $upload_bits_error;
|
||||
return $upload;
|
||||
}
|
||||
}
|
||||
|
||||
$filename = wp_unique_filename( $upload['path'], $name );
|
||||
|
||||
|
|
Loading…
Reference in New Issue