Skip to content

Commit

Permalink
Merge pull request #26 from ClassicPress/fix/parse-error
Browse files Browse the repository at this point in the history
Fix for parse error in cp-donations.php (v2.0.1)
  • Loading branch information
timbocode authored Feb 26, 2021
2 parents 766538c + 6ee5087 commit 4dde354
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions wp-content/plugins/cp-donations/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### v 2.0.1 / 2021-02-26
* fix for PHP Parse error: syntax error, unexpected ')' in cp-donations.php on line 106

#### v 2.0.0 / 2021-02-17
* Addition of custom amount feature to allow donations of any amount.
* Shortcode now accepts product ID as parameter.
Expand Down
8 changes: 4 additions & 4 deletions wp-content/plugins/cp-donations/cp-donations.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Donations for ClassicPress
* Plugin URI: https://github.com/timbocode/cc-donations
* Description: Frontend interface for donations and subscriptions
* Version: 2.0.0
* Version: 2.0.1
* Author: timbocode
* Author URI: https://github.com/timbocode
* Text Domain: cp_donations_domain
Expand All @@ -27,7 +27,7 @@
*/
class CP_Donations {

public $version = '2.0.0';
public $version = '2.0.1';
public $db_version = '1';
private $min_cp_version = '1.0.2';
private $php_version = '7.0';
Expand Down Expand Up @@ -101,8 +101,8 @@ public function cpd_requirements() {
if ( version_compare( get_bloginfo( 'version' ), $this->min_cp_version, '<' ) ) {
$notice = sprintf(
// Translators: %s ClassicPress version number.
__( '<strong>CP Donations requires ClassicPress version %s or above. Please update ClassicPress.', 'cp_donations_domain' ),
$this->min_cp_version,
__( 'CP Donations requires ClassicPress version %s or above. Please update ClassicPress.', 'cp_donations_domain' ),
$this->min_cp_version
);
CPD_Admin_Notices::add_notice( $notice, 'error' );
return false;
Expand Down

0 comments on commit 4dde354

Please sign in to comment.