Plugin Directory

Changeset 2716187


Ignore:
Timestamp:
04/28/2022 11:44:42 PM (4 years ago)
Author:
manfcarlo
Message:

v1.3.2

Location:
wp-funnel-manager
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-funnel-manager/tags/1.3.2/readme.txt

    r2676816 r2716187  
    33Tags: funnel builder, page builder, sales funnels, landing page, marketing, sales, block, blocks, block editor, gutenberg, template, templates
    44Tested up to: 5.9
    5 Stable tag: 1.3.1
     5Stable tag: 1.3.2
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5757Once your active theme supports the template editor, all your funnels will be automatically restored.
    5858
     59= Why did the plugin automatically deactivate itself? =
     60
     61This is a rare issue that the majority of users will never encounter.
     62
     63WP Funnel Manager requires a core function, [wp_get_current_user](https://developer.wordpress.org/reference/functions/wp_get_current_user/), to be re-defined in a certain way. Only one plugin at a time is allowed to re-define any given core function, [see this article for more explanation.](https://codex.wordpress.org/Pluggable_Functions) Therefore, if it is detected that another plugin is already re-defining this core function in its own way, WP Funnel Manager is unable to operate.
     64
     65By deactivating your other plugins one by one, and attemping to re-activate WP Funnel Manager, you can determine which one of your other plugins was causing the conflict with WP Funnel Manager. Once you have found it, you will be able to activate WP Funnel Manager and any other plugin not involved in the conflict.
     66
    5967= How do I suggest a new feature or submit a bug report? =
    6068
     
    6270
    6371== Changelog ==
     72
     73= 1.3.2 =
     74* Fixed the user roles, which were previously not working properly
    6475
    6576= 1.3.1 =
  • wp-funnel-manager/tags/1.3.2/src/funnel.php

    r2569689 r2716187  
    9393        add_filter( 'single_template_hierarchy', array( $this, 'apply_template_to_interior' ) );
    9494        add_action( 'wp_roles_init', array( $this, 'add_role' ) );
     95        add_filter( 'after_setup_theme', array( __CLASS__, 'regenerate_roles' ), 11 );
    9596
    9697        remove_filter( 'page_row_actions', array( $this, 'funnel_interior_edit' ), 10, 2 );
    9798        add_filter( 'post_row_actions', array( $this, 'funnel_interior_edit' ), 10, 2 );
     99    }
     100
     101    public static function regenerate_roles()
     102    {
     103        $roles = wp_roles();
     104        $roles->for_site( $roles->get_site_id() );
    98105    }
    99106
  • wp-funnel-manager/tags/1.3.2/wp-funnel-manager.php

    r2676816 r2716187  
    44 * Plugin URI:
    55 * Description: Organises content into multi-step funnels.
    6  * Version: 1.3.1
     6 * Version: 1.3.2
    77 * Requires at least: 5.8
    88 * Requires PHP: 5.6
     
    1818}
    1919
    20 if ( false )
     20if ( function_exists( 'wp_get_current_user' ) )
    2121{
    2222    add_action( 'plugins_loaded', 'wpfunnel_init_deactivation' );
     
    4747    function wpfunnel_deactivation_notice()
    4848    {
    49         $notice = sprintf(
    50             // Translators: 1: Required PHP version, 2: Current PHP version.
    51             '<strong>WP Funnel Manager</strong> requires PHP %1$s to run. This site uses %2$s, so the plugin has been <strong>deactivated</strong>.',
    52             '7.1',
    53             PHP_VERSION
    54         );
     49        $notice = '<strong>WP Funnel Manager</strong> has been <strong>deactivated</strong> due to the detection of an unresolvable conflict with another of your plugins. Please try again after deactivating your other plugins.';
    5550        ?>
    5651        <div class="updated"><p><?php echo wp_kses_post( $notice ); ?></p></div>
     
    6459    return false;
    6560}
     61else
     62{
     63    function wp_get_current_user()
     64    {
     65        return did_action( 'after_setup_theme' ) && ! doing_action( 'after_setup_theme' ) ? _wp_get_current_user() : new WP_User( 0, '' );
     66    }
     67}
    6668
    6769/**
  • wp-funnel-manager/trunk/readme.txt

    r2676816 r2716187  
    33Tags: funnel builder, page builder, sales funnels, landing page, marketing, sales, block, blocks, block editor, gutenberg, template, templates
    44Tested up to: 5.9
    5 Stable tag: 1.3.1
     5Stable tag: 1.3.2
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5757Once your active theme supports the template editor, all your funnels will be automatically restored.
    5858
     59= Why did the plugin automatically deactivate itself? =
     60
     61This is a rare issue that the majority of users will never encounter.
     62
     63WP Funnel Manager requires a core function, [wp_get_current_user](https://developer.wordpress.org/reference/functions/wp_get_current_user/), to be re-defined in a certain way. Only one plugin at a time is allowed to re-define any given core function, [see this article for more explanation.](https://codex.wordpress.org/Pluggable_Functions) Therefore, if it is detected that another plugin is already re-defining this core function in its own way, WP Funnel Manager is unable to operate.
     64
     65By deactivating your other plugins one by one, and attemping to re-activate WP Funnel Manager, you can determine which one of your other plugins was causing the conflict with WP Funnel Manager. Once you have found it, you will be able to activate WP Funnel Manager and any other plugin not involved in the conflict.
     66
    5967= How do I suggest a new feature or submit a bug report? =
    6068
     
    6270
    6371== Changelog ==
     72
     73= 1.3.2 =
     74* Fixed the user roles, which were previously not working properly
    6475
    6576= 1.3.1 =
  • wp-funnel-manager/trunk/src/funnel.php

    r2569689 r2716187  
    9393        add_filter( 'single_template_hierarchy', array( $this, 'apply_template_to_interior' ) );
    9494        add_action( 'wp_roles_init', array( $this, 'add_role' ) );
     95        add_filter( 'after_setup_theme', array( __CLASS__, 'regenerate_roles' ), 11 );
    9596
    9697        remove_filter( 'page_row_actions', array( $this, 'funnel_interior_edit' ), 10, 2 );
    9798        add_filter( 'post_row_actions', array( $this, 'funnel_interior_edit' ), 10, 2 );
     99    }
     100
     101    public static function regenerate_roles()
     102    {
     103        $roles = wp_roles();
     104        $roles->for_site( $roles->get_site_id() );
    98105    }
    99106
  • wp-funnel-manager/trunk/wp-funnel-manager.php

    r2676816 r2716187  
    44 * Plugin URI:
    55 * Description: Organises content into multi-step funnels.
    6  * Version: 1.3.1
     6 * Version: 1.3.2
    77 * Requires at least: 5.8
    88 * Requires PHP: 5.6
     
    1818}
    1919
    20 if ( false )
     20if ( function_exists( 'wp_get_current_user' ) )
    2121{
    2222    add_action( 'plugins_loaded', 'wpfunnel_init_deactivation' );
     
    4747    function wpfunnel_deactivation_notice()
    4848    {
    49         $notice = sprintf(
    50             // Translators: 1: Required PHP version, 2: Current PHP version.
    51             '<strong>WP Funnel Manager</strong> requires PHP %1$s to run. This site uses %2$s, so the plugin has been <strong>deactivated</strong>.',
    52             '7.1',
    53             PHP_VERSION
    54         );
     49        $notice = '<strong>WP Funnel Manager</strong> has been <strong>deactivated</strong> due to the detection of an unresolvable conflict with another of your plugins. Please try again after deactivating your other plugins.';
    5550        ?>
    5651        <div class="updated"><p><?php echo wp_kses_post( $notice ); ?></p></div>
     
    6459    return false;
    6560}
     61else
     62{
     63    function wp_get_current_user()
     64    {
     65        return did_action( 'after_setup_theme' ) && ! doing_action( 'after_setup_theme' ) ? _wp_get_current_user() : new WP_User( 0, '' );
     66    }
     67}
    6668
    6769/**
Note: See TracChangeset for help on using the changeset viewer.