From 96a6f0ac1f7c830a8c8de2d1f378530ca34206f7 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Mon, 17 Aug 2015 21:39:25 +0000 Subject: [PATCH] Pinking shears. Built from https://develop.svn.wordpress.org/trunk@33627 git-svn-id: http://core.svn.wordpress.org/trunk@33594 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 2 +- wp-admin/edit-form-comment.php | 2 +- wp-admin/includes/upgrade.php | 4 ++-- wp-includes/load.php | 2 +- wp-includes/shortcodes.php | 20 ++++++++++---------- wp-includes/version.php | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 15acd7cedb..225272acbe 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -56,7 +56,7 @@ $core_actions_post = array( 'hidden-columns', 'update-welcome-panel', 'menu-get-metabox', 'wp-link-ajax', 'menu-locations-save', 'menu-quick-search', 'meta-box-order', 'get-permalink', 'sample-permalink', 'inline-save', 'inline-save-tax', 'find_posts', 'widgets-order', - 'save-widget', 'set-post-thumbnail', 'date_format', 'time_format', + 'save-widget', 'set-post-thumbnail', 'date_format', 'time_format', 'wp-remove-post-lock', 'dismiss-wp-pointer', 'upload-attachment', 'get-attachment', 'query-attachments', 'save-attachment', 'save-attachment-compat', 'send-link-to-editor', 'send-attachment-to-editor', 'save-attachment-order', 'heartbeat', 'get-revision-diffs', diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 6c85f77b94..9b8062da12 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -131,7 +131,7 @@ if ( $comment->comment_parent ) : - $content = unescape_invalid_shortcodes( $content ); - + return $content; } @@ -331,7 +331,7 @@ function do_shortcodes_in_html_tags( $content, $ignore_html ) { $trans = array( '[' => '[', ']' => ']' ); $content = strtr( $content, $trans ); $trans = array( '[' => '[', ']' => ']' ); - + $pattern = get_shortcode_regex(); $textarr = wp_html_split( $content ); @@ -368,14 +368,14 @@ function do_shortcodes_in_html_tags( $content, $ignore_html ) { $element = strtr( $element, $trans ); continue; } - + // Get element name $front = array_shift( $attributes ); $back = array_pop( $attributes ); $matches = array(); preg_match('%[a-zA-Z0-9]+%', $front, $matches); $elname = $matches[0]; - + // Look for shortcodes in each attribute separately. foreach ( $attributes as &$attr ) { $open = strpos( $attr, '[' ); @@ -407,13 +407,13 @@ function do_shortcodes_in_html_tags( $content, $ignore_html ) { } } $element = $front . implode( '', $attributes ) . $back; - + // Now encode any remaining [ or ] chars. $element = strtr( $element, $trans ); } - + $content = implode( '', $textarr ); - + return $content; } @@ -429,7 +429,7 @@ function unescape_invalid_shortcodes( $content ) { // Clean up entire string, avoids re-parsing HTML. $trans = array( '[' => '[', ']' => ']' ); $content = strtr( $content, $trans ); - + return $content; } @@ -539,7 +539,7 @@ function strip_shortcodes( $content ) { // Always restore square braces so we don't break things like