Commit ce7caa1a authored by Kenny Hall's avatar Kenny Hall

Changed dashboard promotion filer's name back and wrapped my sendwp check in a 5.6 check.

parent 72a1d589
Pipeline #1834 passed with stages
in 2 minutes
<?php
return apply_filters( 'ninja-forms-promotions', array(
return apply_filters( 'ninja-forms-dashboard-promotions', array(
/*
......@@ -56,7 +56,7 @@ return apply_filters( 'ninja-forms-promotions', array(
|--------------------------------------------------------------------------
|
*/
'sendwp-banner' => array(
'id' => 'sendwp-banner',
'location' => 'dashboard',
......
......@@ -73,12 +73,15 @@ class NF_PromotionManager
/**************************************************************************
* Promotion Removal Methods
*
* These funcitons all check to see if the individual add-ons that make up
* our personal membership are active.
* These funcitons all check for different add-ons/products and remove
* promotions for them if they are in use.
****************************************************************************/
private function maybe_remove_sendwp()
{
if( $this->is_sendwp_active() || phpversion() < '5.6.0' ) {
if( phpversion() < '5.6.0' ) {
$this->remove_promotion( 'sendwp' );
return;
} elseif( $this->is_sendwp_active() ) {
$this->remove_promotion( 'sendwp' );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment