WordPress.org

Forums

Easy Digital Downloads
[resolved] edd_purchase_variable_pricing() function argument (7 posts)

  1. Ahaenor
    Member
    Posted 2 years ago #

    Hello!

    During the update from 1.5.1 to 1.5.2 we have found that edd_purchase_variable_pricing() function now has a second arg.

    Can it have a default value (FALSE)? Right now both args is required, and it leads to PHP errors.

    http://wordpress.org/extend/plugins/easy-digital-downloads/

  2. Ahaenor
    Member
    Posted 2 years ago #

    Sorry, i've rushed a bit ) A "TRUE" would fit better.

  3. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    What are the errors?

  4. Ahaenor
    Member
    Posted 2 years ago #

    Warning: Missing argument 2 for edd_purchase_variable_pricing()
    It can be seen while rendering [downloads] shortcode, for ex.

    It's reasonable - earlier this function called without second arg, and now it's required.

  5. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    Ah yes, makes sense and you're right. I'll patch that.

  6. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    It's been patched for 1.5.3.

  7. Ahaenor
    Member
    Posted 2 years ago #

    Ok, thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Digital Downloads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.