WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Nick Powers
    Member
    Posted 2 years 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 2 years ago #

    This update has been made for version 1.9.

    Thanks or the heads up!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.