Plugin Directory

Changeset 2215300


Ignore:
Timestamp:
12/19/2019 06:39:29 PM (6 years ago)
Author:
metricthemes
Message:

removed redirect after plugin activation

Location:
munk-sites
Files:
48 added
2 edited

Legend:

Unmodified
Added
Removed
  • munk-sites/trunk/munk-sites.php

    r2182489 r2215300  
    2424 * Plugin URI:        https://github.com/metricthemes/munk-sites
    2525 * Description:       Import ready to use instant sites for your WP Munk Theme.
    26  * Version:           1.0.0
     26 * Version:           1.0.1
    2727 * Author:            MetricThemes
    2828 * Author URI:        https://metricthemes.com
     
    5757Munk_Sites::get_instance();
    5858new Munk_Sites_Ajax();
    59 
    60 /**
    61  * Redirect to import page
    62  *
    63  * @param $plugin
    64  * @param bool|false $network_wide
    65  */
    66 function munk_sites_plugin_activate( $plugin, $network_wide = false ) {
    67     if ( ! $network_wide &&  $plugin == plugin_basename( __FILE__ ) ) {
    68 
    69         $url = add_query_arg(
    70             array(         
    71                 'page' => 'munk-sites'
    72             ),
    73             admin_url('themes.php')
    74         );
    75 
    76         wp_redirect($url);
    77         die();
    78 
    79     }
    80 }
    81 add_action( 'activated_plugin', 'munk_sites_plugin_activate', 90, 2 );
  • munk-sites/trunk/readme.txt

    r2182489 r2215300  
    77Tested up to: 5.2
    88Requires PHP: 5.6
    9 Stable tag: 1.0.0
     9Stable tag: 1.0.1
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2929
    3030== Changelog ==
     31= 1.0.1 =
     32* Removed redirect on plugin activation
     33
    3134= 1.0.0 =
    3235* Initial Release
Note: See TracChangeset for help on using the changeset viewer.