@@ 103-106 (lines=4) @@ | ||
100 | // empty both arrays |
|
101 | \EE_Registry::CFG()->core->post_shortcodes[ $post->post_name ] = array(); |
|
102 | // check that posts page is already being tracked |
|
103 | if ( ! isset( \EE_Registry::CFG()->core->post_shortcodes[ $page_for_posts ] ) ) { |
|
104 | // if not, then ensure that it is properly added |
|
105 | \EE_Registry::CFG()->core->post_shortcodes[ $page_for_posts ] = array(); |
|
106 | } |
|
107 | // loop thru shortcodes |
|
108 | foreach ( \EE_Registry::instance()->shortcodes as $EES_Shortcode => $shortcode_dir ) { |
|
109 | // convert to UPPERCASE to get actual shortcode |
@@ 271-273 (lines=3) @@ | ||
268 | $term_exists = is_array( term_exists( $current_post, 'category' )) || array_key_exists( 'category_name', $WP->query_vars ); |
|
269 | // make sure shortcodes are set |
|
270 | if ( isset( EE_Registry::CFG()->core->post_shortcodes )) { |
|
271 | if ( ! isset( EE_Registry::CFG()->core->post_shortcodes[ $page_for_posts ] ) ) { |
|
272 | EE_Registry::CFG()->core->post_shortcodes[ $page_for_posts ] = array(); |
|
273 | } |
|
274 | // cycle thru all posts with shortcodes set |
|
275 | foreach ( EE_Registry::CFG()->core->post_shortcodes as $post_name => $post_shortcodes ) { |
|
276 | // filter shortcodes so |