Changes in branches/2.9 [12599:13165]
- Location:
- branches/2.9
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.9/readme.html
r12599 r13165 9 9 <h1 id="logo" style="text-align: center"> 10 10 <img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /> 11 <br /> Version 2.9. 111 <br /> Version 2.9.2 12 12 </h1> 13 13 <p style="text-align: center">Semantic Personal Publishing Platform</p> … … 30 30 <h1>Upgrading</h1> 31 31 <p>Before you upgrade anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</p> 32 <h2>Upgrading from any previous WordPress to 2.9. 1:</h2>32 <h2>Upgrading from any previous WordPress to 2.9.2:</h2> 33 33 <ol> 34 34 <li>Delete your old WP files, saving ones you've modified.</li> -
branches/2.9/wp-admin/edit-category-form.php
r12599 r13165 57 57 <tr class="form-field form-required"> 58 58 <th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th> 59 <td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" />< br />59 <td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /></td> 60 60 </tr> 61 61 <tr class="form-field"> -
branches/2.9/wp-admin/includes/plugin.php
r12599 r13165 592 592 593 593 $hookname = get_plugin_page_hookname( $file, '' ); 594 if (!empty ( $function ) && !empty ( $hookname ) )594 if (!empty ( $function ) && !empty ( $hookname ) && current_user_can( $access_level ) ) 595 595 add_action( $hookname, $function ); 596 596 -
branches/2.9/wp-admin/includes/update-core.php
r12599 r13165 224 224 $required_php_version = '4.3'; 225 225 $required_mysql_version = '4.1.2'; 226 $wp_version = '2.9. 1';226 $wp_version = '2.9.2'; 227 227 $php_compat = version_compare( $php_version, $required_php_version, '>=' ); 228 228 $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); -
branches/2.9/wp-admin/menu.php
r12599 r13165 199 199 // Run re-parent loop again. 200 200 foreach ( $menu as $id => $data ) { 201 if ( ! current_user_can($data[1]) ) 202 $_wp_menu_nopriv[$data[2]] = true; 203 201 204 // If submenu is empty... 202 205 if ( empty($submenu[$data[2]]) ) { 203 206 // And user doesn't have privs, remove menu. 204 if ( ! current_user_can($data[1]) ) { 205 $_wp_menu_nopriv[$data[2]] = true; 207 if ( isset( $_wp_menu_nopriv[$data[2]] ) ) { 206 208 unset($menu[$id]); 207 209 } -
branches/2.9/wp-comments-post.php
r12599 r13165 28 28 do_action('comment_closed', $comment_post_ID); 29 29 wp_die( __('Sorry, comments are closed for this item.') ); 30 } elseif ( in_array($status->post_status, array('draft', ' pending') ) ) {30 } elseif ( in_array($status->post_status, array('draft', 'future', 'pending') ) ) { 31 31 do_action('comment_on_draft', $comment_post_ID); 32 32 exit; 33 33 } elseif ( 'trash' == $status->post_status ) { 34 34 do_action('comment_on_trash', $comment_post_ID); 35 exit; 36 } elseif ( post_password_required($comment_post_ID) ) { 37 do_action('comment_on_password_protected', $comment_post_ID); 35 38 exit; 36 39 } else { -
branches/2.9/wp-includes/functions.php
r12599 r13165 3636 3636 */ 3637 3637 function _search_terms_tidy($t) { 3638 return trim($t, "\" \'\n\r ");3638 return trim($t, "\"'\n\r "); 3639 3639 } 3640 3640 ?> -
branches/2.9/wp-includes/http.php
r12599 r13165 1817 1817 */ 1818 1818 function decompress( $compressed, $length = null ) { 1819 $decompressed = WP_Http_Encoding::compatible_gzinflate( $compressed ); 1820 1821 if ( false !== $decompressed ) 1819 1820 if ( false !== ( $decompressed = @gzinflate( $compressed ) ) ) 1822 1821 return $decompressed; 1823 1822 1824 $decompressed = gzuncompress( $compressed ); 1825 1826 if ( false !== $decompressed ) 1823 if ( false !== ( $decompressed = WP_Http_Encoding::compatible_gzinflate( $compressed ) ) ) 1827 1824 return $decompressed; 1828 1825 1826 if ( false !== ( $decompressed = @gzuncompress( $compressed ) ) ) 1827 return $decompressed; 1828 1829 1829 if ( function_exists('gzdecode') ) { 1830 $decompressed = gzdecode( $compressed );1830 $decompressed = @gzdecode( $compressed ); 1831 1831 1832 1832 if ( false !== $decompressed ) … … 1917 1917 if ( array_key_exists('content-encoding', $headers) && ! empty( $headers['content-encoding'] ) ) 1918 1918 return true; 1919 } else if ( is_string( $headers ) ) {1919 } else if ( is_string( $headers ) ) { 1920 1920 return ( stripos($headers, 'content-encoding:') !== false ); 1921 1921 } -
branches/2.9/wp-includes/query.php
r12599 r13165 2281 2281 $this->posts = array(); 2282 2282 } else { 2283 if (in_array($status, array('draft', 'pending' )) ) {2283 if (in_array($status, array('draft', 'pending', 'trash')) ) { 2284 2284 // User must have edit permissions on the draft to preview. 2285 2285 if (! current_user_can("edit_$post_type_cap", $this->posts[0]->ID)) { -
branches/2.9/wp-includes/version.php
r12599 r13165 9 9 * @global string $wp_version 10 10 */ 11 $wp_version = '2.9. 1';11 $wp_version = '2.9.2'; 12 12 13 13 /**
Note: See TracChangeset
for help on using the changeset viewer.