]> scripts.mit.edu Git - autoinstalls/wordpress.git/commitdiff
Wordpress 2.8.3-scripts wordpress-2.8.3-scripts
authorEdward Z. Yang <ezyang@mit.edu>
Sat, 21 Nov 2009 01:59:00 +0000 (20:59 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Sat, 21 Nov 2009 01:59:00 +0000 (20:59 -0500)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
36 files changed:
readme.html
wp-admin/admin-footer.php
wp-admin/css/plugin-install.css
wp-admin/edit-attachment-rows.php
wp-admin/edit-category-form.php
wp-admin/edit-comments.php
wp-admin/edit-form-advanced.php
wp-admin/edit-form-comment.php
wp-admin/edit-link-category-form.php
wp-admin/edit-link-form.php
wp-admin/edit-page-form.php
wp-admin/edit-pages.php
wp-admin/edit-post-rows.php
wp-admin/edit-tag-form.php
wp-admin/edit.php
wp-admin/export.php
wp-admin/import.php
wp-admin/link-add.php
wp-admin/options-discussion.php
wp-admin/options-general.php
wp-admin/options-media.php
wp-admin/options-misc.php
wp-admin/options-permalink.php
wp-admin/options-privacy.php
wp-admin/options-reading.php
wp-admin/options-writing.php
wp-admin/plugins.php
wp-admin/themes.php
wp-content/plugins/akismet/akismet.php
wp-content/plugins/akismet/readme.txt
wp-includes/comment.php
wp-includes/default-filters.php
wp-includes/link-template.php
wp-includes/post.php
wp-includes/vars.php
wp-includes/version.php

index 06a9fa539c30f56a3c6e2fd1739ec787a57c6842..329e330cb50b895fa68fe9c3eb7857dec5afc061 100644 (file)
@@ -8,7 +8,7 @@
 <body>
 <h1 id="logo" style="text-align: center">
        <img alt="WordPress" src="wp-admin/images/wordpress-logo.png" />
-       <br /> Version 2.8.2
+       <br /> Version 2.8.3
 </h1>
 <p style="text-align: center">Semantic Personal Publishing Platform</p>
 
@@ -29,7 +29,7 @@
 
 <h1>Upgrading</h1>
 <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>
-<h2>Upgrading from any previous WordPress to 2.8.2:</h2>
+<h2>Upgrading from any previous WordPress to 2.8.3:</h2>
 <ol>
        <li>Delete your old WP files, saving ones you've modified.</li>
        <li>Upload the new files.</li>
index 7c2bcd29406a48b5e23bab92c73621cf66cf24c1..a43a4e459b3e9039c31fc8540d7af5d07db93804 100644 (file)
@@ -5,6 +5,10 @@
  * @package WordPress
  * @subpackage Administration
  */
+
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
 ?>
 
 <div class="clear"></div></div><!-- wpbody-content -->
index 645972bff70ec41147e2e52423990b39eaca460a..87fc417c1bd63202d9bca200ba352384e83411ec 100644 (file)
@@ -68,7 +68,7 @@ div.star img {
        border-top-left-radius: 3px;
        -webkit-border-bottom-left-radius: 3px;
        -khtml-border-bottom-left-radius: 3px;
-       border-top-bottom-radius: 3px;
+       border-bottom-left-radius: 3px;
 }
 
 #plugin-information .action-button a {
@@ -110,7 +110,7 @@ div.star img {
        -moz-border-radius-bottomleft: 3px;
        -webkit-border-bottom-left-radius: 3px;
        -khtml-border-bottom-left-radius: 3px;
-       border-top-bottom-radius: 3px;
+       border-bottom-left-radius: 3px;
 }
 
 #plugin-information .fyi li {
index af62b1cb8fbe45352bde2dcf8e477666cfd2755f..3842a6cce2c778b58220515027e0336545e342c6 100644 (file)
@@ -6,7 +6,9 @@
  * @subpackage Administration
  */
 
-if ( ! defined('ABSPATH') ) die();
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
 
 if ( have_posts() ) { ?>
 <table class="widefat fixed" cellspacing="0">
index 2e37f796411048e53141c9babd159fb01db5c6bf..27417f6bace0ded8324fccf03a7a6a7b2b23f299 100644 (file)
@@ -6,6 +6,13 @@
  * @subpackage Administration
  */
 
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+
+if ( !current_user_can('manage_categories') )
+       wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
+
 /**
  * @var object
  */
index 7df02103324fa09daa1845c0bb3466f72f76564c..dd5f867a42b95cd0b624135c5a9808bfcc3a50e5 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( !current_user_can('edit_posts') )
+       wp_die(__('Cheatin&#8217; uh?'));
+
 wp_enqueue_script('admin-comments');
 enqueue_comment_hotkeys_js();
 
index a246ea543b9f46f7e822027f1acd650d27975db6..dadf6c07f072ca22805881ddc7be06ae508c9dff 100644 (file)
@@ -6,6 +6,10 @@
  * @subpackage Administration
  */
 
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+
 /**
  * Post ID global
  * @name $post_ID
index f58657830da708259c2664d5baf6c380d45f8443..f361ad7a6dd13f4f9235166aee5b177de2d4147f 100644 (file)
@@ -6,6 +6,10 @@
  * @subpackage Administration
  */
 
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+
 /**
  * @var string
  */
@@ -107,7 +111,7 @@ $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
                } else {
                        _e( 'URL:' );
                } ?></td>
-       <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>
+       <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>
 </tr>
 </tbody>
 </table>
index bb721110c657dfa822a6eb0597998f51179bdf85..df1727d6e0fa743abeba5198a088eb562229227d 100644 (file)
@@ -6,6 +6,13 @@
  * @subpackage Administration
  */
 
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+
+if ( !current_user_can('manage_categories') )
+       wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
+
 /**
  * @var object
  */
index 32b06a87f61fe5695cd38579a3cae1ddab3dc887..11ec684b087d12b6fdb1115755d9704cb81a60e8 100644 (file)
@@ -6,6 +6,10 @@
  * @subpackage Administration
  */
 
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+
 if ( ! empty($link_id) ) {
        $heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' );
        $submit_text = __('Update Link');
index 2d436be76bb331cd9c6874869ba2597d70ffce27..516b8eb8816638897f1bf1b376853e25c39009a9 100644 (file)
@@ -6,6 +6,10 @@
  * @subpackage Administration
  */
 
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+
 /**
  * Post ID global.
  * @name $post_ID
index 0cf1680e10a0c378b76082d6f02df8f99cb5883c..b2fa38b86b9d9917b78f41e05738f38cf6124730 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( !current_user_can('edit_pages') )
+       wp_die(__('Cheatin&#8217; uh?'));
+
 // Handle bulk actions
 if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2'] ) ) {
        $doaction = ( -1 != $_GET['action'] ) ? $_GET['action'] : $_GET['action2'];
index 37e58f0a302403e4d981772f963c00a7ca511126..8db9e89d5fb4c4dc3e12200817c188c3991befaa 100644 (file)
@@ -6,7 +6,9 @@
  * @subpackage Administration
  */
 
-if ( ! defined('ABSPATH') ) die();
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
 ?>
 <table class="widefat post fixed" cellspacing="0">
        <thead>
index efef02bcabbb03048c5efb96c1badf29cee120f5..250ba7a3ac0691b50aea8b94854bff656576cc4a 100644 (file)
@@ -6,6 +6,13 @@
  * @subpackage Administration
  */
 
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+
+if ( !current_user_can('manage_categories') )
+       wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
+
 if ( empty($tag_ID) ) { ?>
        <div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
 <?php
index eb6b9f1c4911075a23640958ab2ef831854c6ac9..ae5bee9c6f1185d282dcff7051b162f10db37623 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( !current_user_can('edit_posts') )
+       wp_die(__('Cheatin&#8217; uh?'));
+
 // Back-compat for viewing comments of an entry
 if ( $_redirect = intval( max( @$_GET['p'], @$_GET['attachment_id'], @$_GET['page_id'] ) ) ) {
        wp_redirect( admin_url('edit-comments.php?p=' . $_redirect ) );
index 4e5f80d1f449902f8c5107bd8994b54d49b4e3d7..807ef0faf8ee8a65b4e692f012ac731d2ac07d3c 100644 (file)
@@ -9,6 +9,9 @@
 /** Load WordPress Bootstrap */
 require_once ('admin.php');
 
+if ( !current_user_can('edit_files') )
+       wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
+
 /** Load WordPress export API */
 require_once('includes/export.php');
 $title = __('Export');
index 8b10fc844095b581c717cef5a8ba60bf112c05c6..86dcb1479aa4d1f6c5a5461b1ad0110425d99032 100644 (file)
@@ -8,6 +8,10 @@
 
 /** Load WordPress Bootstrap */
 require_once ('admin.php');
+
+if ( !current_user_can('edit_files') )
+       wp_die(__('You do not have sufficient permissions to import content in this blog.'));
+
 $title = __('Import');
 require_once ('admin-header.php');
 $parent_file = 'tools.php';
index e7d861bff99b6c8fcbc751fa0ff6257b4a9b942f..e0e4489a7de7f2f122174222eac7362309a47da2 100644 (file)
@@ -9,6 +9,9 @@
 /** Load WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('manage_links') )
+       wp_die(__('You do not have sufficient permissions to add links to this blog.'));
+
 $title = __('Add New Link');
 $parent_file = 'link-manager.php';
 
index 5013ebca9499cb4288e8d7923a300fb1abf1bc2a..132f0b3c5dd5ff3ef7c134eb8d89373962fc5ca4 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('Discussion Settings');
 $parent_file = 'options-general.php';
 
index 3f2588856b9a79857db800a520519b9be02dde3f..def2124985e8d5a30a5751636610788ef793b3ea 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('./admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('General Settings');
 $parent_file = 'options-general.php';
 /* translators: date and time format for exact current time, mainly about timezones, see http://php.net/date */
index 6c97c0323cb8edb06ebcc5ad3a7552edbcac1b18..e5abf4e56e584bff0600ba85533ac053bb956b8c 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('Media Settings');
 $parent_file = 'options-general.php';
 
index e63528103c4ef9369e9bb37f8c0b67b567d2c8c8..cc366a9fc82c722c3ac7750fe35aca7e82827ceb 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('Miscellaneous Settings');
 $parent_file = 'options-general.php';
 
index 4bff30a4cb3100b06c937d643476d0ad7e58580c..c06fa08c8a9e48de449b5d17a22575bec4f9a114 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('Permalink Settings');
 $parent_file = 'options-general.php';
 
index b501a27cb2754ec44a5fda153d38d4f6c741c97c..009e94301566ef754340cddc4283b6107467afd3 100644 (file)
@@ -9,6 +9,9 @@
 /** Load WordPress Administration Bootstrap */
 require_once('./admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('Privacy Settings');
 $parent_file = 'options-general.php';
 
index 64410c380d31494563576974dc2e6dc9f90d6104..dd3ba3be58355392c1e6299fbc5f6fbaaded4bf8 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('Reading Settings');
 $parent_file = 'options-general.php';
 
index 208aab4b93da6cb1538c06308989fa8059da80a9..a8979f4e1727f904ae7f047bca861df07400e112 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('Writing Settings');
 $parent_file = 'options-general.php';
 
index 5a22807e8f829c9cda2336170d827dc26cc16393..1cdcbf911aad15c1d00e6aa62ef7550a6b5f9674 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('activate_plugins') )
+       wp_die(__('You do not have sufficient permissions to manage plugins for this blog.'));
+
 if ( isset($_POST['clear-recent-list']) )
        $action = 'clear-recent-list';
 elseif ( !empty($_REQUEST['action']) )
@@ -37,6 +40,9 @@ $_SERVER['REQUEST_URI'] = remove_query_arg(array('error', 'deleted', 'activate',
 if ( !empty($action) ) {
        switch ( $action ) {
                case 'activate':
+                       if ( ! current_user_can('activate_plugins') )
+                               wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
+
                        check_admin_referer('activate-plugin_' . $plugin);
 
                        $result = activate_plugin($plugin, 'plugins.php?error=true&plugin=' . $plugin);
@@ -53,6 +59,9 @@ if ( !empty($action) ) {
                        exit;
                        break;
                case 'activate-selected':
+                       if ( ! current_user_can('activate_plugins') )
+                               wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
+                       
                        check_admin_referer('bulk-manage-plugins');
 
                        $plugins = (array) $_POST['checked'];
@@ -75,6 +84,9 @@ if ( !empty($action) ) {
                        exit;
                        break;
                case 'error_scrape':
+                       if ( ! current_user_can('activate_plugins') )
+                               wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
+
                        check_admin_referer('plugin-activation-error_' . $plugin);
 
                        $valid = validate_plugin($plugin);
@@ -88,6 +100,9 @@ if ( !empty($action) ) {
                        exit;
                        break;
                case 'deactivate':
+                       if ( ! current_user_can('activate_plugins') )
+                               wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.'));
+
                        check_admin_referer('deactivate-plugin_' . $plugin);
                        deactivate_plugins($plugin);
                        update_option('recently_activated', array($plugin => time()) + (array)get_option('recently_activated'));
@@ -95,6 +110,9 @@ if ( !empty($action) ) {
                        exit;
                        break;
                case 'deactivate-selected':
+                       if ( ! current_user_can('activate_plugins') )
+                               wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.'));
+
                        check_admin_referer('bulk-manage-plugins');
 
                        $plugins = (array) $_POST['checked'];
index f008307ebba49a2dd9b6f24cd4827dde141c398b..7ff6cb4a7e133ddc294092dd4a261d1c9ea9534f 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( !current_user_can('switch_themes') )
+       wp_die( __( 'Cheatin&#8217; uh?' ) );
+
 if ( isset($_GET['action']) ) {
        if ( 'activate' == $_GET['action'] ) {
                check_admin_referer('switch-theme_' . $_GET['template']);
index 423be94194312bdbd54aae731b02b1b5266c8ac9..92bbae2d4ef6f64d67bda2cd37f5e26cda542d60 100644 (file)
@@ -8,6 +8,8 @@ Author: Matt Mullenweg
 Author URI: http://ma.tt/
 */
 
+define('AKISMET_VERSION', '2.2.6');
+
 // If you hardcode a WP.com API key here, all key config screens will be hidden
 if ( defined('WPCOM_API_KEY') )
        $wpcom_api_key = constant('WPCOM_API_KEY');
@@ -367,12 +369,14 @@ function akismet_get_host($host) {
 // Returns array with headers in $response[0] and body in $response[1]
 function akismet_http_post($request, $host, $path, $port = 80, $ip=null) {
        global $wp_version;
+       
+       $akismet_version = constant('AKISMET_VERSION');
 
        $http_request  = "POST $path HTTP/1.0\r\n";
        $http_request .= "Host: $host\r\n";
        $http_request .= "Content-Type: application/x-www-form-urlencoded; charset=" . get_option('blog_charset') . "\r\n";
        $http_request .= "Content-Length: " . strlen($request) . "\r\n";
-       $http_request .= "User-Agent: WordPress/$wp_version | Akismet/2.0\r\n";
+       $http_request .= "User-Agent: WordPress/$wp_version | Akismet/$akismet_version\r\n";
        $http_request .= "\r\n";
        $http_request .= $request;
        
index f34baf53dd86ee355e2f15ae0ab1fe932e5d0505..af87370fea988dd375cf324a5a6a0def959871fc 100644 (file)
@@ -25,6 +25,10 @@ Upload the Akismet plugin to your blog, Activate it, then enter your [WordPress.
 
 == Changelog ==
 
+= 2.2.7 =
+
+* Add a new AKISMET_VERSION constant
+
 = 2.2.6 =
 
 * Fix a global warning introduced in 2.2.5
index 53e2233dc3c56be4acc1764cfb66c51e19015fb8..77b59d7408ab1ed24f1073cc8cfec8ba3153b753 100644 (file)
@@ -1324,6 +1324,9 @@ function do_all_pings() {
        if ( is_array($trackbacks) )
                foreach ( $trackbacks as $trackback )
                        do_trackbacks($trackback);
+
+       //Do Update Services/Generic Pings
+       generic_ping();
 }
 
 /**
index b5f7be233da27da74a34a7f2db2c6ee956001a98..2519d7aa12a60d7fb3149d0a1ea261f7bf13bf57 100644 (file)
@@ -186,7 +186,6 @@ add_action('do_feed_rss', 'do_feed_rss', 10, 1);
 add_action('do_feed_rss2', 'do_feed_rss2', 10, 1);
 add_action('do_feed_atom', 'do_feed_atom', 10, 1);
 add_action('do_pings', 'do_all_pings', 10, 1);
-add_action('do_generic_ping', 'generic_ping', 10, 1);
 add_action('do_robots', 'do_robots');
 add_action('sanitize_comment_cookies', 'sanitize_comment_cookies');
 add_action('admin_print_scripts', 'print_head_scripts', 20);
index 471a6468baac86660f1683b080a76b3b5899315d..96453aabcb5febc63a87b36d075416e129d78091 100644 (file)
@@ -768,8 +768,7 @@ function get_edit_comment_link( $comment_id = 0 ) {
 function edit_comment_link( $link = 'Edit This', $before = '', $after = '' ) {
        global $comment, $post;
 
-       if ( $post->post_type == 'attachment' ) {
-       } elseif ( $post->post_type == 'page' ) {
+       if ( $post->post_type == 'page' ) {
                if ( !current_user_can( 'edit_page', $post->ID ) )
                        return;
        } else {
index 0c0ba46d6d045a8bc157be02b174ee538f1af6d7..7ae5431b0a450afd36da3a38da2ddcbfb001480c 100644 (file)
@@ -3274,9 +3274,6 @@ function _transition_post_status($new_status, $old_status, $post) {
                if ( '' == get_the_guid($post->ID) )
                        $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) );
                do_action('private_to_published', $post->ID);  // Deprecated, use private_to_publish
-               // do generic pings once per hour at most
-               if ( !wp_next_scheduled('do_generic_ping') )
-                       wp_schedule_single_event(time() + 3600, 'do_generic_ping');
        }
 
        // Always clears the hook in case the post status bounced from future to draft.
index 232385da6449d7bb98f1c8673572749f087adb93..b66b31311bf3364278becd887ed3b20d178cddc5 100644 (file)
@@ -17,6 +17,7 @@ if ( is_admin() ) {
        // wp-admin pages are checked more carefully
        preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches);
        $pagenow = $self_matches[1];
+       $pagenow = trim($pagenow, '/');
        $pagenow = preg_replace('#\?.*?$#', '', $pagenow);
        if ( '' === $pagenow || 'index' === $pagenow || 'index.php' === $pagenow ) {
                $pagenow = 'index.php';
index bef1aba5cc95c26e1f40fdbd0a02f7de35dfb8cd..05e585cbbe28198c0a44b1736fac3408a488faa5 100644 (file)
@@ -8,7 +8,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '2.8.2';
+$wp_version = '2.8.3';
 
 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.