Make WordPress Core

Changeset 15904


Ignore:
Timestamp:
10/21/2010 07:55:28 PM (15 years ago)
Author:
nacin
Message:

Pruning shears.

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r15843 r15904  
    216216} else {
    217217    do_action("load-$pagenow");
    218     // Backwards compatibility with old load-page-new.php, load-page.php, 
     218    // Backwards compatibility with old load-page-new.php, load-page.php,
    219219    // and load-categories.php actions.
    220220    if ( $typenow == 'page' ) {
  • trunk/wp-admin/includes/default-list-tables.php

    r15903 r15904  
    162162            $status_links[$status_name] = "<li><a href='edit.php?post_status=$status_name&amp;post_type=$post_type'$class>" . sprintf( _n( $status->label_count[0], $status->label_count[1], $num_posts->$status_name ), number_format_i18n( $num_posts->$status_name ) ) . '</a>';
    163163        }
    164    
     164
    165165        return $status_links;
    166166    }
     
    999999        if ( !current_user_can('upload_files') )
    10001000            wp_die( __( 'You do not have permission to upload files.' ) );
    1001     }   
     1001    }
    10021002
    10031003    function prepare_items() {
     
    14891489
    14901490        $this->callback_args = $args;
    1491    
     1491
    14921492        $this->set_pagination_args( array(
    14931493            'total_items' => wp_count_terms( $taxonomy, compact( 'search' ) ),
    1494             'per_page' => $tags_per_page,   
     1494            'per_page' => $tags_per_page,
    14951495        ) );
    14961496    }
     
    18211821
    18221822        $this->items = $wp_user_search->get_results();
    1823    
     1823
    18241824        $this->set_pagination_args( array(
    18251825            'total_items' => $wp_user_search->get_total(),
    1826             'per_page' => $users_per_page, 
     1826            'per_page' => $users_per_page,
    18271827        ) );
    18281828    }
     
    25672567
    25682568        $this->items = get_bookmarks( $args );
    2569     }   
     2569    }
    25702570
    25712571    function no_items() {
     
    27282728    }
    27292729
    2730     function check_permissions() { 
     2730    function check_permissions() {
    27312731        if ( ! current_user_can( 'manage_sites' ) )
    27322732            wp_die( __( 'You do not have permission to access this page.' ) );
     
    30493049
    30503050        $this->items = $wp_user_search->get_results();
    3051    
     3051
    30523052        $this->set_pagination_args( array(
    30533053            'total_items' => $wp_user_search->get_total(),
    3054             'per_page' => $users_per_page, 
     3054            'per_page' => $users_per_page,
    30553055        ) );
    30563056    }
     
    33723372            uasort( $this->items, '_order_plugins_callback' );
    33733373        }
    3374    
     3374
    33753375        $plugins_per_page = $this->get_items_per_page( 'plugins_per_page', 999 );
    33763376
     
    36453645    function check_permissions() {
    36463646        if ( ! current_user_can('install_plugins') )
    3647             wp_die(__('You do not have sufficient permissions to install plugins on this site.')); 
     3647            wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
    36483648    }
    36493649
     
    40864086        include( ABSPATH . 'wp-admin/includes/theme-install.php' );
    40874087
    4088         global $tabs, $tab, $paged, $type, $term, $theme_field_defaults;   
    4089    
     4088        global $tabs, $tab, $paged, $type, $term, $theme_field_defaults;
     4089
    40904090        wp_reset_vars( array( 'tab' ) );
    40914091
  • trunk/wp-admin/includes/list-table.php

    r15894 r15904  
    149149        if ( 'page' == $key )
    150150            return $this->get_pagenum();
    151            
     151
    152152        if ( isset( $this->_pagination_args[$key] ) )
    153153            return $this->_pagination_args[$key];
     
    263263        if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] )
    264264            return $_REQUEST['action2'];
    265    
     265
    266266        return false;
    267267    }
  • trunk/wp-admin/js/theme.dev.js

    r15843 r15904  
    4848                opts.search = $( 'input[name=s]' ).val();
    4949                opts.order  = document.location.href.match( /order=(\w*)/ ) ? document.location.href.match( /order=(\w*)/ )[1] : 'random';
    50            
     50
    5151                $( '#availablethemes td' ).fadeTo( 500, 0.1, function() {
    5252                    $( '#availablethemes td img' ).hide();
     
    5656            });
    5757        }
    58    
     58
    5959        // These are the functions we expose
    6060        var api = {
  • trunk/wp-admin/network/menu.php

    r15901 r15904  
    2727
    2828$plugin_update_count = $theme_update_count = $wordpress_update_count = 0;
    29 $update_plugins = get_site_transient( 'update_plugins' ); 
    30 if ( !empty($update_plugins->response) ) 
    31     $plugin_update_count = count( $update_plugins->response ); 
     29$update_plugins = get_site_transient( 'update_plugins' );
     30if ( !empty($update_plugins->response) )
     31    $plugin_update_count = count( $update_plugins->response );
    3232$menu[20] = array(sprintf( __('Plugins %s'), "<span class='update-plugins count-$plugin_update_count'><span class='plugin-count'>" . number_format_i18n($plugin_update_count) . "</span></span>" ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div');
    3333$submenu['plugins.php'][5]  = array( __('Plugins'), 'manage_network_plugins', 'plugins.php' );
  • trunk/wp-admin/theme-install.php

    r15898 r15904  
    4141<div class="wrap">
    4242<?php
    43 screen_icon(); 
     43screen_icon();
    4444
    4545if ( is_network_admin() ) : ?>
     
    4848<h2><a href="themes.php" class="nav-tab"><?php echo esc_html_x('Manage Themes', 'theme'); ?></a><a href="theme-install.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a></h2>
    4949
    50 <?php 
     50<?php
    5151endif;
    5252
  • trunk/wp-admin/themes.php

    r15843 r15904  
    147147    <?php foreach ( $feature_list as $feature_name => $features ) :
    148148            $feature_name = esc_html( $feature_name ); ?>
    149    
     149
    150150        <div class="feature-container">
    151151            <div class="feature-name"><?php echo $feature_name ?></div>
  • trunk/wp-includes/canonical.php

    r15843 r15904  
    343343    if ( !$redirect_url || $redirect_url == $requested_url )
    344344        return false;
    345    
     345
    346346    // Hex encoded octets are case-insensitive.
    347347    if ( false !== strpos($requested_url, '%') ) {
  • trunk/wp-includes/js/autosave.dev.js

    r15722 r15904  
    261261    if ( jQuery("#post_author").size() )
    262262        post_data["post_author"] = jQuery("#post_author").val();
    263     if ( jQuery("#parent_id").val() ) 
    264         post_data["parent_id"] = jQuery("#parent_id").val(); 
     263    if ( jQuery("#parent_id").val() )
     264        post_data["parent_id"] = jQuery("#parent_id").val();
    265265    post_data["user_ID"] = jQuery("#user-id").val();
    266266    if ( jQuery('#auto_draft').val() == '1' )
  • trunk/wp-includes/nav-menu-template.php

    r15843 r15904  
    315315
    316316    foreach ( (array) $menu_items as $key => $menu_item ) {
    317    
     317
    318318        $menu_items[$key]->current = false;
    319    
     319
    320320        $classes = (array) $menu_item->classes;
    321321        $classes[] = 'menu-item';
     
    363363            $item_url = untrailingslashit( strpos( $menu_item->url, '#' ) ? substr( $menu_item->url, 0, strpos( $menu_item->url, '#' ) ) : $menu_item->url );
    364364            $_indexless_current = untrailingslashit( preg_replace( '/index.php$/', '', $current_url ) );
    365        
     365
    366366            if ( in_array( $item_url, array( $current_url, $_indexless_current ) ) ) {
    367367                $classes[] = 'current-menu-item';
     
    384384                $active_object = $menu_item->object;
    385385            }
    386        
     386
    387387            if ( untrailingslashit($item_url) == home_url() )
    388388                $classes[] = 'menu-item-home';
     
    404404        $menu_items[$key]->current_item_ancestor = false;
    405405        $menu_items[$key]->current_item_parent = false;
    406    
     406
    407407        if (
    408408            isset( $parent_item->type ) &&
  • trunk/wp-includes/post.php

    r15897 r15904  
    11121112 * @access private
    11131113 * @since 3.1.0
    1114  */ 
     1114 */
    11151115function _add_post_type_submenus() {
    11161116    foreach ( get_post_types( array( 'show_ui' => true ) ) as $ptype ) {
  • trunk/wp-includes/taxonomy.php

    r15843 r15904  
    504504                    $term = $term->term_id;
    505505                else
    506                     continue;               
     506                    continue;
    507507            }
    508508            $children = array_merge( $children, get_term_children( $term, $taxonomy ) );
     
    28322832        return apply_filters('get_ancestors', $ancestors, $object_id, $object_type);
    28332833    }
    2834    
     2834
    28352835    if ( is_taxonomy_hierarchical( $object_type ) ) {
    28362836        $term = get_term($object_id, $object_type);
  • trunk/wp-includes/wp-db.php

    r15843 r15904  
    10441044<p>If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href='http://wordpress.org/support/'>WordPress Support Forums</a>.</p>
    10451045"/*/WP_I18N_DB_CONN_ERROR*/, $this->dbhost ), 'db_connect_fail' );
    1046        
     1046
    10471047            //If show errors is disabled then we need to die anyway as we don't have a working DB connection
    10481048            die();
  • trunk/wp-login.php

    r15843 r15904  
    262262    if ( empty( $user ) )
    263263        return new WP_Error('invalid_key', __('Invalid key'));
    264    
     264
    265265    return $user;
    266266}
Note: See TracChangeset for help on using the changeset viewer.