Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook into the admin_notices action for required message #110

Merged
merged 11 commits into from
Dec 30, 2020
8 changes: 4 additions & 4 deletions pods-beaver-themer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Pods Beaver Themer Add-On
* Plugin URI: http://pods.io/
* Description: Integration with Beaver Builder Themer (https://www.wpbeaverbuilder.com). Provides a UI for mapping Field Connections with Pods
* Version: 1.3.3
* Version: 1.3.4
* Author: Quasel, Pods Framework Team
* Author URI: http://pods.io/about/
* Text Domain: pods-beaver-builder-themer-add-on
Expand All @@ -30,7 +30,7 @@
* @package Pods\Beaver Themer
*/

define( 'PODS_BEAVER_VERSION', '1.3.3' );
define( 'PODS_BEAVER_VERSION', '1.3.4' );
define( 'PODS_BEAVER_FILE', __FILE__ );
define( 'PODS_BEAVER_DIR', plugin_dir_path( PODS_BEAVER_FILE ) );
define( 'PODS_BEAVER_URL', plugin_dir_url( PODS_BEAVER_FILE ) );
Expand Down Expand Up @@ -83,14 +83,14 @@ function pods_beaver_admin_nag() {

if ( is_admin() && ( ! class_exists( 'FLBuilder' ) || ! defined( 'PODS_VERSION' ) ) ) {
printf(
'<div id="message" class="error"><p>%s</p></div>',
'<div class="notice notice-error"><p>%s</p></div>',
esc_html__( 'Pods Beaver Themer requires that the Pods and Beaver Builder Themer plugins be installed and activated.', 'pods-beaver-builder-themer-add-on' )
);
}

}

add_action( 'plugins_loaded', 'pods_beaver_admin_nag' );
add_action( 'admin_notices', 'pods_beaver_admin_nag' );

/**
* Post modules: JS for setting data_source to custom_query if a relationship field is selected as source
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: quasel, sc0ttkclark, jimtrue, smarterdigitalltd
Donate link: https://pods.io/friends-of-pods/
Tags: pods, beaver builder, beaver themer
Requires at least: 4.4
Tested up to: 5.4
Tested up to: 5.5
sc0ttkclark marked this conversation as resolved.
Show resolved Hide resolved
Requires PHP: 5.4
Stable tag: 1.3.3
Stable tag: 1.3.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -72,6 +72,9 @@ You can use [GitHub Updater](https://github.com/afragen/github-updater). A simpl

== Changelog ==

= 1.3.4 - November 30th, 2020 =
* Fixed: Admin notices are now using the correct action for showing the message that Pods and Beaver Themer plugins (if not available) are required to use this plugin.
sc0ttkclark marked this conversation as resolved.
Show resolved Hide resolved

= 1.3.3 - March 26th, 2020 =
* Added: Now requiring PHP 5.4+
* Added: Freemius support when running Pods 2.7.17
Expand Down