Make WordPress Core


Ignore:
Location:
branches/2.8
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/readme.html

    r11767 r11733  
    99<h1 id="logo" style="text-align: center">
    1010    <img alt="WordPress" src="wp-admin/images/wordpress-logo.png" />
    11     <br /> Version 2.8.3
     11    <br /> Version 2.8.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.8.3:</h2>
     32<h2>Upgrading from any previous WordPress to 2.8.2:</h2>
    3333<ol>
    3434    <li>Delete your old WP files, saving ones you've modified.</li>
  • branches/2.8/wp-admin/css/plugin-install.css

    r11767 r11733  
    6969    -webkit-border-bottom-left-radius: 3px;
    7070    -khtml-border-bottom-left-radius: 3px;
    71     border-bottom-left-radius: 3px;
     71    border-top-bottom-radius: 3px;
    7272}
    7373
     
    111111    -webkit-border-bottom-left-radius: 3px;
    112112    -khtml-border-bottom-left-radius: 3px;
    113     border-bottom-left-radius: 3px;
     113    border-top-bottom-radius: 3px;
    114114}
    115115
  • branches/2.8/wp-admin/edit-category-form.php

    r11767 r11733  
    66 * @subpackage Administration
    77 */
    8 
    9 if ( !current_user_can('manage_categories') )
    10     wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
    118
    129/**
  • branches/2.8/wp-admin/edit-comments.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( !current_user_can('edit_posts') )
    13     wp_die(__('Cheatin&#8217; uh?'));
    1411
    1512wp_enqueue_script('admin-comments');
  • branches/2.8/wp-admin/edit-form-comment.php

    r11767 r11733  
    108108            _e( 'URL:' );
    109109        } ?></td>
    110     <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3" /></td>
     110    <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($url); ?>" tabindex="3" /></td>
    111111</tr>
    112112</tbody>
  • branches/2.8/wp-admin/edit-link-category-form.php

    r11767 r11733  
    66 * @subpackage Administration
    77 */
    8 
    9 if ( !current_user_can('manage_categories') )
    10     wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
    118
    129/**
  • branches/2.8/wp-admin/edit-pages.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( !current_user_can('edit_pages') )
    13     wp_die(__('Cheatin&#8217; uh?'));
    1411
    1512// Handle bulk actions
  • branches/2.8/wp-admin/edit-tag-form.php

    r11767 r11733  
    66 * @subpackage Administration
    77 */
    8 
    9 if ( !current_user_can('manage_categories') )
    10     wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
    118
    129if ( empty($tag_ID) ) { ?>
  • branches/2.8/wp-admin/edit.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( !current_user_can('edit_posts') )
    13     wp_die(__('Cheatin&#8217; uh?'));
    1411
    1512// Back-compat for viewing comments of an entry
  • branches/2.8/wp-admin/export.php

    r11767 r11733  
    99/** Load WordPress Bootstrap */
    1010require_once ('admin.php');
    11 
    12 if ( !current_user_can('edit_files') )
    13     wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
    1411
    1512/** Load WordPress export API */
  • branches/2.8/wp-admin/import.php

    r11767 r11733  
    99/** Load WordPress Bootstrap */
    1010require_once ('admin.php');
    11 
    12 if ( !current_user_can('edit_files') )
    13     wp_die(__('You do not have sufficient permissions to import content in this blog.'));
    14 
    1511$title = __('Import');
    1612require_once ('admin-header.php');
  • branches/2.8/wp-admin/link-add.php

    r11767 r11733  
    99/** Load WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('manage_links') )
    13     wp_die(__('You do not have sufficient permissions to add links to this blog.'));
    1411
    1512$title = __('Add New Link');
  • branches/2.8/wp-admin/options-discussion.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('manage_options') )
    13     wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
    1411
    1512$title = __('Discussion Settings');
  • branches/2.8/wp-admin/options-general.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('./admin.php');
    11 
    12 if ( ! current_user_can('manage_options') )
    13     wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
    1411
    1512$title = __('General Settings');
  • branches/2.8/wp-admin/options-media.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('manage_options') )
    13     wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
    1411
    1512$title = __('Media Settings');
  • branches/2.8/wp-admin/options-misc.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('manage_options') )
    13     wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
    1411
    1512$title = __('Miscellaneous Settings');
  • branches/2.8/wp-admin/options-permalink.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('manage_options') )
    13     wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
    1411
    1512$title = __('Permalink Settings');
  • branches/2.8/wp-admin/options-privacy.php

    r11767 r11733  
    99/** Load WordPress Administration Bootstrap */
    1010require_once('./admin.php');
    11 
    12 if ( ! current_user_can('manage_options') )
    13     wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
    1411
    1512$title = __('Privacy Settings');
  • branches/2.8/wp-admin/options-reading.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('manage_options') )
    13     wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
    1411
    1512$title = __('Reading Settings');
  • branches/2.8/wp-admin/options-writing.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('manage_options') )
    13     wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
    1411
    1512$title = __('Writing Settings');
  • branches/2.8/wp-admin/plugins.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( ! current_user_can('activate_plugins') )
    13     wp_die(__('You do not have sufficient permissions to manage plugins for this blog.'));
    1411
    1512if ( isset($_POST['clear-recent-list']) )
     
    4138    switch ( $action ) {
    4239        case 'activate':
    43             if ( ! current_user_can('activate_plugins') )
    44                 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
    45 
    4640            check_admin_referer('activate-plugin_' . $plugin);
    4741
     
    6054            break;
    6155        case 'activate-selected':
    62             if ( ! current_user_can('activate_plugins') )
    63                 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
    64            
    6556            check_admin_referer('bulk-manage-plugins');
    6657
     
    8576            break;
    8677        case 'error_scrape':
    87             if ( ! current_user_can('activate_plugins') )
    88                 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
    89 
    9078            check_admin_referer('plugin-activation-error_' . $plugin);
    9179
     
    10189            break;
    10290        case 'deactivate':
    103             if ( ! current_user_can('activate_plugins') )
    104                 wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.'));
    105 
    10691            check_admin_referer('deactivate-plugin_' . $plugin);
    10792            deactivate_plugins($plugin);
     
    11196            break;
    11297        case 'deactivate-selected':
    113             if ( ! current_user_can('activate_plugins') )
    114                 wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.'));
    115 
    11698            check_admin_referer('bulk-manage-plugins');
    11799
  • branches/2.8/wp-admin/themes.php

    r11767 r11733  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
    11 
    12 if ( !current_user_can('switch_themes') )
    13     wp_die( __( 'Cheatin&#8217; uh?' ) );
    1411
    1512if ( isset($_GET['action']) ) {
  • branches/2.8/wp-includes/comment.php

    r11767 r11733  
    13251325        foreach ( $trackbacks as $trackback )
    13261326            do_trackbacks($trackback);
    1327 
    1328     //Do Update Services/Generic Pings
    1329     generic_ping();
    13301327}
    13311328
     
    13891386            weblog_ping($service);
    13901387    }
     1388
     1389    set_transient('generic_ping_last', time(), 1800);
    13911390
    13921391    return $post_id;
  • branches/2.8/wp-includes/default-filters.php

    r11767 r11733  
    187187add_action('do_feed_atom', 'do_feed_atom', 10, 1);
    188188add_action('do_pings', 'do_all_pings', 10, 1);
     189add_action('do_generic_ping', 'generic_ping', 10, 1);
    189190add_action('do_robots', 'do_robots');
    190191add_action('sanitize_comment_cookies', 'sanitize_comment_cookies');
  • branches/2.8/wp-includes/link-template.php

    r11767 r11733  
    769769    global $comment, $post;
    770770
    771     if ( $post->post_type == 'page' ) {
     771    if ( $post->post_type == 'attachment' ) {
     772    } elseif ( $post->post_type == 'page' ) {
    772773        if ( !current_user_can( 'edit_page', $post->ID ) )
    773774            return;
  • branches/2.8/wp-includes/post.php

    r11767 r11733  
    32753275            $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) );
    32763276        do_action('private_to_published', $post->ID);  // Deprecated, use private_to_publish
     3277        // do generic pings once per half hour at most
     3278        if ( !wp_next_scheduled('do_generic_ping') ) {
     3279            $schedule = time();
     3280            $last_ping = get_transient('generic_ping_last');
     3281            if ($last_ping) {
     3282              $schedule = max($schedule, $last_ping + 1800);
     3283            }
     3284            wp_schedule_single_event($schedule, 'do_generic_ping');
     3285        }
    32773286    }
    32783287
  • branches/2.8/wp-includes/vars.php

    r11767 r11733  
    1818    preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches);
    1919    $pagenow = $self_matches[1];
    20     $pagenow = trim($pagenow, '/');
    2120    $pagenow = preg_replace('#\?.*?$#', '', $pagenow);
    2221    if ( '' === $pagenow || 'index' === $pagenow || 'index.php' === $pagenow ) {
  • branches/2.8/wp-includes/version.php

    r11767 r11733  
    99 * @global string $wp_version
    1010 */
    11 $wp_version = '2.8.3';
     11$wp_version = '2.8.2';
    1212
    1313/**
Note: See TracChangeset for help on using the changeset viewer.