WordPress.org

Ready to get started?Download WordPress

Forums

Single Post Template
problem with metabox_save function: 'pt_noncename' not set (1 post)

  1. Jo Landers
    Member
    Posted 10 months ago #

    Unfortunately, the plugin does not check whether $_POST['pt_noncename'] is set before trying to use it in the metabox_save( $post_id, $post ) function. This causes php errors/warnings.

    I added the following at the beginning of that function (around line 112) to correct the issue: if ( !isset($_POST['pt_noncename']) ) return $post->ID;

    Hopefully, later releases will incorporate this or similar code to prevent errors or warnings caused by referencing variables that don't actually exist.

    http://wordpress.org/plugins/single-post-template/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.