• Resolved Nadir Atmaca

    (@nadiratmaca)


    Hi.
    WordPress Default Featured Image plugin Php Undefined variable message :

    Notice: Undefined variable: post_type in /xxxxxx/wp-content/plugins/wp-auto-featured-image/wp-auto-featured-image.php on line 272

    Bug Fix line
    line 264 | extract($_POST);
    …change to …
    line 264 | $_POST ? extract($_POST): extract($_GET) ;/** Bug Fix | Nadir Atmaca **/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sanny Srivastava

    (@sanny_rss)

    Hi,

    Thanks for pointing this out, source code is updated.

    Thanks

    Thread Starter Nadir Atmaca

    (@nadiratmaca)

    Hi.
    I thank you. For making a nice and useful add-on.
    Another little fix I noticed.

    $_POST ? extract($_POST): $_GET ? <strong>extract($_GET) : $post_type=null;</strong>

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Default Featured Image | Undefined variable: post_type’ is closed to new replies.