Changeset 2179268
- Timestamp:
- 10/24/2019 12:03:32 PM (6 years ago)
- Location:
- wp-fjqgrid/trunk
- Files:
-
- 3 edited
-
index.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
wpf-jqgrid.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-fjqgrid/trunk/index.php
r1989981 r2179268 4 4 Plugin URI: http://wordpress.org/extend/plugins/wp-fjqgrid/ 5 5 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.1 86 Version: 0.19 7 7 Author: faina09 8 8 Author URI: http://profiles.wordpress.org/faina09 9 9 License: GPLv2 or later 10 10 */ 11 $VER = '0.1 8';11 $VER = '0.19'; 12 12 defined( 'ABSPATH' ) OR exit; 13 13 -
wp-fjqgrid/trunk/readme.txt
r1989981 r2179268 4 4 Donate link: http://goo.gl/QzIZZ 5 5 Requires at least: 3.5 6 Tested up to: 5. 06 Tested up to: 5.2.4 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 45 45 46 46 = 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,...). 47 Please send me the <strong>description of the error</strong>, and all the info you can about your configuration details. 48 To 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? 48 55 Useful may be also the MySQL script to create your table and the malfunctioning page html code. 49 56 You can use WP plugin support page. I'll be happy to help you! … … 84 91 85 92 == Changelog == 93 = 0.19 = 94 * updated deactivate and uninstall 95 * tested for WP5.2.4 86 96 = 0.18 = 87 97 * tested for WP5.0 -
wp-fjqgrid/trunk/wpf-jqgrid.php
r965677 r2179268 59 59 static function fplugin_uninstall() 60 60 { 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 ' ); 73 62 $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' ) { 75 65 // delete options on deactivate 76 66 $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" ) { 78 69 //drop tables in list 79 70 global $wpdb; 80 71 foreach ( explode( ",", $options['do_drop'] ) as $table ) { 81 72 $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 ); 82 74 } 83 75 //remove option entry 84 76 delete_option( 'wpf-jqgrid' ); 77 delete_site_option( 'wpf-jqgrid' ); 85 78 } 86 79 } 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 ); 87 89 } 88 90
Note: See TracChangeset
for help on using the changeset viewer.