Changeset 23265
- Timestamp:
- 01/04/2013 10:13:51 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r23082 r23265 233 233 $num_tags = wp_count_terms('post_tag'); 234 234 235 $num_comm = wp_count_comments( 235 $num_comm = wp_count_comments(); 236 236 237 237 echo "\n\t".'<div class="table table_content">'; -
trunk/wp-admin/includes/theme-install.php
r23175 r23265 29 29 * @return array 30 30 */ 31 function install_themes_feature_list( 31 function install_themes_feature_list() { 32 32 if ( !$cache = get_transient( 'wporg_theme_feature_list' ) ) 33 33 set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS ); … … 36 36 return $cache; 37 37 38 $feature_list = themes_api( 'feature_list', array( 38 $feature_list = themes_api( 'feature_list', array() ); 39 39 if ( is_wp_error( $feature_list ) ) 40 40 return $features; … … 101 101 <input type="hidden" name="tab" value="search" /> 102 102 <?php 103 $feature_list = get_theme_feature_list( 103 $feature_list = get_theme_feature_list(); 104 104 echo '<div class="feature-filter">'; 105 105 -
trunk/wp-admin/includes/theme.php
r21755 r23265 217 217 218 218 if ( !$feature_list = get_site_transient( 'wporg_theme_feature_list' ) ) 219 set_site_transient( 'wporg_theme_feature_list', array( 219 set_site_transient( 'wporg_theme_feature_list', array(), 10800); 220 220 221 221 if ( !$feature_list ) { 222 $feature_list = themes_api( 'feature_list', array( 222 $feature_list = themes_api( 'feature_list', array() ); 223 223 if ( is_wp_error( $feature_list ) ) 224 224 return $features; -
trunk/wp-admin/includes/upgrade.php
r22911 r23265 219 219 update_option( 'widget_categories', array ( 2 => array ( 'title' => '', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) ); 220 220 update_option( 'widget_meta', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) ); 221 update_option( 'sidebars_widgets', array ( 'wp_inactive_widgets' => array ( ), 'sidebar-1' => array ( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2', ), 'sidebar-2' => array ( ), 'sidebar-3' => array (), 'array_version' => 3 ) );221 update_option( 'sidebars_widgets', array ( 'wp_inactive_widgets' => array (), 'sidebar-1' => array ( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2', ), 'sidebar-2' => array (), 'sidebar-3' => array (), 'array_version' => 3 ) ); 222 222 223 223 if ( ! is_multisite() ) -
trunk/wp-includes/comment.php
r23191 r23265 416 416 * @return array List of comment statuses. 417 417 */ 418 function get_comment_statuses( 418 function get_comment_statuses() { 419 419 $status = array( 420 420 'hold' => __('Unapproved'), -
trunk/wp-includes/default-constants.php
r22531 r23265 13 13 * @since 3.0.0 14 14 */ 15 function wp_initial_constants( 15 function wp_initial_constants() { 16 16 global $blog_id; 17 17 … … 90 90 * @since 3.0.0 91 91 */ 92 function wp_plugin_directory_constants( 92 function wp_plugin_directory_constants() { 93 93 if ( !defined('WP_CONTENT_URL') ) 94 94 define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up … … 151 151 * @since 3.0.0 152 152 */ 153 function wp_cookie_constants( 153 function wp_cookie_constants() { 154 154 /** 155 155 * Used to guarantee unique hash cookies … … 236 236 * @since 3.0.0 237 237 */ 238 function wp_ssl_constants( 238 function wp_ssl_constants() { 239 239 /** 240 240 * @since 2.6.0 … … 257 257 * @since 3.0.0 258 258 */ 259 function wp_functionality_constants( 259 function wp_functionality_constants() { 260 260 /** 261 261 * @since 2.5.0 … … 285 285 * @since 3.0.0 286 286 */ 287 function wp_templating_constants( 287 function wp_templating_constants() { 288 288 /** 289 289 * Filesystem path to the current active template directory -
trunk/wp-includes/formatting.php
r23189 r23265 2978 2978 */ 2979 2979 function wp_sprintf( $pattern ) { 2980 $args = func_get_args( 2980 $args = func_get_args(); 2981 2981 $len = strlen($pattern); 2982 2982 $start = 0; -
trunk/wp-includes/post.php
r23212 r23265 862 862 * @return array List of post statuses. 863 863 */ 864 function get_post_statuses( 864 function get_post_statuses() { 865 865 $status = array( 866 866 'draft' => __('Draft'), … … 883 883 * @return array List of page statuses. 884 884 */ 885 function get_page_statuses( 885 function get_page_statuses() { 886 886 $status = array( 887 887 'draft' => __('Draft'), … … 2174 2174 $count = $wpdb->get_results( "SELECT post_mime_type, COUNT( * ) AS num_posts FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' $and GROUP BY post_mime_type", ARRAY_A ); 2175 2175 2176 $stats = array( 2176 $stats = array(); 2177 2177 foreach( (array) $count as $row ) { 2178 2178 $stats[$row['post_mime_type']] = $row['num_posts']; -
trunk/wp-includes/update.php
r21996 r23265 52 52 $mysql_version = 'N/A'; 53 53 54 if ( is_multisite( 55 $user_count = get_user_count( 56 $num_blogs = get_blog_count( 57 $wp_install = network_site_url( 54 if ( is_multisite() ) { 55 $user_count = get_user_count(); 56 $num_blogs = get_blog_count(); 57 $wp_install = network_site_url(); 58 58 $multisite_enabled = 1; 59 59 } else { 60 $user_count = count_users( 60 $user_count = count_users(); 61 61 $user_count = $user_count['total_users']; 62 62 $multisite_enabled = 0; … … 275 275 } 276 276 277 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( 277 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time() - $last_update->last_checked ); 278 278 279 279 if ( $time_not_changed ) { … … 314 314 315 315 $new_update = new stdClass; 316 $new_update->last_checked = time( 316 $new_update->last_checked = time(); 317 317 $new_update->checked = $checked; 318 318 … … 405 405 * @access private 406 406 */ 407 function _maybe_update_themes( 407 function _maybe_update_themes() { 408 408 $current = get_site_transient( 'update_themes' ); 409 if ( isset( $current->last_checked ) && 12 * HOUR_IN_SECONDS > ( time( 409 if ( isset( $current->last_checked ) && 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked ) ) 410 410 return; 411 411 -
trunk/wp-settings.php
r22817 r23265 24 24 25 25 // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE. 26 wp_initial_constants( 26 wp_initial_constants(); 27 27 28 28 // Check for the required PHP version and for the MySQL extension or a database drop-in. … … 153 153 // Define constants that rely on the API to obtain the default value. 154 154 // Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in. 155 wp_plugin_directory_constants( 155 wp_plugin_directory_constants(); 156 156 157 157 // Load must-use plugins. … … 175 175 176 176 // Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies(). 177 wp_cookie_constants( 177 wp_cookie_constants(); 178 178 179 179 // Define and enforce our SSL constants 180 wp_ssl_constants( 180 wp_ssl_constants(); 181 181 182 182 // Create common globals. … … 210 210 211 211 // Define constants which affect functionality if not already defined. 212 wp_functionality_constants( 212 wp_functionality_constants(); 213 213 214 214 // Add magic quotes and set up $_REQUEST ( $_GET + $_POST )
Note: See TracChangeset
for help on using the changeset viewer.