fix(ns): root-qualify WP_* classes after PSR-4 move
Bare WP_REST_Server etc. resolve under AKSRT\* namespaces; prefix with \ for Balance REST and other type hints / constructors.
This commit is contained in:
1 parent
d3107a449b
commit
1e21911b03
9 files changed
+27
-27
No files matched your search
@@ -124,7 +124,7 @@ trait CategoryIntegrationGroups {
|
||||
/**
|
||||
* Customizer 注册(可选)
|
||||
*/
|
||||
public function customizer(WP_Customize_Manager $wp_customize): void {
|
||||
public function customizer(\WP_Customize_Manager $wp_customize): void {
|
||||
$wp_customize->add_setting('blogname', ['default' => get_bloginfo('name'), 'type' => 'option']);
|
||||
|
||||
$wp_customize->add_setting('aksrt_logo', [
|
||||
@@ -132,7 +132,7 @@ trait CategoryIntegrationGroups {
|
||||
'sanitize_callback' => 'esc_url_raw',
|
||||
'transport' => 'postMessage',
|
||||
]);
|
||||
$wp_customize->add_control(new WP_Customize_Image_Control(
|
||||
$wp_customize->add_control(new \WP_Customize_Image_Control(
|
||||
$wp_customize,
|
||||
'aksrt_logo',
|
||||
['label' => __('Logo', 'aksrt'), 'section' => 'title_tagline']
|
||||
@@ -143,7 +143,7 @@ trait CategoryIntegrationGroups {
|
||||
'sanitize_callback' => 'esc_url_raw',
|
||||
'transport' => 'postMessage',
|
||||
]);
|
||||
$wp_customize->add_control(new WP_Customize_Upload_Control(
|
||||
$wp_customize->add_control(new \WP_Customize_Upload_Control(
|
||||
$wp_customize,
|
||||
'aksrt_favicon',
|
||||
['label' => __('Favicon', 'aksrt'), 'section' => 'title_tagline']
|
||||
|
||||
Reference in new issue
Block a user