mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 10:59:07 +01:00
Properly reset vars, see #16695
git-svn-id: http://svn.automattic.com/wordpress/trunk@18612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a8df969ac9
commit
6ebdf41b50
@ -216,7 +216,7 @@ function edButton(id, display, tagStart, tagEnd, access, open) {
|
||||
};
|
||||
|
||||
qt._buttonsInit = function() {
|
||||
var t = this, instance, canvas, name, settings, buttons = {}, theButtons = {}, html = '', id, i, qb, btn;;
|
||||
var t = this, instance, canvas, name, settings, buttons, theButtons, html, id, i, qb, btn;;
|
||||
|
||||
for ( id in t.instances ) {
|
||||
if ( id == 0 )
|
||||
@ -226,6 +226,9 @@ function edButton(id, display, tagStart, tagEnd, access, open) {
|
||||
canvas = instance.canvas;
|
||||
name = instance.name;
|
||||
settings = instance.settings;
|
||||
html = '';
|
||||
buttons = {};
|
||||
theButtons = {};
|
||||
|
||||
// set buttons
|
||||
for ( i in edButtons ) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -68,7 +68,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", false, '1.6.1', 1 );
|
||||
|
||||
$scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", false, '20110826', 1 );
|
||||
$scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", false, '20110827', 1 );
|
||||
$scripts->add_script_data( 'quicktags', 'quicktagsL10n', array(
|
||||
'wordLookup' => __('Enter a word to look up:'),
|
||||
'dictionaryLookup' => esc_attr(__('Dictionary lookup')),
|
||||
|
Loading…
Reference in New Issue
Block a user