PHP notice in /includes/editor/editor.php:626
-
There is an php notice in this file
function fca_qc_live_preview( $content ){ global $post; if ( is_user_logged_in() && $post->post_type === 'fca_qc_quiz' && is_main_query() && !doing_action( 'wp_head' ) ) { return $content . do_shortcode("[quiz-cat id='" . $post->ID . "']"); } else { return $content; } }
Notice: Trying to get property ‘post_type’ of non-object
can you please fix it ?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP notice in /includes/editor/editor.php:626’ is closed to new replies.