mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
feat: 提升PHP到7.0
This commit is contained in:
parent
2b7c57a427
commit
789c920032
2 changed files with 4 additions and 2 deletions
|
@ -498,7 +498,9 @@ HTML,
|
|||
public function admin_menu() {
|
||||
// 自定义名称
|
||||
add_filter( 'all_plugins', function ( $plugins ) {
|
||||
$plugins['wp-china-yes/wp-china-yes.php']['Name'] = $this->settings['custom_name'];
|
||||
if ( isset( $plugins['wp-china-yes/wp-china-yes.php'] ) ) {
|
||||
$plugins['wp-china-yes/wp-china-yes.php']['Name'] = $this->settings['custom_name'];
|
||||
}
|
||||
|
||||
return $plugins;
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue