mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
More s/upgrade/update. Props michaelh. See #15656
git-svn-id: http://svn.automattic.com/wordpress/trunk@16701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d078d4a530
commit
c45f3936a7
@ -1544,7 +1544,7 @@ SWFUpload.onload = function() {
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<p class="media-upload-size"><?php printf( __( 'Maximum upload file size: %d%s' ), $upload_size_unit, $sizes[$u] ); ?></p>
|
<p class="media-upload-size"><?php printf( __( 'Maximum upload file size: %d%s' ), $upload_size_unit, $sizes[$u] ); ?></p>
|
||||||
<?php if ( is_lighttpd_before_150() ): ?>
|
<?php if ( is_lighttpd_before_150() ): ?>
|
||||||
<p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p>
|
<p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please update to lighttpd 1.5.'); ?></p>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<?php do_action('post-html-upload-ui', $flash); ?>
|
<?php do_action('post-html-upload-ui', $flash); ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -239,7 +239,7 @@ function theme_update_available( $theme ) {
|
|||||||
$theme_name = is_object($theme) ? $theme->name : (is_array($theme) ? $theme['Name'] : '');
|
$theme_name = is_object($theme) ? $theme->name : (is_array($theme) ? $theme['Name'] : '');
|
||||||
$details_url = add_query_arg(array('TB_iframe' => 'true', 'width' => 1024, 'height' => 800), $update['url']); //Theme browser inside WP? replace this, Also, theme preview JS will override this on the available list.
|
$details_url = add_query_arg(array('TB_iframe' => 'true', 'width' => 1024, 'height' => 800), $update['url']); //Theme browser inside WP? replace this, Also, theme preview JS will override this on the available list.
|
||||||
$update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet);
|
$update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet);
|
||||||
$update_onclick = 'onclick="if ( confirm(\'' . esc_js( __("Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to upgrade.") ) . '\') ) {return true;}return false;"';
|
$update_onclick = 'onclick="if ( confirm(\'' . esc_js( __("Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.") ) . '\') ) {return true;}return false;"';
|
||||||
|
|
||||||
if ( !is_multisite() ) {
|
if ( !is_multisite() ) {
|
||||||
if ( ! current_user_can('update_themes') )
|
if ( ! current_user_can('update_themes') )
|
||||||
|
@ -51,7 +51,7 @@ if ( isset($_GET['action']) ) {
|
|||||||
|
|
||||||
check_admin_referer('upgrade-plugin_' . $plugin);
|
check_admin_referer('upgrade-plugin_' . $plugin);
|
||||||
|
|
||||||
$title = __('Upgrade Plugin');
|
$title = __('Update Plugin');
|
||||||
$parent_file = 'plugins.php';
|
$parent_file = 'plugins.php';
|
||||||
$submenu_file = 'plugins.php';
|
$submenu_file = 'plugins.php';
|
||||||
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
@ -155,7 +155,7 @@ if ( isset($_GET['action']) ) {
|
|||||||
|
|
||||||
add_thickbox();
|
add_thickbox();
|
||||||
wp_enqueue_script('theme-preview');
|
wp_enqueue_script('theme-preview');
|
||||||
$title = __('Upgrade Theme');
|
$title = __('Update Theme');
|
||||||
$parent_file = 'themes.php';
|
$parent_file = 'themes.php';
|
||||||
$submenu_file = 'themes.php';
|
$submenu_file = 'themes.php';
|
||||||
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user