Changeset 2716187
- Timestamp:
- 04/28/2022 11:44:42 PM (4 years ago)
- Location:
- wp-funnel-manager
- Files:
-
- 6 edited
- 1 copied
-
tags/1.3.2 (copied) (copied from wp-funnel-manager/trunk)
-
tags/1.3.2/readme.txt (modified) (3 diffs)
-
tags/1.3.2/src/funnel.php (modified) (1 diff)
-
tags/1.3.2/wp-funnel-manager.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/src/funnel.php (modified) (1 diff)
-
trunk/wp-funnel-manager.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-funnel-manager/tags/1.3.2/readme.txt
r2676816 r2716187 3 3 Tags: funnel builder, page builder, sales funnels, landing page, marketing, sales, block, blocks, block editor, gutenberg, template, templates 4 4 Tested up to: 5.9 5 Stable tag: 1.3. 15 Stable tag: 1.3.2 6 6 License: GPLv2 or later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 57 57 Once your active theme supports the template editor, all your funnels will be automatically restored. 58 58 59 = Why did the plugin automatically deactivate itself? = 60 61 This is a rare issue that the majority of users will never encounter. 62 63 WP 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 65 By 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 59 67 = How do I suggest a new feature or submit a bug report? = 60 68 … … 62 70 63 71 == Changelog == 72 73 = 1.3.2 = 74 * Fixed the user roles, which were previously not working properly 64 75 65 76 = 1.3.1 = -
wp-funnel-manager/tags/1.3.2/src/funnel.php
r2569689 r2716187 93 93 add_filter( 'single_template_hierarchy', array( $this, 'apply_template_to_interior' ) ); 94 94 add_action( 'wp_roles_init', array( $this, 'add_role' ) ); 95 add_filter( 'after_setup_theme', array( __CLASS__, 'regenerate_roles' ), 11 ); 95 96 96 97 remove_filter( 'page_row_actions', array( $this, 'funnel_interior_edit' ), 10, 2 ); 97 98 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() ); 98 105 } 99 106 -
wp-funnel-manager/tags/1.3.2/wp-funnel-manager.php
r2676816 r2716187 4 4 * Plugin URI: 5 5 * Description: Organises content into multi-step funnels. 6 * Version: 1.3. 16 * Version: 1.3.2 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 5.6 … … 18 18 } 19 19 20 if ( f alse)20 if ( function_exists( 'wp_get_current_user' ) ) 21 21 { 22 22 add_action( 'plugins_loaded', 'wpfunnel_init_deactivation' ); … … 47 47 function wpfunnel_deactivation_notice() 48 48 { 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.'; 55 50 ?> 56 51 <div class="updated"><p><?php echo wp_kses_post( $notice ); ?></p></div> … … 64 59 return false; 65 60 } 61 else 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 } 66 68 67 69 /** -
wp-funnel-manager/trunk/readme.txt
r2676816 r2716187 3 3 Tags: funnel builder, page builder, sales funnels, landing page, marketing, sales, block, blocks, block editor, gutenberg, template, templates 4 4 Tested up to: 5.9 5 Stable tag: 1.3. 15 Stable tag: 1.3.2 6 6 License: GPLv2 or later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 57 57 Once your active theme supports the template editor, all your funnels will be automatically restored. 58 58 59 = Why did the plugin automatically deactivate itself? = 60 61 This is a rare issue that the majority of users will never encounter. 62 63 WP 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 65 By 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 59 67 = How do I suggest a new feature or submit a bug report? = 60 68 … … 62 70 63 71 == Changelog == 72 73 = 1.3.2 = 74 * Fixed the user roles, which were previously not working properly 64 75 65 76 = 1.3.1 = -
wp-funnel-manager/trunk/src/funnel.php
r2569689 r2716187 93 93 add_filter( 'single_template_hierarchy', array( $this, 'apply_template_to_interior' ) ); 94 94 add_action( 'wp_roles_init', array( $this, 'add_role' ) ); 95 add_filter( 'after_setup_theme', array( __CLASS__, 'regenerate_roles' ), 11 ); 95 96 96 97 remove_filter( 'page_row_actions', array( $this, 'funnel_interior_edit' ), 10, 2 ); 97 98 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() ); 98 105 } 99 106 -
wp-funnel-manager/trunk/wp-funnel-manager.php
r2676816 r2716187 4 4 * Plugin URI: 5 5 * Description: Organises content into multi-step funnels. 6 * Version: 1.3. 16 * Version: 1.3.2 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 5.6 … … 18 18 } 19 19 20 if ( f alse)20 if ( function_exists( 'wp_get_current_user' ) ) 21 21 { 22 22 add_action( 'plugins_loaded', 'wpfunnel_init_deactivation' ); … … 47 47 function wpfunnel_deactivation_notice() 48 48 { 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.'; 55 50 ?> 56 51 <div class="updated"><p><?php echo wp_kses_post( $notice ); ?></p></div> … … 64 59 return false; 65 60 } 61 else 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 } 66 68 67 69 /**
Note: See TracChangeset
for help on using the changeset viewer.