Plugin Directory

Changeset 3219355


Ignore:
Timestamp:
01/09/2025 02:24:39 AM (14 months ago)
Author:
xserverjp
Message:

v1.6.6 release

Location:
xserver-migrator/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • xserver-migrator/trunk/README.txt

    r3198622 r3219355  
    44Requires at least: 4.2.29
    55Tested up to: 6.7.1
    6 Stable tag: 1.6.5
     6Stable tag: 1.6.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949
    5050== Changelog ==
     51
     52= 1.6.6 =
     53* PHP8以上の場合にexec関数の利用可否を確認する処理を追加
    5154
    5255= 1.6.5 =
  • xserver-migrator/trunk/packages/class-xserver-migrator-activator.php

    r1990326 r3219355  
    1111    public static function activate()
    1212    {
     13        if ( ! function_exists( 'exec' ) && version_compare( PHP_VERSION, '8.0.0', '>=' ) ) {
     14            wp_die(
     15                'exec関数が使用できないためプラグインを有効化できません。',
     16                '',
     17                array(
     18                    'link_text' => __( 'Go Back' ),
     19                    'link_url'  => admin_url( 'plugins.php' ),
     20                )
     21            );
     22        }
    1323        if ( ! file_exists( XSERVER_MIGRATOR_WORKSPACE_DIR ) ) {
    1424            @mkdir( XSERVER_MIGRATOR_WORKSPACE_DIR );
  • xserver-migrator/trunk/packages/class-xserver-migrator.php

    r3131386 r3219355  
    2727        // アクション追加
    2828        $this->bind_actions();
     29
     30        if ( ! function_exists( 'exec' ) && version_compare( PHP_VERSION, '8.0.0', '>=' ) ) {
     31            require_once ABSPATH . 'wp-admin/includes/plugin.php';
     32            deactivate_plugins( XSERVER_MIGRATOR_PLUGIN_FILE_NAME );
     33
     34            return;
     35        }
    2936
    3037        if ( ! file_exists( XSERVER_MIGRATOR_WORKSPACE_DIR ) ) {
  • xserver-migrator/trunk/xserver-migrator.php

    r3163900 r3219355  
    1616 * Plugin URI:        https://ja.wordpress.org/plugins/xserver-migrator
    1717 * Description:       エックスサーバー株式会社が提供するレンタルサーバーサービス「エックスサーバー」「wpX Speed」の「WordPress簡単移行機能」専用のプラグインです。
    18  * Version:           1.6.5
     18 * Version:           1.6.6
    1919 * Author:            XServer Inc.
    2020 * Author URI:        https://www.xserver.ne.jp
     
    3131// プラグイン名
    3232define( 'XSERVER_MIGRATOR_PLUGIN_NAME', basename( plugin_dir_path( __FILE__ ) ) );
     33
     34// プラグインファイル名
     35define( 'XSERVER_MIGRATOR_PLUGIN_FILE_NAME', plugin_basename( __FILE__ ) );
    3336
    3437// プラグインディレクトリ
Note: See TracChangeset for help on using the changeset viewer.