Static wordpress pages: add plug-ins and admin bar

Source: Internet
Author: User
Tags php file

Since the page was cached by memcache, I did not expect to cache the admin-bar and auth_key in the header after login ....

To remove admin-bar, if your blog only has one administrator, you can go to the user settings to check whether the check box is displayed... If you are a multi-administrator, it would be difficult to do so. It would be too troublesome for everyone... You can directly modify the wp-include/admin-bar.php file and return false directly in the first function _ wp_admin_bar_init,

Like this:

If initialization fails, the admin bar will not be loaded, and 20 px blank lines will not be left on the page ....

 

For more information about automatic login, this problem is caused by caching the auth_key, as long as wp-content/plugins/duoshuo/WordPress. comment out the key array in the buildQuery method of the php file ..... Just like this

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.