Plugin Directory

Changeset 1785777


Ignore:
Timestamp:
12/12/2017 09:25:19 PM (8 years ago)
Author:
properprofile
Message:

checkin of plugin v1.1.11

Location:
proper-profile
Files:
5 edited
22 copied

Legend:

Unmodified
Added
Removed
  • proper-profile/tags/1.1.11/README.txt

    r1784941 r1785777  
    44Requires at least: 4.4
    55Tested up to: 4.8.9
    6 Stable tag: 1.1.10
     6Stable tag: 1.1.11
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
     73= 1.1.11 =
     74* Redirect to options page after activation.
     75
    7376= 1.1.10 =
    7477* Fixed a broken upgrade button.
  • proper-profile/tags/1.1.11/admin/class-proper-profile-admin.php

    r1784941 r1785777  
    106106        wp_enqueue_script( $this->proper_profile . '-tooltipster', plugin_dir_url( __FILE__ ) . 'js/tooltipster.bundle.min.js', array( 'jquery' ), $this->version, false );
    107107
     108    }
     109
     110    public function redirect_after_activation(){
     111        if(get_option('proper_profile_activation_redirect')){
     112            delete_option('proper_profile_activation_redirect');
     113            if(!isset($_GET['activate-multi'])){
     114                wp_redirect(admin_url( 'options-general.php?page=proper-profile' ));
     115            }
     116        }
    108117    }
    109118
  • proper-profile/tags/1.1.11/includes/class-proper-profile-activator.php

    r1784272 r1785777  
    3232    public static function activate() {
    3333        self::update_database();
     34        add_option('proper_profile_activation_redirect',true);
    3435    }
    3536
  • proper-profile/tags/1.1.11/includes/class-proper-profile.php

    r1784698 r1785777  
    163163
    164164        $this->loader->add_action( 'admin_init', $plugin_admin, 'settings_init' );
     165        $this->loader->add_action( 'admin_init', $plugin_admin, 'redirect_after_activation' );
     166
    165167        $this->loader->add_action( 'admin_menu', $plugin_admin, 'proper_profile_options_page' );
    166168        $this->loader->add_action( 'admin_notices', $plugin_admin, 'admin_notices' );
  • proper-profile/tags/1.1.11/proper-profile.php

    r1784941 r1785777  
    1717 * Plugin URI:        http://example.com/proper-profile-uri/
    1818 * Description:       Automagically gets all available public data on your customers, so you can make better informed decisions.
    19  * Version:           1.1.10
     19 * Version:           1.1.11
    2020 * Author:            Proper Profile
    2121 * Author URI:        https://properprofile.com/
     
    3131}
    3232
    33 define( 'PROPER_PROFILE_VERSION', '1.1.10' );
     33define( 'PROPER_PROFILE_VERSION', '1.1.11' );
    3434define( 'PROPER_PROFILE_DB_VERSION', '1.1.6' );
    3535
  • proper-profile/trunk/README.txt

    r1784941 r1785777  
    44Requires at least: 4.4
    55Tested up to: 4.8.9
    6 Stable tag: 1.1.10
     6Stable tag: 1.1.11
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
     73= 1.1.11 =
     74* Redirect to options page after activation.
     75
    7376= 1.1.10 =
    7477* Fixed a broken upgrade button.
  • proper-profile/trunk/admin/class-proper-profile-admin.php

    r1784941 r1785777  
    106106        wp_enqueue_script( $this->proper_profile . '-tooltipster', plugin_dir_url( __FILE__ ) . 'js/tooltipster.bundle.min.js', array( 'jquery' ), $this->version, false );
    107107
     108    }
     109
     110    public function redirect_after_activation(){
     111        if(get_option('proper_profile_activation_redirect')){
     112            delete_option('proper_profile_activation_redirect');
     113            if(!isset($_GET['activate-multi'])){
     114                wp_redirect(admin_url( 'options-general.php?page=proper-profile' ));
     115            }
     116        }
    108117    }
    109118
  • proper-profile/trunk/includes/class-proper-profile-activator.php

    r1784272 r1785777  
    3232    public static function activate() {
    3333        self::update_database();
     34        add_option('proper_profile_activation_redirect',true);
    3435    }
    3536
  • proper-profile/trunk/includes/class-proper-profile.php

    r1784698 r1785777  
    163163
    164164        $this->loader->add_action( 'admin_init', $plugin_admin, 'settings_init' );
     165        $this->loader->add_action( 'admin_init', $plugin_admin, 'redirect_after_activation' );
     166
    165167        $this->loader->add_action( 'admin_menu', $plugin_admin, 'proper_profile_options_page' );
    166168        $this->loader->add_action( 'admin_notices', $plugin_admin, 'admin_notices' );
  • proper-profile/trunk/proper-profile.php

    r1784941 r1785777  
    1717 * Plugin URI:        http://example.com/proper-profile-uri/
    1818 * Description:       Automagically gets all available public data on your customers, so you can make better informed decisions.
    19  * Version:           1.1.10
     19 * Version:           1.1.11
    2020 * Author:            Proper Profile
    2121 * Author URI:        https://properprofile.com/
     
    3131}
    3232
    33 define( 'PROPER_PROFILE_VERSION', '1.1.10' );
     33define( 'PROPER_PROFILE_VERSION', '1.1.11' );
    3434define( 'PROPER_PROFILE_DB_VERSION', '1.1.6' );
    3535
Note: See TracChangeset for help on using the changeset viewer.