WordPress.org

Make WordPress Core

Ticket #14147: i-like-tabs-alot.patch

File i-like-tabs-alot.patch, 9.8 KB (added by Viper007Bond, 11 years ago)

Everything in the root of wp-includes that aren't existing classes :)

  • wp-includes/capabilities.php

     
    10791079function current_user_can_for_blog( $blog_id, $capability ) {
    10801080        $current_user = wp_get_current_user();
    10811081
    1082     if ( is_multisite() && is_super_admin() )
     1082        if ( is_multisite() && is_super_admin() )
    10831083                return true;
    10841084
    10851085        if ( empty( $current_user ) )
  • wp-includes/category-template.php

     
    731731                break;
    732732        endswitch;
    733733
    734     if ( $filter )
     734        if ( $filter )
    735735                return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );
    736     else
     736        else
    737737                return $return;
    738738}
    739739
  • wp-includes/comment-template.php

     
    678678 * @param string $pingbacktxt The string to display for pingback type
    679679 */
    680680function comment_type($commenttxt = false, $trackbacktxt = false, $pingbacktxt = false) {
    681     if ( false === $commenttxt ) $commenttxt = _x( 'Comment', 'noun' );
    682     if ( false === $trackbacktxt ) $trackbacktxt = __( 'Trackback' );
    683     if ( false === $pingbacktxt ) $pingbacktxt = __( 'Pingback' );
     681        if ( false === $commenttxt ) $commenttxt = _x( 'Comment', 'noun' );
     682        if ( false === $trackbacktxt ) $trackbacktxt = __( 'Trackback' );
     683        if ( false === $pingbacktxt ) $pingbacktxt = __( 'Pingback' );
    684684        $type = get_comment_type();
    685685        switch( $type ) {
    686686                case 'trackback' :
     
    946946function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
    947947        global $id, $wpcommentspopupfile, $wpcommentsjavascript;
    948948
    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' );
     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' );
    953953
    954954        $number = get_comments_number( $id );
    955955
  • wp-includes/cron.php

     
    9090
    9191        $now = time();
    9292
    93     if ( $timestamp >= $now )
    94         $timestamp = $now + $interval;
    95     else
    96         $timestamp = $now + ($interval - (($now - $timestamp) % $interval));
     93        if ( $timestamp >= $now )
     94                $timestamp = $now + $interval;
     95        else
     96                $timestamp = $now + ($interval - (($now - $timestamp) % $interval));
    9797
    9898        wp_schedule_event( $timestamp, $recurrence, $hook, $args );
    9999}
  • wp-includes/formatting.php

     
    28262826 * @since 3.0.0
    28272827 */
    28282828function capital_P_dangit( $text ) {
    2829        return str_replace( 'Wordpress', 'WordPress', $text );
     2829        return str_replace( 'Wordpress', 'WordPress', $text );
    28302830}
    28312831
    28322832?>
  • wp-includes/functions.php

     
    669669function delete_transient( $transient ) {
    670670        global $_wp_using_ext_object_cache;
    671671
    672     do_action( 'delete_transient_' . $transient, $transient );
     672        do_action( 'delete_transient_' . $transient, $transient );
    673673
    674674        if ( $_wp_using_ext_object_cache ) {
    675675                $result = wp_cache_delete( $transient, 'transient' );
     
    757757function set_transient( $transient, $value, $expiration = 0 ) {
    758758        global $_wp_using_ext_object_cache;
    759759
    760     $value = apply_filters( 'pre_set_transient_' . $transient, $value );
     760        $value = apply_filters( 'pre_set_transient_' . $transient, $value );
    761761
    762762        if ( $_wp_using_ext_object_cache ) {
    763763                $result = wp_cache_set( $transient, $value, 'transient', $expiration );
     
    37843784function set_site_transient( $transient, $value, $expiration = 0 ) {
    37853785        global $_wp_using_ext_object_cache;
    37863786
    3787     $value = apply_filters( 'pre_set_site_transient_' . $transient, $value );
     3787        $value = apply_filters( 'pre_set_site_transient_' . $transient, $value );
    37883788
    37893789        if ( $_wp_using_ext_object_cache ) {
    37903790                $result = wp_cache_set( $transient, $value, 'site-transient', $expiration );
  • wp-includes/general-template.php

     
    15421542 *
    15431543 * @param string $before Optional Output before the date.
    15441544 * @param string $after Optional Output after the date.
    1545   */
     1545 */
    15461546function the_weekday_date($before='',$after='') {
    15471547        global $wp_locale, $post, $day, $previousweekday;
    15481548        $the_weekday_date = '';
  • wp-includes/link-template.php

     
    22282228 * @uses wp_get_shortlink()
    22292229 */
    22302230function wp_shortlink_header() {
    2231     if ( headers_sent() )
     2231        if ( headers_sent() )
    22322232                return;
    22332233
    22342234        $shortlink = wp_get_shortlink(0, 'query');
  • wp-includes/post-thumbnail-template.php

     
    5757 * @param int $post_id Optional. Post ID.
    5858 * @param string $size Optional. Image size.  Defaults to 'thumbnail'.
    5959 * @param string|array $attr Optional. Query string or array of attributes.
    60   */
     60 */
    6161function get_the_post_thumbnail( $post_id = NULL, $size = 'post-thumbnail', $attr = '' ) {
    6262        global $id;
    6363        $post_id = ( NULL === $post_id ) ? $id : $post_id;
  • wp-includes/post.php

     
    35053505                foreach ( $backup_sizes as $size ) {
    35063506                        $del_file = path_join( dirname($meta['file']), $size['file'] );
    35073507                        $del_file = apply_filters('wp_delete_file', $del_file);
    3508             @ unlink( path_join($uploadpath['basedir'], $del_file) );
     3508                        @ unlink( path_join($uploadpath['basedir'], $del_file) );
    35093509                }
    35103510        }
    35113511
     
    35783578                if ( ($uploads = wp_upload_dir()) && false === $uploads['error'] ) { //Get upload directory
    35793579                        if ( 0 === strpos($file, $uploads['basedir']) ) //Check that the upload base exists in the file location
    35803580                                $url = str_replace($uploads['basedir'], $uploads['baseurl'], $file); //replace file location with url location
    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.
     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.
    35853585                }
    35863586        }
    35873587
  • wp-includes/taxonomy.php

     
    981981
    982982        $selects = array();
    983983        switch ( $fields ) {
    984                 case 'all':
    985                         $selects = array('t.*', 'tt.*');
    986                         break;
    987                 case 'ids':
     984                case 'all':
     985                        $selects = array('t.*', 'tt.*');
     986                        break;
     987                case 'ids':
    988988                case 'id=>parent':
    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':
     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':
    995995                        $orderby = '';
    996996                        $order = '';
    997                         $selects = array('COUNT(*)');
    998         }
    999     $select_this = implode(', ', apply_filters( 'get_terms_fields', $selects, $args ));
     997                        $selects = array('COUNT(*)');
     998        }
     999        $select_this = implode(', ', apply_filters( 'get_terms_fields', $selects, $args ));
    10001000
    10011001        $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";
    10021002
  • wp-includes/user.php

     
    752752                $ids[] = $user_object->ID;
    753753        }
    754754
    755     $metas = get_user_metavalues($ids);
     755        $metas = get_user_metavalues($ids);
    756756
    757757        foreach($users as $user_object) {
    758758                if (isset($metas[$user_object->ID])) {
    759                 _fill_single_user($user_object, $metas[$user_object->ID]);
     759                        _fill_single_user($user_object, $metas[$user_object->ID]);
    760760                }
    761761        }
    762762}
  • wp-includes/wp-db.php

     
    790790        /**
    791791         * Escape data. Works on arrays.
    792792         *
    793     * @uses wpdb::_escape()
    794     * @uses wpdb::_real_escape()
     793        * @uses wpdb::_escape()
     794        * @uses wpdb::_real_escape()
    795795         * @since  2.8
    796796         * @access private
    797797         *