• Resolved xoex

    (@xoex)


    In file :
    auto-post-thumbnail\includes\class-apt.php

    line 513, publish_post function, it’s better to check for $post not being null before accessing it’s property. In face it’s producing PHP Notice :

    public function publish_post( $post_id, $post = null, $update = true ) {
    		global $wpdb;
    
    		if ( $post->post_status === 'auto-draft' ) {
    			return null;
    		}

    P.S : if ( $post->post_status === ‘auto-draft’ ) should be if ( $post != null && $post->post_status === ‘auto-draft’ )

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Notice bug’ is closed to new replies.