mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Prevent errors in QTags.closeAllTags(), make it remove button states but not modify the content (as that often is wrong anyways), fixes #15911
git-svn-id: https://develop.svn.wordpress.org/trunk@19290 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -534,7 +534,11 @@ function edButton(id, display, tagStart, tagEnd, access, open) {
|
||||
while ( tbo.length > 0 ) {
|
||||
button = ed.getButton(tbo[tbo.length - 1]);
|
||||
element = document.getElementById(ed.name + '_' + button.id);
|
||||
button.callback.call(button, element, c, ed);
|
||||
|
||||
if ( e )
|
||||
button.callback.call(button, element, c, ed);
|
||||
else
|
||||
button.closeTag(element, ed);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user