Plugin Directory

Changeset 3454263


Ignore:
Timestamp:
02/05/2026 05:44:54 AM (8 weeks ago)
Author:
asmkc
Message:

Fix uninstall error and full Japanese readme update to 1.0.5

Location:
asmkc-schema
Files:
3 edited
7 copied

Legend:

Unmodified
Added
Removed
  • asmkc-schema/tags/1.0.5/README.txt

    r3454256 r3454263  
    44Requires at least: 6.0
    55Tested up to: 6.9
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.5
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    6767== Changelog ==
    6868
     69== Changelog ==
     70
     71= 1.0.5 =
     72* Fix: Fixed a critical error where uninstallation would fail due to an undefined variable in uninstall.php. (uninstall.php内での変数定義漏れによる重大なエラーを修正)
     73* Improvement: Added full Japanese translation to the readme and plugin description. (READMEと説明文の日本語化に対応)
     74
    6975= 1.0.2 =
    7076* Security: Fixed nonce verification to include wp_unslash() and sanitize_key().
  • asmkc-schema/tags/1.0.5/asmkc-schema.php

    r3454256 r3454263  
    44 * Plugin URI:  https://web.seikatu-labo.com/asmkc-schema-pro/
    55 * Description: A structured data (JSON-LD) management plugin specialized for Japanese SEO. It automatically controls duplicates with themes and other plugins to send correct information to Google.
    6  * Version:     1.0.4
     6 * Version:     1.0.5
    77 * Author:      ASMKC
    88 * Text Domain: asmkc-schema
  • asmkc-schema/tags/1.0.5/uninstall.php

    r3454224 r3454263  
    77// uninstall.php 定数が定義されていない場合は終了
    88if (!defined('WP_UNINSTALL_PLUGIN')) {
    9   exit;
     9    exit;
    1010}
    1111
     
    1616delete_option('asmkc_schema_control');
    1717
    18 // ※ post_meta (_asmkc_...) は膨大な数になる可能性があるため、
    19 //   通常のアンインストール処理では残すのが一般的(再インストール時の復元のため)。
    20 //   もし完全に消したい場合は以下のコメントアウトを外す。
     18// グローバル変数の宣言(これが必要!)
     19global $wpdb;
    2120
     21// post_meta (_asmkc_...) を削除
    2222// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Uninstall cleanup.
    2323$wpdb->query(
    24   $wpdb->prepare(
    25     "DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE %s",
    26     $wpdb->esc_like( '_asmkc_' ) . '%'
    27   )
     24    $wpdb->prepare(
     25        "DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE %s",
     26        $wpdb->esc_like( '_asmkc_' ) . '%'
     27    )
    2828);
  • asmkc-schema/trunk/README.txt

    r3454256 r3454263  
    44Requires at least: 6.0
    55Tested up to: 6.9
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.5
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    6767== Changelog ==
    6868
     69== Changelog ==
     70
     71= 1.0.5 =
     72* Fix: Fixed a critical error where uninstallation would fail due to an undefined variable in uninstall.php. (uninstall.php内での変数定義漏れによる重大なエラーを修正)
     73* Improvement: Added full Japanese translation to the readme and plugin description. (READMEと説明文の日本語化に対応)
     74
    6975= 1.0.2 =
    7076* Security: Fixed nonce verification to include wp_unslash() and sanitize_key().
  • asmkc-schema/trunk/asmkc-schema.php

    r3454256 r3454263  
    44 * Plugin URI:  https://web.seikatu-labo.com/asmkc-schema-pro/
    55 * Description: A structured data (JSON-LD) management plugin specialized for Japanese SEO. It automatically controls duplicates with themes and other plugins to send correct information to Google.
    6  * Version:     1.0.4
     6 * Version:     1.0.5
    77 * Author:      ASMKC
    88 * Text Domain: asmkc-schema
  • asmkc-schema/trunk/uninstall.php

    r3454224 r3454263  
    77// uninstall.php 定数が定義されていない場合は終了
    88if (!defined('WP_UNINSTALL_PLUGIN')) {
    9   exit;
     9    exit;
    1010}
    1111
     
    1616delete_option('asmkc_schema_control');
    1717
    18 // ※ post_meta (_asmkc_...) は膨大な数になる可能性があるため、
    19 //   通常のアンインストール処理では残すのが一般的(再インストール時の復元のため)。
    20 //   もし完全に消したい場合は以下のコメントアウトを外す。
     18// グローバル変数の宣言(これが必要!)
     19global $wpdb;
    2120
     21// post_meta (_asmkc_...) を削除
    2222// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Uninstall cleanup.
    2323$wpdb->query(
    24   $wpdb->prepare(
    25     "DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE %s",
    26     $wpdb->esc_like( '_asmkc_' ) . '%'
    27   )
     24    $wpdb->prepare(
     25        "DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE %s",
     26        $wpdb->esc_like( '_asmkc_' ) . '%'
     27    )
    2828);
Note: See TracChangeset for help on using the changeset viewer.