Skip to content

Commit

Permalink
Fix Notice: Use of undefined constant PP_CONTACT_REQUIRES
Browse files Browse the repository at this point in the history
  • Loading branch information
plusplugins committed Sep 11, 2017
1 parent 4ffcc3e commit 7d5eb70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
* Plugin URI: https://plusplugins.com
* Description: Add relationships between users, post types and taxonomies.
* Author: PlusPlugins
* Version: 0.9
* Version: 1.0
* Author URI: https://plusplugins.com
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

define( 'PP_FIELDS_REQUIRES', '1.3.28' );

class PP_Fields {
public $notice_messge = '';
public $plugin_inactive = false;
Expand All @@ -29,7 +31,7 @@ function plugin_check() {
if ( ! class_exists( 'UM_API' ) ) {
$this->notice_messge = __( 'The <strong>UM Relational Fields</strong> extension requires the Ultimate Member plugin to be activated to work properly. You can download it <a href="https://wordpress.org/plugins/ultimate-member">here</a>', 'pp-contact' );
$this->plugin_inactive = true;
} else if ( ! version_compare( ultimatemember_version, PP_CONTACT_REQUIRES, '>=' ) ) {
} else if ( ! version_compare( ultimatemember_version, PP_FIELDS_REQUIRES, '>=' ) ) {
$this->notice_messge = __( 'The <strong>UM Relational Fields</strong> extension requires a <a href="https://wordpress.org/plugins/ultimate-member">newer version</a> of Ultimate Member to work properly.', 'pp-contact' );
$this->plugin_inactive = true;
}
Expand Down
11 changes: 7 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: ultimatemember, ultimate member, relationships, relation, relational fields, link members, profile linking, connect members
Requires at least: 3.0.1
Tested up to: 4.8.1
Stable tag: 0.9
Stable tag: 1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -77,17 +77,20 @@ See this [video](https://www.youtube.com/watch?v=yk5zPfK8zfE) for a demonstratio

== Changelog ==

= 1.0 =
* Fix `Notice: Use of undefined constant PP_CONTACT_REQUIRES`

= 0.9 =
* Added Github Repo link
* Add Github Repo link

= 0.8 =
* Fixed issue with empty meta_key
* Fix issue with empty meta_key

= 0.7 =
* Minor verbiage tweak

= 0.6 =
* Added video tutorial for UM Relational Fields plugin
* Add video tutorial for UM Relational Fields plugin

= 0.5 =
* Show relations on Profile Card in Members Directory
Expand Down

0 comments on commit 7d5eb70

Please sign in to comment.