Plugin Directory

Changeset 2179268


Ignore:
Timestamp:
10/24/2019 12:03:32 PM (6 years ago)
Author:
faina09
Message:

0.19

  • updated deactivate and uninstall
  • tested for WP5.2.4
Location:
wp-fjqgrid/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-fjqgrid/trunk/index.php

    r1989981 r2179268  
    44  Plugin URI: http://wordpress.org/extend/plugins/wp-fjqgrid/
    55  Description: jqGrid porting to wordpress. Use shortcode like <code>[wpf-jqgrid table='wpf_jqgrid_sample' idtable=1 caption='name to display' editable=true]</code>
    6   Version: 0.18
     6  Version: 0.19
    77  Author: faina09
    88  Author URI: http://profiles.wordpress.org/faina09
    99  License: GPLv2 or later
    1010 */
    11 $VER = '0.18';
     11$VER = '0.19';
    1212defined( 'ABSPATH' ) OR exit;
    1313
  • wp-fjqgrid/trunk/readme.txt

    r1989981 r2179268  
    44Donate link: http://goo.gl/QzIZZ
    55Requires at least: 3.5
    6 Tested up to: 5.0
     6Tested up to: 5.2.4
    77Stable tag: trunk
    88License: GPLv2 or later
     
    4545
    4646= The plugin is not working! What can I do? =
    47 Please send me the description of the error, and all the info you can about your configuration (WP, PHP and MySQL versions, configuration details,...).
     47Please send me the <strong>description of the error</strong>, and all the info you can about your configuration details.
     48To let me identify your issue, please answer the following Questions:
     49* What is your environment (WP, PHP and MySQL versions, machine type)?
     50* Can you activate the plugin?
     51* Can you access the configuration page of the plugin?
     52* Have you generated the sample table with an admin user logged in?
     53* Have you tested the shortcode in any page/post and what is the result?
     54* Have you enabled the log and have had a look at the log.txt file in the plugin directory?
    4855Useful may be also the MySQL script to create your table and the malfunctioning page html code.
    4956You can use WP plugin support page. I'll be happy to help you!
     
    8491
    8592== Changelog ==
     93= 0.19 =
     94* updated deactivate and uninstall
     95* tested for WP5.2.4
    8696= 0.18 =
    8797* tested for WP5.0
  • wp-fjqgrid/trunk/wpf-jqgrid.php

    r965677 r2179268  
    5959        static function fplugin_uninstall()
    6060        {
    61             //if uninstall not called from WordPress exit
    62             if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
    63                 exit();
    64                 //echo 'uninstalled';
    65             }
    66         }
    67 
    68         static function fplugin_deactivate()
    69         {
    70             if ( !current_user_can( 'activate_plugins' ) ) {
    71                 return;
    72             }
     61            $time = date( 'd-m-Y H:i:s ' );
    7362            $plugin = isset( $_REQUEST['plugin'] ) ? $_REQUEST['plugin'] : '';
    74             if ( $plugin == 'wpf-jqgrid/index.php' ) {
     63            file_put_contents( dirname( __FILE__ ) . '/log.txt', $time . ' : delete=' . $plugin . "\n", FILE_APPEND | FILE_TEXT );     
     64            if ( $plugin == 'wp-fjqgrid/index.php' ) {
    7565                // delete options on deactivate
    7666                $options = get_option( 'wpf-jqgrid' );
    77                 if ( $options['do_uninstall'] == 1 ) {
     67                file_put_contents( dirname( __FILE__ ) . '/log.txt', $time . ' : wpf-jqgrid delete option=' . $options['do_uninstall'] . "\n", FILE_APPEND | FILE_TEXT );
     68                if ( $options['do_uninstall'] == "1" ) {
    7869                    //drop tables in list
    7970                    global $wpdb;
    8071                    foreach ( explode( ",", $options['do_drop'] ) as $table ) {
    8172                        $wpdb->query( "DROP TABLE IF EXISTS `$table`" );
     73                        file_put_contents( dirname( __FILE__ ) . '/log.txt', $time . ' : wpf-jqgrid deleted table ' . $table . "\n", FILE_APPEND | FILE_TEXT );
    8274                    }
    8375                    //remove option entry
    8476                    delete_option( 'wpf-jqgrid' );
     77                    delete_site_option( 'wpf-jqgrid' );
    8578                }
    8679            }
     80        }
     81
     82        static function fplugin_deactivate()
     83        {
     84            if ( !current_user_can( 'activate_plugins' ) ) {
     85                return;
     86            }
     87            $time = date( 'd-m-Y H:i:s ' );
     88            file_put_contents( dirname( __FILE__ ) . '/log.txt', $time . ' : wpf-jqgrid DEACTIVATED' . "\n", FILE_APPEND | FILE_TEXT );
    8789        }
    8890
Note: See TracChangeset for help on using the changeset viewer.