Changeset 15355
- Timestamp:
- 06/30/2010 12:05:18 AM (14 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r15311 r15355 1080 1080 $current_user = wp_get_current_user(); 1081 1081 1082 1082 if ( is_multisite() && is_super_admin() ) 1083 1083 return true; 1084 1084 -
trunk/wp-includes/category-template.php
r15220 r15355 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 } -
trunk/wp-includes/comment-template.php
r15148 r15355 679 679 */ 680 680 function comment_type($commenttxt = false, $trackbacktxt = false, $pingbacktxt = false) { 681 682 683 681 if ( false === $commenttxt ) $commenttxt = _x( 'Comment', 'noun' ); 682 if ( false === $trackbacktxt ) $trackbacktxt = __( 'Trackback' ); 683 if ( false === $pingbacktxt ) $pingbacktxt = __( 'Pingback' ); 684 684 $type = get_comment_type(); 685 685 switch( $type ) { … … 947 947 global $id, $wpcommentspopupfile, $wpcommentsjavascript; 948 948 949 950 951 952 949 if ( false === $zero ) $zero = __( 'No Comments' ); 950 if ( false === $one ) $one = __( '1 Comment' ); 951 if ( false === $more ) $more = __( '% Comments' ); 952 if ( false === $none ) $none = __( 'Comments Off' ); 953 953 954 954 $number = get_comments_number( $id ); -
trunk/wp-includes/cron.php
r14414 r15355 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 ); -
trunk/wp-includes/formatting.php
r15227 r15355 2827 2827 */ 2828 2828 function capital_P_dangit( $text ) { 2829 2829 return str_replace( 'Wordpress', 'WordPress', $text ); 2830 2830 } 2831 2831 -
trunk/wp-includes/functions.php
r15354 r15355 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 ) { … … 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 ) { … … 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 ) { -
trunk/wp-includes/general-template.php
r15227 r15355 1543 1543 * @param string $before Optional Output before the date. 1544 1544 * @param string $after Optional Output after the date. 1545 1545 */ 1546 1546 function the_weekday_date($before='',$after='') { 1547 1547 global $wp_locale, $post, $day, $previousweekday; -
trunk/wp-includes/link-template.php
r15117 r15355 2229 2229 */ 2230 2230 function wp_shortlink_header() { 2231 2231 if ( headers_sent() ) 2232 2232 return; 2233 2233 -
trunk/wp-includes/post-thumbnail-template.php
r13382 r15355 58 58 * @param string $size Optional. Image size. Defaults to 'thumbnail'. 59 59 * @param string|array $attr Optional. Query string or array of attributes. 60 60 */ 61 61 function get_the_post_thumbnail( $post_id = NULL, $size = 'post-thumbnail', $attr = '' ) { 62 62 global $id; -
trunk/wp-includes/post.php
r15348 r15355 3506 3506 $del_file = path_join( dirname($meta['file']), $size['file'] ); 3507 3507 $del_file = apply_filters('wp_delete_file', $del_file); 3508 3508 @ unlink( path_join($uploadpath['basedir'], $del_file) ); 3509 3509 } 3510 3510 } … … 3579 3579 if ( 0 === strpos($file, $uploads['basedir']) ) //Check that the upload base exists in the file location 3580 3580 $url = str_replace($uploads['basedir'], $uploads['baseurl'], $file); //replace file location with url location 3581 3582 3583 3584 3581 elseif ( false !== strpos($file, 'wp-content/uploads') ) 3582 $url = $uploads['baseurl'] . substr( $file, strpos($file, 'wp-content/uploads') + 18 ); 3583 else 3584 $url = $uploads['baseurl'] . "/$file"; //Its a newly uploaded file, therefor $file is relative to the basedir. 3585 3585 } 3586 3586 } -
trunk/wp-includes/taxonomy.php
r15220 r15355 982 982 $selects = array(); 983 983 switch ( $fields ) { 984 985 986 987 984 case 'all': 985 $selects = array('t.*', 'tt.*'); 986 break; 987 case 'ids': 988 988 case 'id=>parent': 989 990 991 992 993 994 989 $selects = array('t.term_id', 'tt.parent', 'tt.count'); 990 break; 991 case 'names': 992 $selects = array('t.term_id', 'tt.parent', 'tt.count', 't.name'); 993 break; 994 case 'count': 995 995 $orderby = ''; 996 996 $order = ''; 997 998 999 997 $selects = array('COUNT(*)'); 998 } 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"; -
trunk/wp-includes/user.php
r15235 r15355 753 753 } 754 754 755 755 $metas = get_user_metavalues($ids); 756 756 757 757 foreach($users as $user_object) { 758 758 if (isset($metas[$user_object->ID])) { 759 759 _fill_single_user($user_object, $metas[$user_object->ID]); 760 760 } 761 761 } -
trunk/wp-includes/wp-db.php
r15266 r15355 791 791 * Escape data. Works on arrays. 792 792 * 793 794 793 * @uses wpdb::_escape() 794 * @uses wpdb::_real_escape() 795 795 * @since 2.8 796 796 * @access private
Note: See TracChangeset
for help on using the changeset viewer.