<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>
<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>
* @package WordPress
* @subpackage Administration
*/
+
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
?>
<div class="clear"></div></div><!-- wpbody-content -->
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 {
-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 {
* @subpackage Administration
*/
-if ( ! defined('ABSPATH') ) die();
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
if ( have_posts() ) { ?>
<table class="widefat fixed" cellspacing="0">
* @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
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
+if ( !current_user_can('edit_posts') )
+ wp_die(__('Cheatin’ uh?'));
+
wp_enqueue_script('admin-comments');
enqueue_comment_hotkeys_js();
* @subpackage Administration
*/
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
+
/**
* Post ID global
* @name $post_ID
* @subpackage Administration
*/
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
+
/**
* @var string
*/
} 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>
* @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
*/
* @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');
* @subpackage Administration
*/
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
+
/**
* Post ID global.
* @name $post_ID
/** WordPress Administration Bootstrap */
require_once('admin.php');
+if ( !current_user_can('edit_pages') )
+ wp_die(__('Cheatin’ uh?'));
+
// Handle bulk actions
if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2'] ) ) {
$doaction = ( -1 != $_GET['action'] ) ? $_GET['action'] : $_GET['action2'];
* @subpackage Administration
*/
-if ( ! defined('ABSPATH') ) die();
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
?>
<table class="widefat post fixed" cellspacing="0">
<thead>
* @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
/** WordPress Administration Bootstrap */
require_once('admin.php');
+if ( !current_user_can('edit_posts') )
+ wp_die(__('Cheatin’ 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 ) );
/** 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');
/** 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';
/** 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';
/** 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';
/** 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 */
/** 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';
/** 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';
/** 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';
/** 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';
/** 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';
/** 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';
/** 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']) )
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);
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'];
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);
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'));
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'];
/** WordPress Administration Bootstrap */
require_once('admin.php');
+if ( !current_user_can('switch_themes') )
+ wp_die( __( 'Cheatin’ uh?' ) );
+
if ( isset($_GET['action']) ) {
if ( 'activate' == $_GET['action'] ) {
check_admin_referer('switch-theme_' . $_GET['template']);
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');
// 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;
== Changelog ==
+= 2.2.7 =
+
+* Add a new AKISMET_VERSION constant
+
= 2.2.6 =
* Fix a global warning introduced in 2.2.5
if ( is_array($trackbacks) )
foreach ( $trackbacks as $trackback )
do_trackbacks($trackback);
+
+ //Do Update Services/Generic Pings
+ generic_ping();
}
/**
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);
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 {
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.
// 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';
*
* @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.