Ticket #14147: 14147.diff
File 14147.diff, 3.6 KB (added by , 15 years ago) |
---|
-
capabilities.php
1079 1079 function current_user_can_for_blog( $blog_id, $capability ) { 1080 1080 $current_user = wp_get_current_user(); 1081 1081 1082 1082 if ( is_multisite() && is_super_admin() ) 1083 1083 return true; 1084 1084 1085 1085 if ( empty( $current_user ) ) -
category-template.php
731 731 break; 732 732 endswitch; 733 733 734 734 if ( $filter ) 735 735 return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args ); 736 736 else 737 737 return $return; 738 738 } 739 739 -
cron.php
90 90 91 91 $now = time(); 92 92 93 94 95 96 93 if ( $timestamp >= $now ) 94 $timestamp = $now + $interval; 95 else 96 $timestamp = $now + ($interval - (($now - $timestamp) % $interval)); 97 97 98 98 wp_schedule_event( $timestamp, $recurrence, $hook, $args ); 99 99 } -
functions.php
669 669 function delete_transient( $transient ) { 670 670 global $_wp_using_ext_object_cache; 671 671 672 672 do_action( 'delete_transient_' . $transient, $transient ); 673 673 674 674 if ( $_wp_using_ext_object_cache ) { 675 675 $result = wp_cache_delete( $transient, 'transient' ); … … 757 757 function set_transient( $transient, $value, $expiration = 0 ) { 758 758 global $_wp_using_ext_object_cache; 759 759 760 760 $value = apply_filters( 'pre_set_transient_' . $transient, $value ); 761 761 762 762 if ( $_wp_using_ext_object_cache ) { 763 763 $result = wp_cache_set( $transient, $value, 'transient', $expiration ); … … 3784 3784 function set_site_transient( $transient, $value, $expiration = 0 ) { 3785 3785 global $_wp_using_ext_object_cache; 3786 3786 3787 3787 $value = apply_filters( 'pre_set_site_transient_' . $transient, $value ); 3788 3788 3789 3789 if ( $_wp_using_ext_object_cache ) { 3790 3790 $result = wp_cache_set( $transient, $value, 'site-transient', $expiration ); -
link-template.php
2228 2228 * @uses wp_get_shortlink() 2229 2229 */ 2230 2230 function wp_shortlink_header() { 2231 2231 if ( headers_sent() ) 2232 2232 return; 2233 2233 2234 2234 $shortlink = wp_get_shortlink(0, 'query'); -
taxonomy.php
996 996 $order = ''; 997 997 $selects = array('COUNT(*)'); 998 998 } 999 999 $select_this = implode(', ', apply_filters( 'get_terms_fields', $selects, $args )); 1000 1000 1001 1001 $query = "SELECT $select_this FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ($in_taxonomies) $where $orderby $order $limit"; 1002 1002