This commit is contained in:
Hanson.xyz Dev
2026-01-04 17:50:08 -06:00
parent 7e45ce0756
commit acc8ac87a0
4131 changed files with 232562 additions and 250244 deletions
+2 -2
View File
@@ -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;