post_content shows php Notice
-
Hi,
thanks for your work, a great great help!
I ave tried to use it with WP_DEBUG = true
and post_content method shows a notice
Notice: Undefined index: exclude_current in /Users/thomasmery/Documents/WebDev/Clients/Screenside/CIAP-SLM/application/web/app/plugins/post-content-shortcodes/class-post-content-shortcodes.php on line 321
I patched it like so:
if( isset($atts['exclude_current']) && $atts['exclude_current'] !== 'Do not exclude' && ( $id == $GLOBALS['post']->ID || empty( $id ) ) ) return;What do you think?
thank you
thomas
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘post_content shows php Notice’ is closed to new replies.