WordPress.org

Forums

Custom Post Donations
[resolved] I fixed PHP warning on custom-post-donations.php (2 posts)

  1. Nick Powers
    Member
    Posted 10 months ago #

    On line 188 of custom-post-donations.php

    You have:
    return createCPDonationForm($atts[id]);

    when it should be:
    return createCPDonationForm($atts['id']);

    Doing so removes the following warning:
    Notice: Use of undefined constant id - assumed 'id' in /var/www/dev.nickpowers.info/html/wp-content/plugins/custom-post-donations/custom-post-donations.php on line 188

    You might think about making this change in the next update.

    http://wordpress.org/extend/plugins/custom-post-donations/

  2. hahncgdev
    Member
    Plugin Author

    Posted 10 months ago #

    This update has been made for version 1.9.

    Thanks or the heads up!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.