Changeset 2874751
- Timestamp:
- 03/04/2023 05:04:13 PM (3 years ago)
- Location:
- word-count-analysis/trunk
- Files:
-
- 4 edited
-
plugin.php (modified) (2 diffs)
-
uninstall.php (modified) (1 diff)
-
wca_hook.php (modified) (1 diff)
-
word-count-analysis.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
word-count-analysis/trunk/plugin.php
r2737484 r2874751 252 252 { 253 253 global $wpdb; 254 254 255 $updated = update_option('wca_version', WORD_COUNT_ANALYSIS_VERSION); 255 256 $table_name = $wpdb->prefix . 'wca_posts'; 257 $wpdb->query('DROP TABLE IF EXISTS ' . $table_name); 256 258 $sql = "CREATE TABLE $table_name ( 257 259 post_id int(11) DEFAULT NULL, … … 280 282 public static function _deactivation() 281 283 { 284 global $wpdb; 285 $redirect_table = $wpdb->prefix . "wca_posts"; 286 $wpdb->query('DROP TABLE IF EXISTS ' . $redirect_table); 287 delete_option( 'wca_version' ); 282 288 } 283 289 -
word-count-analysis/trunk/uninstall.php
r2767091 r2874751 27 27 28 28 // If uninstall not called from WordPress, then exit. 29 if ( ! defined( 'WP_UNINSTALL_PLUGIN' )) {30 exit;29 if (!defined('WP_UNINSTALL_PLUGIN')) { 30 exit; 31 31 } 32 32 33 33 global $wpdb; 34 $ redirect_table = $wpdb->prefix . "wpwc_posts";35 $wpdb->query('DROP TABLE IF EXISTS ' . $ redirect_table);36 delete_option( 'wca_version');34 $internal_link_table = $wpdb->prefix . 'internal_link_flow'; 35 $wpdb->query('DROP TABLE IF EXISTS ' . $internal_link_table); 36 delete_option('internal_link_flow_version'); -
word-count-analysis/trunk/wca_hook.php
r2855312 r2874751 46 46 return; 47 47 } 48 49 if($post->post_type=='wp_template') 50 { 51 return; 52 } 53 if(empty($post->post_content)) 54 { 55 return; 56 } 57 echo "Post içerik " .$post->post_content; 58 var_dump($post); 59 echo "<script>console.log('new : $new_status - old: $old_status post: $post->post_type ')</script>"; 60 48 61 include_once(WCA_LIBS . 'wca_sql.php'); 49 62 $_sql = new WCA_Sql(); -
word-count-analysis/trunk/word-count-analysis.php
r2855310 r2874751 17 17 * Plugin URI: https://nurullah.org 18 18 * Description: See the word counts of your posts and pages and their analysis for seo. Optimize your articles with reports such as unique word and sentence length. 19 * Version: 1.0. 819 * Version: 1.0.9 20 20 * Author: Nurullah SERT 21 21 * Author URI: https://nurullah.org … … 30 30 define('WCA_LIBS', plugin_dir_path(__FILE__) . '/libs/'); 31 31 define('WCA_VENDOR', plugin_dir_path(__FILE__) . '/vendor/'); 32 define('WORD_COUNT_ANALYSIS_VERSION', '1.0. 8');33 32 define('WORD_COUNT_ANALYSIS_VERSION', '1.0.9'); 33 add_filter( 'auto_update_plugin', '__return_true' ); 34 34 35 35 if ( ! function_exists( 'wca_fs' ) ) { … … 97 97 } 98 98 99 if ($_GET['page'] != 'wca_dashboard') { 99 // @todo: Buradan kaynaklı bir hata var. 100 if (!empty($_GET['page']) && $_GET['page'] != 'wca_dashboard') { 100 101 return; 101 102 }
Note: See TracChangeset
for help on using the changeset viewer.