mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
Use proper functions for escaped translations.
pros jcastaneda. fixes #30012. git-svn-id: https://develop.svn.wordpress.org/trunk@29961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -86,15 +86,15 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", array(), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'quicktags', 'quicktagsL10n', array(
|
||||
'closeAllOpenTags' => esc_attr(__('Close all open tags')),
|
||||
'closeTags' => esc_attr(__('close tags')),
|
||||
'enterURL' => __('Enter the URL'),
|
||||
'enterImageURL' => __('Enter the URL of the image'),
|
||||
'enterImageDescription' => __('Enter a description of the image'),
|
||||
'fullscreen' => __('fullscreen'),
|
||||
'toggleFullscreen' => esc_attr( __('Toggle fullscreen mode') ),
|
||||
'textdirection' => esc_attr( __('text direction') ),
|
||||
'toggleTextdirection' => esc_attr( __('Toggle Editor Text Direction') )
|
||||
'closeAllOpenTags' => esc_attr__( 'Close all open tags' ),
|
||||
'closeTags' => esc_attr__( 'close tags' ),
|
||||
'enterURL' => __( 'Enter the URL' ),
|
||||
'enterImageURL' => __( 'Enter the URL of the image' ),
|
||||
'enterImageDescription' => __( 'Enter a description of the image' ),
|
||||
'fullscreen' => __( 'fullscreen' ),
|
||||
'toggleFullscreen' => esc_attr__( 'Toggle fullscreen mode' ),
|
||||
'textdirection' => esc_attr__( 'text direction' ),
|
||||
'toggleTextdirection' => esc_attr__( 'Toggle Editor Text Direction' )
|
||||
) );
|
||||
|
||||
$scripts->add( 'colorpicker', "/wp-includes/js/colorpicker$suffix.js", array('prototype'), '3517m' );
|
||||
|
||||
Reference in New Issue
Block a user