最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

themes - Wordpress customizer extremely slow, cant work in it

matteradmin8PV0评论

I have been adding a couple of settings to my Wordpress admin using this code:

$wp_customize->add_section( 'sectionname' , array(
        'title'      => __'Name',
        'priority'   => 80,
    ) );
$wp_customize->add_setting( 'settingsname' );
$wp_customize->add_control(
    new WP_Customize_Control(
        $wp_customize,
        'settingsname',
        array(
            'label'          => 'Text',
            'section'        => 'sectionname',
            'type'           => 'number',
        )
    )
);

Now the customizer is extremely, after i click a tab in the left handside menu, it freezes and after 30 seconds it loads what was clicked. No errors appears, and everything seems fine, except it is too slow.

I have tried increasing the memory on the server, and it is not that.

The super weird thing is that it is only in Chrome. I have tried this on multiple computers, on chrome it is all the same problem. But when using firefox it works fine.

Any pointers of what it can be would be greatly appreciated! Thanks!

Post a comment

comment list (0)

  1. No comments so far