Conflict with Oracle Cards
-
Hello,
if your plugin is active the shortcode added by the Oracle Cards plugin is not parsed. The shortcoe of Oracle Cards looks like [oracle_cards deck=”3″].
I see n the file https://plugins.trac.www.ads-software.com/browser/all-in-one-seo-pack/tags/4.2.1.1/app/Common/Traits/Helpers/Shortcodes.php#L100 at line 100:
/** * Returns the content with only the allowed shortcodes and wildcards replaced. * * @since 4.1.2 * * @param string $content The content. * @param array $tagsToRemove The shortcode tags to remove (optional). * @param int $postId The post ID (optional). * @return string The content with shortcodes replaced. */ private function doShortcodesHelper( $content, $tagsToRemove = [], $postId = 0 ) { global $shortcode_tags; $conflictingShortcodes = array_merge( $tagsToRemove, $this->conflictingShortcodes ); $conflictingShortcodes = apply_filters( 'aioseo_conflicting_shortcodes', $conflictingShortcodes ); $tagsToRemove = []; foreach ( $conflictingShortcodes as $shortcode ) { $shortcodeTag = str_replace( [ '[', ']' ], '', $shortcode ); if ( array_key_exists( $shortcodeTag, $shortcode_tags ) ) { $tagsToRemove[ $shortcodeTag ] = $shortcode_tags[ $shortcodeTag ]; } }
So, it looks like your plugin removes shortcodes of other plugins if they are considered conflicting shortcoes.
I wonder what is strange with the shortcode [oracle_cards deck=”3″]. How should be the shortcodes to don’t be removed by your plugin?Thank you in advance.
Best regards
Jose
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Conflict with Oracle Cards’ is closed to new replies.