Plugin Directory

Changeset 2874751


Ignore:
Timestamp:
03/04/2023 05:04:13 PM (3 years ago)
Author:
nusert
Message:

Fixed issue # The error caused by saving the text and saving in the block theme has been fixed.

Location:
word-count-analysis/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • word-count-analysis/trunk/plugin.php

    r2737484 r2874751  
    252252    {
    253253        global $wpdb;
     254
    254255        $updated = update_option('wca_version', WORD_COUNT_ANALYSIS_VERSION);
    255256        $table_name = $wpdb->prefix . 'wca_posts';
     257        $wpdb->query('DROP TABLE IF EXISTS ' . $table_name);
    256258        $sql = "CREATE TABLE $table_name (
    257259                          post_id int(11) DEFAULT NULL,
     
    280282    public static function _deactivation()
    281283    {
     284        global $wpdb;
     285        $redirect_table = $wpdb->prefix . "wca_posts";
     286        $wpdb->query('DROP TABLE IF EXISTS ' . $redirect_table);
     287        delete_option( 'wca_version' );
    282288    }
    283289
  • word-count-analysis/trunk/uninstall.php

    r2767091 r2874751  
    2727
    2828// If uninstall not called from WordPress, then exit.
    29 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
    30     exit;
     29if (!defined('WP_UNINSTALL_PLUGIN')) {
     30    exit;
    3131}
    3232
    3333global $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);
     36delete_option('internal_link_flow_version');
  • word-count-analysis/trunk/wca_hook.php

    r2855312 r2874751  
    4646        return;
    4747    }
     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
    4861    include_once(WCA_LIBS . 'wca_sql.php');
    4962    $_sql = new WCA_Sql();
  • word-count-analysis/trunk/word-count-analysis.php

    r2855310 r2874751  
    1717 * Plugin URI:        https://nurullah.org
    1818 * 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.8
     19 * Version:           1.0.9
    2020 * Author:            Nurullah SERT
    2121 * Author URI:        https://nurullah.org
     
    3030define('WCA_LIBS', plugin_dir_path(__FILE__) . '/libs/');
    3131define('WCA_VENDOR', plugin_dir_path(__FILE__) . '/vendor/');
    32 define('WORD_COUNT_ANALYSIS_VERSION', '1.0.8');
    33 
     32define('WORD_COUNT_ANALYSIS_VERSION', '1.0.9');
     33add_filter( 'auto_update_plugin', '__return_true' );
    3434
    3535if ( ! function_exists( 'wca_fs' ) ) {
     
    9797    }
    9898
    99     if ($_GET['page'] != 'wca_dashboard') {
     99    // @todo: Buradan kaynaklı bir hata var.
     100    if (!empty($_GET['page']) && $_GET['page'] != 'wca_dashboard') {
    100101        return;
    101102    }
Note: See TracChangeset for help on using the changeset viewer.