WordPress.org

Make WordPress Core


Ignore:
Location:
branches/2.8
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/readme.html

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

    r11729 r11770  
    66 * @subpackage Administration
    77 */
     8
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
    812?>
    913
  • branches/2.8/wp-admin/css/plugin-install.css

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

    r11729 r11770  
    77 */
    88
    9 if ( ! defined('ABSPATH') ) die();
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
    1012
    1113if ( have_posts() ) { ?>
  • branches/2.8/wp-admin/edit-category-form.php

    r11729 r11770  
    66 * @subpackage Administration
    77 */
     8
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
     12
     13if ( !current_user_can('manage_categories') )
     14    wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
    815
    916/**
  • branches/2.8/wp-admin/edit-comments.php

    r11729 r11770  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11
     12if ( !current_user_can('edit_posts') )
     13    wp_die(__('Cheatin&#8217; uh?'));
    1114
    1215wp_enqueue_script('admin-comments');
  • branches/2.8/wp-admin/edit-form-advanced.php

    r11729 r11770  
    66 * @subpackage Administration
    77 */
     8
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
    812
    913/**
  • branches/2.8/wp-admin/edit-form-comment.php

    r11729 r11770  
    66 * @subpackage Administration
    77 */
     8
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
    812
    913/**
     
    108112            _e( 'URL:' );
    109113        } ?></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>
     114    <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>
    111115</tr>
    112116</tbody>
  • branches/2.8/wp-admin/edit-link-category-form.php

    r11729 r11770  
    66 * @subpackage Administration
    77 */
     8
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
     12
     13if ( !current_user_can('manage_categories') )
     14    wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
    815
    916/**
  • branches/2.8/wp-admin/edit-link-form.php

    r11729 r11770  
    66 * @subpackage Administration
    77 */
     8
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
    812
    913if ( ! empty($link_id) ) {
  • branches/2.8/wp-admin/edit-page-form.php

    r11729 r11770  
    66 * @subpackage Administration
    77 */
     8
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
    812
    913/**
  • branches/2.8/wp-admin/edit-pages.php

    r11729 r11770  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11
     12if ( !current_user_can('edit_pages') )
     13    wp_die(__('Cheatin&#8217; uh?'));
    1114
    1215// Handle bulk actions
  • branches/2.8/wp-admin/edit-post-rows.php

    r11729 r11770  
    77 */
    88
    9 if ( ! defined('ABSPATH') ) die();
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
    1012?>
    1113<table class="widefat post fixed" cellspacing="0">
  • branches/2.8/wp-admin/edit-tag-form.php

    r11729 r11770  
    66 * @subpackage Administration
    77 */
     8
     9// don't load directly
     10if ( !defined('ABSPATH') )
     11    die('-1');
     12
     13if ( !current_user_can('manage_categories') )
     14    wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
    815
    916if ( empty($tag_ID) ) { ?>
  • branches/2.8/wp-admin/edit.php

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

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

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

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

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

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

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

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

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

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

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

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

    r11729 r11770  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11
     12if ( ! current_user_can('activate_plugins') )
     13    wp_die(__('You do not have sufficient permissions to manage plugins for this blog.'));
    1114
    1215if ( isset($_POST['clear-recent-list']) )
     
    3841    switch ( $action ) {
    3942        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
    4046            check_admin_referer('activate-plugin_' . $plugin);
    4147
     
    5460            break;
    5561        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           
    5665            check_admin_referer('bulk-manage-plugins');
    5766
     
    7685            break;
    7786        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
    7890            check_admin_referer('plugin-activation-error_' . $plugin);
    7991
     
    89101            break;
    90102        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
    91106            check_admin_referer('deactivate-plugin_' . $plugin);
    92107            deactivate_plugins($plugin);
     
    96111            break;
    97112        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
    98116            check_admin_referer('bulk-manage-plugins');
    99117
  • branches/2.8/wp-admin/themes.php

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

    r11729 r11770  
    13251325        foreach ( $trackbacks as $trackback )
    13261326            do_trackbacks($trackback);
     1327
     1328    //Do Update Services/Generic Pings
     1329    generic_ping();
    13271330}
    13281331
  • branches/2.8/wp-includes/default-filters.php

    r11729 r11770  
    187187add_action('do_feed_atom', 'do_feed_atom', 10, 1);
    188188add_action('do_pings', 'do_all_pings', 10, 1);
    189 add_action('do_generic_ping', 'generic_ping', 10, 1);
    190189add_action('do_robots', 'do_robots');
    191190add_action('sanitize_comment_cookies', 'sanitize_comment_cookies');
  • branches/2.8/wp-includes/link-template.php

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

    r11729 r11770  
    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 hour at most
    3278         if ( !wp_next_scheduled('do_generic_ping') )
    3279             wp_schedule_single_event(time() + 3600, 'do_generic_ping');
    32803277    }
    32813278
  • branches/2.8/wp-includes/vars.php

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

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