Ticket #14147: i-like-tabs-alot.patch
File i-like-tabs-alot.patch, 9.8 KB (added by , 15 years ago) |
---|
-
wp-includes/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 ) ) -
wp-includes/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 -
wp-includes/comment-template.php
678 678 * @param string $pingbacktxt The string to display for pingback type 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 ) { 686 686 case 'trackback' : … … 946 946 function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) { 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 ); 955 955 -
wp-includes/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 } -
wp-includes/formatting.php
2826 2826 * @since 3.0.0 2827 2827 */ 2828 2828 function capital_P_dangit( $text ) { 2829 2829 return str_replace( 'Wordpress', 'WordPress', $text ); 2830 2830 } 2831 2831 2832 2832 ?> -
wp-includes/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 ); -
wp-includes/general-template.php
1542 1542 * 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; 1548 1548 $the_weekday_date = ''; -
wp-includes/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'); -
wp-includes/post-thumbnail-template.php
57 57 * @param int $post_id Optional. Post ID. 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; 63 63 $post_id = ( NULL === $post_id ) ? $id : $post_id; -
wp-includes/post.php
3505 3505 foreach ( $backup_sizes as $size ) { 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 } 3511 3511 … … 3578 3578 if ( ($uploads = wp_upload_dir()) && false === $uploads['error'] ) { //Get upload directory 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 } 3587 3587 -
wp-includes/taxonomy.php
981 981 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"; 1002 1002 -
wp-includes/user.php
752 752 $ids[] = $user_object->ID; 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 } 762 762 } -
wp-includes/wp-db.php
790 790 /** 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 797 797 *