Changeset 15904
- Timestamp:
- 10/21/2010 07:55:28 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
-
wp-admin/admin.php (modified) (1 diff)
-
wp-admin/includes/default-list-tables.php (modified) (10 diffs)
-
wp-admin/includes/list-table.php (modified) (2 diffs)
-
wp-admin/js/theme.dev.js (modified) (2 diffs)
-
wp-admin/network/menu.php (modified) (1 diff)
-
wp-admin/theme-install.php (modified) (2 diffs)
-
wp-admin/themes.php (modified) (1 diff)
-
wp-includes/canonical.php (modified) (1 diff)
-
wp-includes/js/autosave.dev.js (modified) (1 diff)
-
wp-includes/nav-menu-template.php (modified) (4 diffs)
-
wp-includes/post.php (modified) (1 diff)
-
wp-includes/taxonomy.php (modified) (2 diffs)
-
wp-includes/wp-db.php (modified) (1 diff)
-
wp-login.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r15843 r15904 216 216 } else { 217 217 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, 219 219 // and load-categories.php actions. 220 220 if ( $typenow == 'page' ) { -
trunk/wp-admin/includes/default-list-tables.php
r15903 r15904 162 162 $status_links[$status_name] = "<li><a href='edit.php?post_status=$status_name&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>'; 163 163 } 164 164 165 165 return $status_links; 166 166 } … … 999 999 if ( !current_user_can('upload_files') ) 1000 1000 wp_die( __( 'You do not have permission to upload files.' ) ); 1001 } 1001 } 1002 1002 1003 1003 function prepare_items() { … … 1489 1489 1490 1490 $this->callback_args = $args; 1491 1491 1492 1492 $this->set_pagination_args( array( 1493 1493 'total_items' => wp_count_terms( $taxonomy, compact( 'search' ) ), 1494 'per_page' => $tags_per_page, 1494 'per_page' => $tags_per_page, 1495 1495 ) ); 1496 1496 } … … 1821 1821 1822 1822 $this->items = $wp_user_search->get_results(); 1823 1823 1824 1824 $this->set_pagination_args( array( 1825 1825 'total_items' => $wp_user_search->get_total(), 1826 'per_page' => $users_per_page, 1826 'per_page' => $users_per_page, 1827 1827 ) ); 1828 1828 } … … 2567 2567 2568 2568 $this->items = get_bookmarks( $args ); 2569 } 2569 } 2570 2570 2571 2571 function no_items() { … … 2728 2728 } 2729 2729 2730 function check_permissions() { 2730 function check_permissions() { 2731 2731 if ( ! current_user_can( 'manage_sites' ) ) 2732 2732 wp_die( __( 'You do not have permission to access this page.' ) ); … … 3049 3049 3050 3050 $this->items = $wp_user_search->get_results(); 3051 3051 3052 3052 $this->set_pagination_args( array( 3053 3053 'total_items' => $wp_user_search->get_total(), 3054 'per_page' => $users_per_page, 3054 'per_page' => $users_per_page, 3055 3055 ) ); 3056 3056 } … … 3372 3372 uasort( $this->items, '_order_plugins_callback' ); 3373 3373 } 3374 3374 3375 3375 $plugins_per_page = $this->get_items_per_page( 'plugins_per_page', 999 ); 3376 3376 … … 3645 3645 function check_permissions() { 3646 3646 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.')); 3648 3648 } 3649 3649 … … 4086 4086 include( ABSPATH . 'wp-admin/includes/theme-install.php' ); 4087 4087 4088 global $tabs, $tab, $paged, $type, $term, $theme_field_defaults; 4089 4088 global $tabs, $tab, $paged, $type, $term, $theme_field_defaults; 4089 4090 4090 wp_reset_vars( array( 'tab' ) ); 4091 4091 -
trunk/wp-admin/includes/list-table.php
r15894 r15904 149 149 if ( 'page' == $key ) 150 150 return $this->get_pagenum(); 151 151 152 152 if ( isset( $this->_pagination_args[$key] ) ) 153 153 return $this->_pagination_args[$key]; … … 263 263 if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) 264 264 return $_REQUEST['action2']; 265 265 266 266 return false; 267 267 } -
trunk/wp-admin/js/theme.dev.js
r15843 r15904 48 48 opts.search = $( 'input[name=s]' ).val(); 49 49 opts.order = document.location.href.match( /order=(\w*)/ ) ? document.location.href.match( /order=(\w*)/ )[1] : 'random'; 50 50 51 51 $( '#availablethemes td' ).fadeTo( 500, 0.1, function() { 52 52 $( '#availablethemes td img' ).hide(); … … 56 56 }); 57 57 } 58 58 59 59 // These are the functions we expose 60 60 var api = { -
trunk/wp-admin/network/menu.php
r15901 r15904 27 27 28 28 $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' ); 30 if ( !empty($update_plugins->response) ) 31 $plugin_update_count = count( $update_plugins->response ); 32 32 $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'); 33 33 $submenu['plugins.php'][5] = array( __('Plugins'), 'manage_network_plugins', 'plugins.php' ); -
trunk/wp-admin/theme-install.php
r15898 r15904 41 41 <div class="wrap"> 42 42 <?php 43 screen_icon(); 43 screen_icon(); 44 44 45 45 if ( is_network_admin() ) : ?> … … 48 48 <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> 49 49 50 <?php 50 <?php 51 51 endif; 52 52 -
trunk/wp-admin/themes.php
r15843 r15904 147 147 <?php foreach ( $feature_list as $feature_name => $features ) : 148 148 $feature_name = esc_html( $feature_name ); ?> 149 149 150 150 <div class="feature-container"> 151 151 <div class="feature-name"><?php echo $feature_name ?></div> -
trunk/wp-includes/canonical.php
r15843 r15904 343 343 if ( !$redirect_url || $redirect_url == $requested_url ) 344 344 return false; 345 345 346 346 // Hex encoded octets are case-insensitive. 347 347 if ( false !== strpos($requested_url, '%') ) { -
trunk/wp-includes/js/autosave.dev.js
r15722 r15904 261 261 if ( jQuery("#post_author").size() ) 262 262 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(); 265 265 post_data["user_ID"] = jQuery("#user-id").val(); 266 266 if ( jQuery('#auto_draft').val() == '1' ) -
trunk/wp-includes/nav-menu-template.php
r15843 r15904 315 315 316 316 foreach ( (array) $menu_items as $key => $menu_item ) { 317 317 318 318 $menu_items[$key]->current = false; 319 319 320 320 $classes = (array) $menu_item->classes; 321 321 $classes[] = 'menu-item'; … … 363 363 $item_url = untrailingslashit( strpos( $menu_item->url, '#' ) ? substr( $menu_item->url, 0, strpos( $menu_item->url, '#' ) ) : $menu_item->url ); 364 364 $_indexless_current = untrailingslashit( preg_replace( '/index.php$/', '', $current_url ) ); 365 365 366 366 if ( in_array( $item_url, array( $current_url, $_indexless_current ) ) ) { 367 367 $classes[] = 'current-menu-item'; … … 384 384 $active_object = $menu_item->object; 385 385 } 386 386 387 387 if ( untrailingslashit($item_url) == home_url() ) 388 388 $classes[] = 'menu-item-home'; … … 404 404 $menu_items[$key]->current_item_ancestor = false; 405 405 $menu_items[$key]->current_item_parent = false; 406 406 407 407 if ( 408 408 isset( $parent_item->type ) && -
trunk/wp-includes/post.php
r15897 r15904 1112 1112 * @access private 1113 1113 * @since 3.1.0 1114 */ 1114 */ 1115 1115 function _add_post_type_submenus() { 1116 1116 foreach ( get_post_types( array( 'show_ui' => true ) ) as $ptype ) { -
trunk/wp-includes/taxonomy.php
r15843 r15904 504 504 $term = $term->term_id; 505 505 else 506 continue; 506 continue; 507 507 } 508 508 $children = array_merge( $children, get_term_children( $term, $taxonomy ) ); … … 2832 2832 return apply_filters('get_ancestors', $ancestors, $object_id, $object_type); 2833 2833 } 2834 2834 2835 2835 if ( is_taxonomy_hierarchical( $object_type ) ) { 2836 2836 $term = get_term($object_id, $object_type); -
trunk/wp-includes/wp-db.php
r15843 r15904 1044 1044 <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> 1045 1045 "/*/WP_I18N_DB_CONN_ERROR*/, $this->dbhost ), 'db_connect_fail' ); 1046 1046 1047 1047 //If show errors is disabled then we need to die anyway as we don't have a working DB connection 1048 1048 die(); -
trunk/wp-login.php
r15843 r15904 262 262 if ( empty( $user ) ) 263 263 return new WP_Error('invalid_key', __('Invalid key')); 264 264 265 265 return $user; 266 266 }
Note: See TracChangeset
for help on using the changeset viewer.