wip
This commit is contained in:
@@ -182,7 +182,7 @@ function has_shortcode( $content, $tag ) {
|
||||
* @return string[] An array of registered shortcode names found in the content.
|
||||
*/
|
||||
function get_shortcode_tags_in_content( $content ) {
|
||||
if ( false === strpos( $content, '[' ) ) {
|
||||
if ( ! str_contains( $content, '[' ) ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ function _filter_do_shortcode_context() {
|
||||
* @global array $shortcode_tags
|
||||
*
|
||||
* @param array $tagnames Optional. List of shortcodes to find. Defaults to all registered shortcodes.
|
||||
* @return string The shortcode search regular expression
|
||||
* @return string The shortcode search regular expression.
|
||||
*/
|
||||
function get_shortcode_regex( $tagnames = null ) {
|
||||
global $shortcode_tags;
|
||||
|
||||
Reference in New Issue
Block a user