WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type Creator
Bug Report (3 posts)

  1. more2come3
    Member
    Posted 1 year ago #

    Hi,

    Good day.

    I would like to report a bug which as follows:

    Undefined index: view-item in /home/.../plugins/custom-post-type-creator/wck-cptc.php on line 148

    Thanks.

    http://wordpress.org/extend/plugins/custom-post-type-creator/

  2. rubblemasta
    Member
    Posted 1 year ago #

    I can verify this. Looks like the plugin uses a lazy method to check whether params exist. A better method would be to use isset(), empty() or even array_key_exists(). See http://kunststube.net/isset/ for a thorough explanation.

    You can fix instances using examples here: http://stackoverflow.com/questions/4007752/php-check-if-variable-exist-but-also-if-has-a-value-equal-to-something

  3. rubblemasta
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags