fix: 更新器改用唯一类名 WPSlug_Updater;发版 1.2.1 #43
2 changed files with 5 additions and 5 deletions
|
|
@ -20,11 +20,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
if ( class_exists( 'WenPai_Updater' ) ) {
|
||||
if ( class_exists( 'WPSlug_Updater' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
class WenPai_Updater {
|
||||
class WPSlug_Updater {
|
||||
|
||||
/**
|
||||
* 更新器版本号。
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
Plugin Name: WPSlug
|
||||
Plugin URI: https://wpcy.com/slug
|
||||
Description: Advanced slug management plugin with Chinese Pinyin support and SEO optimization.
|
||||
Version: 1.2.0
|
||||
Version: 1.2.1
|
||||
Author: WPSlug
|
||||
Author URI: https://wpcy.com/slug
|
||||
License: GPL2
|
||||
|
|
@ -19,7 +19,7 @@ if (!defined("ABSPATH")) {
|
|||
exit();
|
||||
}
|
||||
|
||||
define("WPSLUG_VERSION", "1.2.0");
|
||||
define("WPSLUG_VERSION", "1.2.1");
|
||||
define("WPSLUG_PLUGIN_DIR", plugin_dir_path(__FILE__));
|
||||
define("WPSLUG_PLUGIN_URL", plugin_dir_url(__FILE__));
|
||||
define("WPSLUG_PLUGIN_BASENAME", plugin_basename(__FILE__));
|
||||
|
|
@ -56,7 +56,7 @@ class WPSlug
|
|||
$this->loadDependencies();
|
||||
$this->loadTextdomain();
|
||||
$this->core = new WPSlug_Core();
|
||||
new WenPai_Updater( WPSLUG_PLUGIN_BASENAME, WPSLUG_VERSION );
|
||||
new WPSlug_Updater( WPSLUG_PLUGIN_BASENAME, WPSLUG_VERSION );
|
||||
}
|
||||
|
||||
private function checkRequirements()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue