Decryption: wp-includes/load.php

Source: Internet
Author: User

Description: Defines the functions required to load WP.
1) wp_unregister_globals (), close ' GLOBALS ', ' _get ', ' _post ', ' _cookie ', ' _request ', ' _server ', ' _env ', ' _files ', ' Table_ Global registry variables other than prefix '.
2) Wp_fix_server_vars (), prepare $_server variables for various installation methods (for example, in different environments such as IIS, Apache, etc.).
3) wp_check_php_mysql_versions (), check the PHP version, MySQL extension, and database drop-in.
4) wp_maintenance (), check whether WP is in maintenance mode (such as during the upgrade process), if the conditions are met, then terminate the program and generate a maintenance information.
5) Timer_start (), standard system time capture mode in PHP4.
6) timer_stop ($display = 0, $precision = 3), returns the time, and when $display = 1 o'clock output time.
7) Wp_debug_mode (), set the error handling method of PHP and WP debug mode.
8) Wp_set_lang_dir (), set constant Wp_lang_dir, which is the folder where the language files are located.
9) Wp_set_wpdb_vars (), sets the database table prefix and the format specifier for the database table column.
Wp_start_object_cache () to open the object cache. If the object-cache.php file exists in the Wp-content folder, use him as the extended object cache.
One) wp_not_installed (), if WP is not installed, start the installer.
Wp_get_mu_plugins (), returns the Must-use plug-in file array, the default Must-use plugin in the Wp-content/mu-plugins directory, if you want to modify the default directory, you can configure the wp-config.php file in the Wpmu_plugin_dir and Wpmu_plugin_url constants.
Wp_get_active_and_valid_plugins (), returns an array of valid plug-in files for activation, the default plugin in the Wp-content/plugins directory, if you want to modify the default directory, you can configure the wp-config.php file in the Wp_plugin_dir and Wp_plugin_url constants.
Wp_set_internal_encoding (), using the mb_internal_encoding () function to set the internal encoding method, the default setting is UTF-8.
Wp_magic_quotes (), add magic References to $_get, $_post, $_cookie, and $_server.
() Shutdown_action_hook (), triggering the mount point do_action (' Shutdown '), which runs before PHP closes execution.
Wp_clone ($object), clone the object. Cloning succeeds only in versions above PHP5, otherwise the original object is returned.
Is_admin (), returns whether the current request is in the management panel of WP.

Is_multisite (), returns whether multiple sites are supported.

Decryption: wp-includes/load.php

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.