Pinking shears

git-svn-id: http://svn.automattic.com/wordpress/trunk@19528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2011-12-01 04:51:35 +00:00
parent d9983a790c
commit 6bba5a265b
26 changed files with 80 additions and 80 deletions

View File

@@ -80,10 +80,10 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f
*
* @param string $handle The script handle that was registered or used in script-loader
* @param string $object_name Name for the created JS object. This is passed directly so it should be qualified JS variable /[a-zA-Z0-9_]+/
* @param array $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded.
* @param array $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded.
* @return bool Whether the localization was added successfully.
*/
function wp_localize_script( $handle, $object_name, $l10n ) {
function wp_localize_script( $handle, $object_name, $l10n ) {
global $wp_scripts;
if ( ! is_a( $wp_scripts, 'WP_Scripts' ) ) {
if ( ! did_action( 'init' ) )
@@ -93,8 +93,8 @@ function wp_localize_script( $handle, $object_name, $l10n ) {
return false;
}
return $wp_scripts->localize( $handle, $object_name, $l10n );
}
return $wp_scripts->localize( $handle, $object_name, $l10n );
}
/**
* Adds extra Javascript.

View File

@@ -1789,13 +1789,13 @@ function wp_default_editor() {
*
* Using this function is the proper way to output all needed components for both TinyMCE and Quicktags.
* _WP_Editors should not be used directly. See http://core.trac.wordpress.org/ticket/17144.
*
*
* NOTE: Once initialized the TinyMCE editor cannot be safely moved in the DOM. For that reason
* running wp_editor() inside of a metabox is not a good idea unless only Quicktags is used.
* On the post edit screen several actions can be used to include additional editors
* containing TinyMCE: 'edit_page_form', 'edit_form_advanced' and 'dbx_post_sidebar'.
* See http://core.trac.wordpress.org/ticket/19173 for more information.
*
*
* @see wp-includes/class-wp-editor.php
* @since 3.3
*