Wordpres++
This commit is contained in:
1 parent
3e89c56288
commit
b3863fc635
152 files changed
+4903
-3602
No files matched your search
@@ -95,7 +95,7 @@ function add_shortcode($tag, $func) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20]@', $tag ) ) {
|
||||
if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20=]@', $tag ) ) {
|
||||
/* translators: %s: shortcode name */
|
||||
$message = sprintf( __( 'Invalid shortcode name: %s. Do not use spaces or reserved characters: & / < > [ ]' ), $tag );
|
||||
_doing_it_wrong( __FUNCTION__, $message, '4.4.0' );
|
||||
@@ -210,7 +210,7 @@ function do_shortcode( $content, $ignore_html = false ) {
|
||||
return $content;
|
||||
|
||||
// Find all registered tag names in $content.
|
||||
preg_match_all( '@\[([^<>&/\[\]\x00-\x20]++)@', $content, $matches );
|
||||
preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
|
||||
$tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
|
||||
|
||||
if ( empty( $tagnames ) ) {
|
||||
@@ -578,7 +578,7 @@ function strip_shortcodes( $content ) {
|
||||
return $content;
|
||||
|
||||
// Find all registered tag names in $content.
|
||||
preg_match_all( '@\[([^<>&/\[\]\x00-\x20]++)@', $content, $matches );
|
||||
preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
|
||||
$tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
|
||||
|
||||
if ( empty( $tagnames ) ) {
|
||||
|
||||
Reference in new issue
Block a user