Shears of vigorous pinking.
git-svn-id: https://develop.svn.wordpress.org/trunk@20944 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ea2e1a641f
commit
b6e23d7269
@ -48,7 +48,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
|
|
||||||
<div class="changelog">
|
<div class="changelog">
|
||||||
<h3><?php _e( 'Custom Headers' ); ?></h3>
|
<h3><?php _e( 'Custom Headers' ); ?></h3>
|
||||||
|
|
||||||
<div class="feature-section">
|
<div class="feature-section">
|
||||||
<h4><?php _e( 'Flexible Sizes' ); ?></h4>
|
<h4><?php _e( 'Flexible Sizes' ); ?></h4>
|
||||||
<p><?php _e( 'You can decide for yourself how tall or wide your custom header image should be. From now on, themes will provide a recommended image size for custom headers rather than a fixed requirement. Note: this feature requires <a href="http://codex.wordpress.org/Custom_Headers">theme support</a>.' ); ?></p>
|
<p><?php _e( 'You can decide for yourself how tall or wide your custom header image should be. From now on, themes will provide a recommended image size for custom headers rather than a fixed requirement. Note: this feature requires <a href="http://codex.wordpress.org/Custom_Headers">theme support</a>.' ); ?></p>
|
||||||
@ -82,21 +82,21 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
<div>
|
<div>
|
||||||
<h4><?php _e( 'Themes API' ); ?></h4>
|
<h4><?php _e( 'Themes API' ); ?></h4>
|
||||||
<p><?php _e( 'WP_Theme, wp_get_themes(), wp_get_theme(). Faster, uses less memory, makes use of persistent caching.' ); ?></p>
|
<p><?php _e( 'WP_Theme, wp_get_themes(), wp_get_theme(). Faster, uses less memory, makes use of persistent caching.' ); ?></p>
|
||||||
|
|
||||||
<h4><?php _e( 'Faster Main Query' ); ?></h4>
|
<h4><?php _e( 'Faster Main Query' ); ?></h4>
|
||||||
<p><?php _e( 'Post query optimized to avoid table scans.' ); ?></p>
|
<p><?php _e( 'Post query optimized to avoid table scans.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h4><?php _e( 'Custom Header and Background API' ); ?></h4>
|
<h4><?php _e( 'Custom Header and Background API' ); ?></h4>
|
||||||
<p><?php _e( 'Custom header and background API relocated into the theme support API.' ); ?></p>
|
<p><?php _e( 'Custom header and background API relocated into the theme support API.' ); ?></p>
|
||||||
|
|
||||||
<h4><?php _e( 'Faster Translations' ); ?></h4>
|
<h4><?php _e( 'Faster Translations' ); ?></h4>
|
||||||
<p><?php _e( 'The number of strings loaded on the front end was greatly reduced, resulting in faster front page load times for localized installations.' ); ?></p>
|
<p><?php _e( 'The number of strings loaded on the front end was greatly reduced, resulting in faster front page load times for localized installations.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="last-feature">
|
<div class="last-feature">
|
||||||
<h4><?php _e( 'WP_Screen API' ); ?></h4>
|
<h4><?php _e( 'WP_Screen API' ); ?></h4>
|
||||||
<p><?php _e( 'More methods, more convenience!' ); ?></p>
|
<p><?php _e( 'More methods, more convenience!' ); ?></p>
|
||||||
|
|
||||||
<h4><?php _e( 'External Libraries' ); ?></h4>
|
<h4><?php _e( 'External Libraries' ); ?></h4>
|
||||||
<p><?php _e( 'jQuery, jQuery UI, TinyMCE, Plupload, PHPMailer, SimplePie, and other libraries were updated. jQuery UI Touch Punch was introduced.' ); ?></p>
|
<p><?php _e( 'jQuery, jQuery UI, TinyMCE, Plupload, PHPMailer, SimplePie, and other libraries were updated. jQuery UI Touch Punch was introduced.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -111,7 +111,7 @@ class Custom_Image_Header {
|
|||||||
'<p>' . __( 'This screen is used to customize the header section of your theme.') . '</p>' .
|
'<p>' . __( 'This screen is used to customize the header section of your theme.') . '</p>' .
|
||||||
'<p>' . __( 'You can choose from the theme’s default header images, or use one of your own. You can also customize how your Site Title and Tagline are displayed.') . '<p>'
|
'<p>' . __( 'You can choose from the theme’s default header images, or use one of your own. You can also customize how your Site Title and Tagline are displayed.') . '<p>'
|
||||||
) );
|
) );
|
||||||
|
|
||||||
get_current_screen()->add_help_tab( array(
|
get_current_screen()->add_help_tab( array(
|
||||||
'id' => 'set-header-image',
|
'id' => 'set-header-image',
|
||||||
'title' => __('Header Image'),
|
'title' => __('Header Image'),
|
||||||
@ -121,7 +121,7 @@ class Custom_Image_Header {
|
|||||||
'<p>' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the “Random” radio button next to the Uploaded Images or Default Images section to enable this feature.') . '</p>' .
|
'<p>' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the “Random” radio button next to the Uploaded Images or Default Images section to enable this feature.') . '</p>' .
|
||||||
'<p>' . __( 'If you don’t want a header image to be displayed on your site at all, click the “Remove Header Image” button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click “Save Changes”.') . '</p>'
|
'<p>' . __( 'If you don’t want a header image to be displayed on your site at all, click the “Remove Header Image” button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click “Save Changes”.') . '</p>'
|
||||||
) );
|
) );
|
||||||
|
|
||||||
get_current_screen()->add_help_tab( array(
|
get_current_screen()->add_help_tab( array(
|
||||||
'id' => 'set-header-text',
|
'id' => 'set-header-text',
|
||||||
'title' => __('Header Text'),
|
'title' => __('Header Text'),
|
||||||
|
@ -440,12 +440,12 @@ function _load_image_to_edit_path( $attachment_id, $size = 'full' ) {
|
|||||||
*/
|
*/
|
||||||
function _copy_image_file( $attachment_id ) {
|
function _copy_image_file( $attachment_id ) {
|
||||||
$dst_file = $src_file = get_attached_file( $attachment_id );
|
$dst_file = $src_file = get_attached_file( $attachment_id );
|
||||||
if ( ! file_exists( $src_file ) )
|
if ( ! file_exists( $src_file ) )
|
||||||
$src_file = _load_image_to_edit_path( $attachment_id );
|
$src_file = _load_image_to_edit_path( $attachment_id );
|
||||||
|
|
||||||
if ( $src_file ) {
|
if ( $src_file ) {
|
||||||
$dst_file = str_replace( basename( $dst_file ), 'copy-' . basename( $dst_file ), $dst_file );
|
$dst_file = str_replace( basename( $dst_file ), 'copy-' . basename( $dst_file ), $dst_file );
|
||||||
$dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) );
|
$dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) );
|
||||||
if ( ! @copy( $src_file, $dst_file ) )
|
if ( ! @copy( $src_file, $dst_file ) )
|
||||||
$dst_file = false;
|
$dst_file = false;
|
||||||
} else {
|
} else {
|
||||||
|
@ -16,17 +16,17 @@ var farbtastic, pickColor;
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('#pickcolor').click(function() {
|
$('#pickcolor').click(function() {
|
||||||
$('#colorPickerDiv').show();
|
$('#colorPickerDiv').show();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#clearcolor a').click( function(e) {
|
$('#clearcolor a').click( function(e) {
|
||||||
pickColor( $('#defaultcolor').val(), true );
|
pickColor( $('#defaultcolor').val(), true );
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#background-color').keyup(function() {
|
$('#background-color').keyup(function() {
|
||||||
var _hex = $('#background-color').val(), hex = _hex;
|
var _hex = $('#background-color').val(), hex = _hex;
|
||||||
if ( hex.charAt(0) != '#' )
|
if ( hex.charAt(0) != '#' )
|
||||||
@ -37,20 +37,20 @@ var farbtastic, pickColor;
|
|||||||
if ( hex.length == 4 || hex.length == 7 )
|
if ( hex.length == 4 || hex.length == 7 )
|
||||||
pickColor( hex );
|
pickColor( hex );
|
||||||
});
|
});
|
||||||
|
|
||||||
$('input[name="background-position-x"]').change(function() {
|
$('input[name="background-position-x"]').change(function() {
|
||||||
$('#custom-background-image').css('background-position', $(this).val() + ' top');
|
$('#custom-background-image').css('background-position', $(this).val() + ' top');
|
||||||
});
|
});
|
||||||
|
|
||||||
$('input[name="background-repeat"]').change(function() {
|
$('input[name="background-repeat"]').change(function() {
|
||||||
$('#custom-background-image').css('background-repeat', $(this).val());
|
$('#custom-background-image').css('background-repeat', $(this).val());
|
||||||
});
|
});
|
||||||
|
|
||||||
farbtastic = $.farbtastic('#colorPickerDiv', function(color) {
|
farbtastic = $.farbtastic('#colorPickerDiv', function(color) {
|
||||||
pickColor(color);
|
pickColor(color);
|
||||||
});
|
});
|
||||||
pickColor($('#background-color').val());
|
pickColor($('#background-color').val());
|
||||||
|
|
||||||
$(document).mousedown(function(){
|
$(document).mousedown(function(){
|
||||||
$('#colorPickerDiv').each(function(){
|
$('#colorPickerDiv').each(function(){
|
||||||
var display = $(this).css('display');
|
var display = $(this).css('display');
|
||||||
|
@ -36,7 +36,7 @@ $body_id = $tab;
|
|||||||
|
|
||||||
do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information.
|
do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information.
|
||||||
|
|
||||||
$help_overview =
|
$help_overview =
|
||||||
'<p>' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/extend/themes/') . '</p>' .
|
'<p>' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/extend/themes/') . '</p>' .
|
||||||
'<p>' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Newest, or Recently Updated. When you find a theme you like, you can preview it or install it.') . '</p>' .
|
'<p>' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Newest, or Recently Updated. When you find a theme you like, you can preview it or install it.') . '</p>' .
|
||||||
'<p>' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme’s folder via FTP into your <code>/wp-content/themes</code> directory.') . '</p>';
|
'<p>' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme’s folder via FTP into your <code>/wp-content/themes</code> directory.') . '</p>';
|
||||||
|
@ -2143,8 +2143,8 @@ function wp_trim_words( $text, $num_words = 55, $more = null ) {
|
|||||||
$more = __( '…' );
|
$more = __( '…' );
|
||||||
$original_text = $text;
|
$original_text = $text;
|
||||||
$text = wp_strip_all_tags( $text );
|
$text = wp_strip_all_tags( $text );
|
||||||
/* translators: If your word count is based on single characters (East Asian characters),
|
/* translators: If your word count is based on single characters (East Asian characters),
|
||||||
enter 'characters'. Otherwise, enter 'words'. Do not translate into your own language. */
|
enter 'characters'. Otherwise, enter 'words'. Do not translate into your own language. */
|
||||||
if ( 'characters' == _x( 'words', 'word count: words or characters?' ) && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) {
|
if ( 'characters' == _x( 'words', 'word count: words or characters?' ) && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) {
|
||||||
$text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );
|
$text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );
|
||||||
preg_match_all( '/./u', $text, $words_array );
|
preg_match_all( '/./u', $text, $words_array );
|
||||||
|
@ -2201,7 +2201,7 @@ function self_admin_url($path = '', $scheme = 'admin') {
|
|||||||
* Set the scheme for a URL
|
* Set the scheme for a URL
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
*
|
*
|
||||||
* @param string $url Absolute url that includes a scheme
|
* @param string $url Absolute url that includes a scheme
|
||||||
* @param string $scheme Optional. Scheme to give $url. Currently 'http', 'https', 'login', 'login_post', 'admin', or 'relative'.
|
* @param string $scheme Optional. Scheme to give $url. Currently 'http', 'https', 'login', 'login_post', 'admin', or 'relative'.
|
||||||
* @return string $url URL with chosen scheme.
|
* @return string $url URL with chosen scheme.
|
||||||
|
Loading…
Reference in New Issue
Block a user