mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Fix typo in filler text cause we all know it'll slip through accidentally. props paulhastings0, fixes #19255.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a14dd3db8b
commit
cd33a2118d
@ -55,7 +55,7 @@ include( './admin-header.php' );
|
|||||||
<img class="placeholder" />
|
<img class="placeholder" />
|
||||||
<div class="right-feature">
|
<div class="right-feature">
|
||||||
<h4><?php echo ( 'A New and Improved Admin Bar' ); ?></h4>
|
<h4><?php echo ( 'A New and Improved Admin Bar' ); ?></h4>
|
||||||
<p><?php echo ( 'Get to the most useful areas of your dashboard form anywhere on your site quicker and easier than ever with a better organized admin bar.' ); ?></p>
|
<p><?php echo ( 'Get to the most useful areas of your dashboard from anywhere on your site quicker and easier than ever with a better organized admin bar.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -143,31 +143,37 @@ function wp_update_plugins() {
|
|||||||
|
|
||||||
$new_option = new stdClass;
|
$new_option = new stdClass;
|
||||||
$new_option->last_checked = time();
|
$new_option->last_checked = time();
|
||||||
// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
|
|
||||||
$timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
|
|
||||||
$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
|
|
||||||
|
|
||||||
$plugin_changed = false;
|
// Check for updated every 12 hours, 60 minutes, or immediately, depending on the page.
|
||||||
foreach ( $plugins as $file => $p ) {
|
$filter = current_filter();
|
||||||
$new_option->checked[ $file ] = $p['Version'];
|
if ( 'load-update-core.php' != $filter ) {
|
||||||
|
$timeout = 'load-plugins.php' == $filter || 'load-update.php' == $filter ? 3600 : 43200;
|
||||||
|
$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
|
||||||
|
|
||||||
if ( !isset( $current->checked[ $file ] ) || strval($current->checked[ $file ]) !== strval($p['Version']) )
|
if ( $time_not_changed ) {
|
||||||
$plugin_changed = true;
|
$plugin_changed = false;
|
||||||
}
|
foreach ( $plugins as $file => $p ) {
|
||||||
|
$new_option->checked[ $file ] = $p['Version'];
|
||||||
if ( isset ( $current->response ) && is_array( $current->response ) ) {
|
|
||||||
foreach ( $current->response as $plugin_file => $update_details ) {
|
if ( !isset( $current->checked[ $file ] ) || strval($current->checked[ $file ]) !== strval($p['Version']) )
|
||||||
if ( ! isset($plugins[ $plugin_file ]) ) {
|
$plugin_changed = true;
|
||||||
$plugin_changed = true;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( isset ( $current->response ) && is_array( $current->response ) ) {
|
||||||
|
foreach ( $current->response as $plugin_file => $update_details ) {
|
||||||
|
if ( ! isset($plugins[ $plugin_file ]) ) {
|
||||||
|
$plugin_changed = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bail if we've checked recently and if nothing has changed
|
||||||
|
if ( ! $plugin_changed )
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bail if we've checked in the last 12 hours and if nothing has changed
|
|
||||||
if ( $time_not_changed && !$plugin_changed )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Update last_checked for current to prevent multiple blocking requests if request hangs
|
// Update last_checked for current to prevent multiple blocking requests if request hangs
|
||||||
$current->last_checked = time();
|
$current->last_checked = time();
|
||||||
set_site_transient( 'update_plugins', $current );
|
set_site_transient( 'update_plugins', $current );
|
||||||
@ -222,10 +228,6 @@ function wp_update_themes() {
|
|||||||
if ( ! is_object($last_update) )
|
if ( ! is_object($last_update) )
|
||||||
$last_update = new stdClass;
|
$last_update = new stdClass;
|
||||||
|
|
||||||
// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
|
|
||||||
$timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
|
|
||||||
$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
|
|
||||||
|
|
||||||
$themes = array();
|
$themes = array();
|
||||||
$checked = array();
|
$checked = array();
|
||||||
$exclude_fields = array('Template Files', 'Stylesheet Files', 'Status', 'Theme Root', 'Theme Root URI', 'Template Dir', 'Stylesheet Dir', 'Description', 'Tags', 'Screenshot');
|
$exclude_fields = array('Template Files', 'Stylesheet Files', 'Status', 'Theme Root', 'Theme Root URI', 'Template Dir', 'Stylesheet Dir', 'Description', 'Tags', 'Screenshot');
|
||||||
@ -246,26 +248,36 @@ function wp_update_themes() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$theme_changed = false;
|
// Check for updated every 12 hours, 60 minutes, or immediately, depending on the page.
|
||||||
foreach ( $checked as $slug => $v ) {
|
$filter = current_filter();
|
||||||
$update_request->checked[ $slug ] = $v;
|
if ( 'load-update-core.php' != $filter ) {
|
||||||
|
$timeout = 'load-themes.php' == $filter || 'load-update.php' == $filter ? 3600 : 43200;
|
||||||
|
$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
|
||||||
|
|
||||||
if ( !isset( $last_update->checked[ $slug ] ) || strval($last_update->checked[ $slug ]) !== strval($v) )
|
if ( $time_not_changed ) {
|
||||||
$theme_changed = true;
|
$theme_changed = false;
|
||||||
}
|
foreach ( $checked as $slug => $v ) {
|
||||||
|
$update_request->checked[ $slug ] = $v;
|
||||||
if ( isset ( $last_update->response ) && is_array( $last_update->response ) ) {
|
|
||||||
foreach ( $last_update->response as $slug => $update_details ) {
|
if ( !isset( $last_update->checked[ $slug ] ) || strval($last_update->checked[ $slug ]) !== strval($v) )
|
||||||
if ( ! isset($checked[ $slug ]) ) {
|
$theme_changed = true;
|
||||||
$theme_changed = true;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( isset ( $last_update->response ) && is_array( $last_update->response ) ) {
|
||||||
|
foreach ( $last_update->response as $slug => $update_details ) {
|
||||||
|
if ( ! isset($checked[ $slug ]) ) {
|
||||||
|
$theme_changed = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bail if we've checked recently and if nothing has changed
|
||||||
|
if ( ! $theme_changed )
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $time_not_changed && !$theme_changed )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Update last_checked for current to prevent multiple blocking requests if request hangs
|
// Update last_checked for current to prevent multiple blocking requests if request hangs
|
||||||
$last_update->last_checked = time();
|
$last_update->last_checked = time();
|
||||||
set_site_transient( 'update_themes', $last_update );
|
set_site_transient( 'update_themes', $last_update );
|
||||||
|
Loading…
Reference in New Issue
Block a user