Changeset 2690315
- Timestamp:
- 03/07/2022 06:57:31 PM (4 years ago)
- Location:
- simplestage/trunk
- Files:
-
- 3 edited
-
AdminSetup.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
simplestage.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simplestage/trunk/AdminSetup.php
r2690254 r2690315 16 16 add_filter( 'plugin_action_links_simplestage/simplestage.php', array( $this, 'settings_link' ) ); 17 17 add_action( 'admin_init', array( $this, 'register_settings' ) ); 18 add_action( 'admin_init', array( $this, 'maybe_redirect' ) ); 19 register_activation_hook( __FILE__, array( $this, 'activate' ) ); 20 } 21 22 23 /** 24 * since 1.0.3 25 */ 26 public function activate() 27 { 28 add_option( 'simplestage_do_activation_redirect', true ); 29 } 30 31 /** 32 * since 1.0.3 33 */ 34 public function maybe_redirect() 35 { 36 if ( get_option( 'simplestage_do_activation_redirect', false ) ) { 37 delete_option( 'simplestage_do_activation_redirect' ); 38 exit( wp_redirect( "options-general.php?page=simplestage" ) ); 39 } 18 40 } 19 41 -
simplestage/trunk/readme.txt
r2690254 r2690315 5 5 Tested up to: 5.9 6 6 Requires PHP: 5.6 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
simplestage/trunk/simplestage.php
r2690254 r2690315 4 4 * Plugin URI: https://simplestage.com 5 5 * Description: Add the Simplestage Web Request script to your site 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: SimpleStage 8 8 * Tested up to: 5.9
Note: See TracChangeset
for help on using the changeset viewer.