Make WordPress Core


Ignore:
Location:
branches/2.9
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/readme.html

    r12599 r13165  
    99<h1 id="logo" style="text-align: center">
    1010    <img alt="WordPress" src="wp-admin/images/wordpress-logo.png" />
    11     <br /> Version 2.9.1
     11    <br /> Version 2.9.2
    1212</h1>
    1313<p style="text-align: center">Semantic Personal Publishing Platform</p>
     
    3030<h1>Upgrading</h1>
    3131<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>
    3333<ol>
    3434    <li>Delete your old WP files, saving ones you've modified.</li>
  • branches/2.9/wp-admin/edit-category-form.php

    r12599 r13165  
    5757        <tr class="form-field form-required">
    5858            <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>
    6060        </tr>
    6161        <tr class="form-field">
  • branches/2.9/wp-admin/includes/plugin.php

    r12599 r13165  
    592592
    593593    $hookname = get_plugin_page_hookname( $file, '' );
    594     if (!empty ( $function ) && !empty ( $hookname ))
     594    if (!empty ( $function ) && !empty ( $hookname ) && current_user_can( $access_level ) )
    595595        add_action( $hookname, $function );
    596596
  • branches/2.9/wp-admin/includes/update-core.php

    r12599 r13165  
    224224    $required_php_version = '4.3';
    225225    $required_mysql_version = '4.1.2';
    226     $wp_version = '2.9.1';
     226    $wp_version = '2.9.2';
    227227    $php_compat     = version_compare( $php_version, $required_php_version, '>=' );
    228228    $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  
    199199// Run re-parent loop again.
    200200foreach ( $menu as $id => $data ) {
     201    if ( ! current_user_can($data[1]) )
     202        $_wp_menu_nopriv[$data[2]] = true;
     203
    201204    // If submenu is empty...
    202205    if ( empty($submenu[$data[2]]) ) {
    203206        // 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]] ) ) {
    206208            unset($menu[$id]);
    207209        }
  • branches/2.9/wp-comments-post.php

    r12599 r13165  
    2828    do_action('comment_closed', $comment_post_ID);
    2929    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') ) ) {
    3131    do_action('comment_on_draft', $comment_post_ID);
    3232    exit;
    3333} elseif ( 'trash' == $status->post_status ) {
    3434    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);
    3538    exit;
    3639} else {
  • branches/2.9/wp-includes/functions.php

    r12599 r13165  
    36363636 */
    36373637function _search_terms_tidy($t) {
    3638     return trim($t, "\"\'\n\r ");
     3638    return trim($t, "\"'\n\r ");
    36393639}
    36403640?>
  • branches/2.9/wp-includes/http.php

    r12599 r13165  
    18171817     */
    18181818    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 ) ) )
    18221821            return $decompressed;
    18231822
    1824         $decompressed = gzuncompress( $compressed );
    1825 
    1826         if ( false !== $decompressed )
     1823        if ( false !== ( $decompressed = WP_Http_Encoding::compatible_gzinflate( $compressed ) ) )
    18271824            return $decompressed;
    18281825
     1826        if ( false !== ( $decompressed = @gzuncompress( $compressed ) ) )
     1827            return $decompressed;
     1828
    18291829        if ( function_exists('gzdecode') ) {
    1830             $decompressed = gzdecode( $compressed );
     1830            $decompressed = @gzdecode( $compressed );
    18311831
    18321832            if ( false !== $decompressed )
     
    19171917            if ( array_key_exists('content-encoding', $headers) && ! empty( $headers['content-encoding'] ) )
    19181918                return true;
    1919         } else if( is_string( $headers ) ) {
     1919        } else if ( is_string( $headers ) ) {
    19201920            return ( stripos($headers, 'content-encoding:') !== false );
    19211921        }
  • branches/2.9/wp-includes/query.php

    r12599 r13165  
    22812281                    $this->posts = array();
    22822282                } else {
    2283                     if  (in_array($status, array('draft', 'pending')) ) {
     2283                    if  (in_array($status, array('draft', 'pending', 'trash')) ) {
    22842284                        // User must have edit permissions on the draft to preview.
    22852285                        if (! current_user_can("edit_$post_type_cap", $this->posts[0]->ID)) {
  • branches/2.9/wp-includes/version.php

    r12599 r13165  
    99 * @global string $wp_version
    1010 */
    11 $wp_version = '2.9.1';
     11$wp_version = '2.9.2';
    1212
    1313/**
Note: See TracChangeset for help on using the changeset viewer.