author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:40:08 +0200 | |
changeset 21 | 48c4eec2b7e6 |
parent 19 | 3d72ae0968f4 |
child 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* Used to set up and fix common variables and include |
|
4 |
* the WordPress procedural and class library. |
|
5 |
* |
|
6 |
* Allows for some configuration in wp-config.php (see default-constants.php) |
|
7 |
* |
|
8 |
* @package WordPress |
|
9 |
*/ |
|
10 |
||
11 |
/** |
|
12 |
* Stores the location of the WordPress directory of functions, classes, and core content. |
|
13 |
* |
|
14 |
* @since 1.0.0 |
|
15 |
*/ |
|
16 |
define( 'WPINC', 'wp-includes' ); |
|
17 |
||
16 | 18 |
/** |
19 |
* Version information for the current WordPress release. |
|
20 |
* |
|
5 | 21 |
* These can't be directly globalized in version.php. When updating, |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
22 |
* include version.php from another installation and don't override |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
23 |
* these values if already set. |
16 | 24 |
* |
25 |
* @global string $wp_version The WordPress version string. |
|
26 |
* @global int $wp_db_version WordPress database version. |
|
27 |
* @global string $tinymce_version TinyMCE version. |
|
28 |
* @global string $required_php_version The required PHP version string. |
|
29 |
* @global string $required_mysql_version The required MySQL version string. |
|
30 |
* @global string $wp_local_package Locale code of the package. |
|
5 | 31 |
*/ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
32 |
global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package; |
16 | 33 |
require ABSPATH . WPINC . '/version.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
34 |
require ABSPATH . WPINC . '/compat.php'; |
16 | 35 |
require ABSPATH . WPINC . '/load.php'; |
36 |
||
37 |
// Check for the required PHP version and for the MySQL extension or a database drop-in. |
|
38 |
wp_check_php_mysql_versions(); |
|
39 |
||
40 |
// Include files required for initialization. |
|
41 |
require ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php'; |
|
42 |
require ABSPATH . WPINC . '/class-wp-fatal-error-handler.php'; |
|
43 |
require ABSPATH . WPINC . '/class-wp-recovery-mode-cookie-service.php'; |
|
44 |
require ABSPATH . WPINC . '/class-wp-recovery-mode-key-service.php'; |
|
45 |
require ABSPATH . WPINC . '/class-wp-recovery-mode-link-service.php'; |
|
46 |
require ABSPATH . WPINC . '/class-wp-recovery-mode-email-service.php'; |
|
47 |
require ABSPATH . WPINC . '/class-wp-recovery-mode.php'; |
|
48 |
require ABSPATH . WPINC . '/error-protection.php'; |
|
49 |
require ABSPATH . WPINC . '/default-constants.php'; |
|
50 |
require_once ABSPATH . WPINC . '/plugin.php'; |
|
0 | 51 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
52 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
53 |
* If not already configured, `$blog_id` will default to 1 in a single site |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
54 |
* configuration. In multisite, it will be overridden by default in ms-settings.php. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
55 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
56 |
* @since 2.0.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
57 |
* |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
58 |
* @global int $blog_id |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
59 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
60 |
global $blog_id; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
61 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
62 |
// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE. |
0 | 63 |
wp_initial_constants(); |
64 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
65 |
// Register the shutdown handler for fatal errors as soon as possible. |
9 | 66 |
wp_register_fatal_error_handler(); |
67 |
||
0 | 68 |
// WordPress calculates offsets from UTC. |
16 | 69 |
// phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set |
0 | 70 |
date_default_timezone_set( 'UTC' ); |
71 |
||
72 |
// Standardize $_SERVER variables across setups. |
|
73 |
wp_fix_server_vars(); |
|
74 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
75 |
// Check if the site is in maintenance mode. |
0 | 76 |
wp_maintenance(); |
77 |
||
78 |
// Start loading timer. |
|
79 |
timer_start(); |
|
80 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
81 |
// Check if WP_DEBUG mode is enabled. |
0 | 82 |
wp_debug_mode(); |
83 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
84 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
85 |
* Filters whether to enable loading of the advanced-cache.php drop-in. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
86 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
87 |
* This filter runs before it can be used by plugins. It is designed for non-web |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
88 |
* run-times. If false is returned, advanced-cache.php will never be loaded. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
89 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
90 |
* @since 4.6.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
91 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
92 |
* @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present). |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
93 |
* Default true. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
94 |
*/ |
16 | 95 |
if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) && file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) ) { |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
96 |
// For an advanced caching plugin to use. Uses a static drop-in because you would only want one. |
16 | 97 |
include WP_CONTENT_DIR . '/advanced-cache.php'; |
0 | 98 |
|
16 | 99 |
// Re-initialize any hooks added manually by advanced-cache.php. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
100 |
if ( $wp_filter ) { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
101 |
$wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
102 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
103 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
104 |
|
0 | 105 |
// Define WP_LANG_DIR if not set. |
106 |
wp_set_lang_dir(); |
|
107 |
||
108 |
// Load early WordPress files. |
|
16 | 109 |
require ABSPATH . WPINC . '/class-wp-list-util.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
110 |
require ABSPATH . WPINC . '/class-wp-token-map.php'; |
16 | 111 |
require ABSPATH . WPINC . '/formatting.php'; |
112 |
require ABSPATH . WPINC . '/meta.php'; |
|
113 |
require ABSPATH . WPINC . '/functions.php'; |
|
114 |
require ABSPATH . WPINC . '/class-wp-meta-query.php'; |
|
115 |
require ABSPATH . WPINC . '/class-wp-matchesmapregex.php'; |
|
116 |
require ABSPATH . WPINC . '/class-wp.php'; |
|
117 |
require ABSPATH . WPINC . '/class-wp-error.php'; |
|
118 |
require ABSPATH . WPINC . '/pomo/mo.php'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
119 |
require ABSPATH . WPINC . '/l10n/class-wp-translation-controller.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
120 |
require ABSPATH . WPINC . '/l10n/class-wp-translations.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
121 |
require ABSPATH . WPINC . '/l10n/class-wp-translation-file.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
122 |
require ABSPATH . WPINC . '/l10n/class-wp-translation-file-mo.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
123 |
require ABSPATH . WPINC . '/l10n/class-wp-translation-file-php.php'; |
0 | 124 |
|
16 | 125 |
/** |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
126 |
* @since 0.71 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
127 |
* |
16 | 128 |
* @global wpdb $wpdb WordPress database abstraction object. |
129 |
*/ |
|
130 |
global $wpdb; |
|
0 | 131 |
// Include the wpdb class and, if present, a db.php database drop-in. |
132 |
require_wp_db(); |
|
133 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
134 |
/** |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
135 |
* @since 3.3.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
136 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
137 |
* @global string $table_prefix The database table prefix. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
138 |
*/ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
139 |
$GLOBALS['table_prefix'] = $table_prefix; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
140 |
|
0 | 141 |
// Set the database table prefix and the format specifiers for database table columns. |
142 |
wp_set_wpdb_vars(); |
|
143 |
||
144 |
// Start the WordPress object cache, or an external object cache if the drop-in is present. |
|
145 |
wp_start_object_cache(); |
|
146 |
||
147 |
// Attach the default filters. |
|
16 | 148 |
require ABSPATH . WPINC . '/default-filters.php'; |
0 | 149 |
|
150 |
// Initialize multisite if enabled. |
|
151 |
if ( is_multisite() ) { |
|
16 | 152 |
require ABSPATH . WPINC . '/class-wp-site-query.php'; |
153 |
require ABSPATH . WPINC . '/class-wp-network-query.php'; |
|
154 |
require ABSPATH . WPINC . '/ms-blogs.php'; |
|
155 |
require ABSPATH . WPINC . '/ms-settings.php'; |
|
0 | 156 |
} elseif ( ! defined( 'MULTISITE' ) ) { |
157 |
define( 'MULTISITE', false ); |
|
158 |
} |
|
159 |
||
160 |
register_shutdown_function( 'shutdown_action_hook' ); |
|
161 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
162 |
// Stop most of WordPress from being loaded if SHORTINIT is enabled. |
9 | 163 |
if ( SHORTINIT ) { |
0 | 164 |
return false; |
9 | 165 |
} |
0 | 166 |
|
167 |
// Load the L10n library. |
|
16 | 168 |
require_once ABSPATH . WPINC . '/l10n.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
169 |
require_once ABSPATH . WPINC . '/class-wp-textdomain-registry.php'; |
16 | 170 |
require_once ABSPATH . WPINC . '/class-wp-locale.php'; |
171 |
require_once ABSPATH . WPINC . '/class-wp-locale-switcher.php'; |
|
0 | 172 |
|
173 |
// Run the installer if WordPress is not installed. |
|
174 |
wp_not_installed(); |
|
175 |
||
176 |
// Load most of WordPress. |
|
16 | 177 |
require ABSPATH . WPINC . '/class-wp-walker.php'; |
178 |
require ABSPATH . WPINC . '/class-wp-ajax-response.php'; |
|
179 |
require ABSPATH . WPINC . '/capabilities.php'; |
|
180 |
require ABSPATH . WPINC . '/class-wp-roles.php'; |
|
181 |
require ABSPATH . WPINC . '/class-wp-role.php'; |
|
182 |
require ABSPATH . WPINC . '/class-wp-user.php'; |
|
183 |
require ABSPATH . WPINC . '/class-wp-query.php'; |
|
184 |
require ABSPATH . WPINC . '/query.php'; |
|
185 |
require ABSPATH . WPINC . '/class-wp-date-query.php'; |
|
186 |
require ABSPATH . WPINC . '/theme.php'; |
|
187 |
require ABSPATH . WPINC . '/class-wp-theme.php'; |
|
19 | 188 |
require ABSPATH . WPINC . '/class-wp-theme-json-schema.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
189 |
require ABSPATH . WPINC . '/class-wp-theme-json-data.php'; |
18 | 190 |
require ABSPATH . WPINC . '/class-wp-theme-json.php'; |
191 |
require ABSPATH . WPINC . '/class-wp-theme-json-resolver.php'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
192 |
require ABSPATH . WPINC . '/class-wp-duotone.php'; |
19 | 193 |
require ABSPATH . WPINC . '/global-styles-and-settings.php'; |
18 | 194 |
require ABSPATH . WPINC . '/class-wp-block-template.php'; |
195 |
require ABSPATH . WPINC . '/block-template-utils.php'; |
|
196 |
require ABSPATH . WPINC . '/block-template.php'; |
|
197 |
require ABSPATH . WPINC . '/theme-templates.php'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
198 |
require ABSPATH . WPINC . '/theme-previews.php'; |
16 | 199 |
require ABSPATH . WPINC . '/template.php'; |
18 | 200 |
require ABSPATH . WPINC . '/https-detection.php'; |
201 |
require ABSPATH . WPINC . '/https-migration.php'; |
|
16 | 202 |
require ABSPATH . WPINC . '/class-wp-user-request.php'; |
203 |
require ABSPATH . WPINC . '/user.php'; |
|
204 |
require ABSPATH . WPINC . '/class-wp-user-query.php'; |
|
205 |
require ABSPATH . WPINC . '/class-wp-session-tokens.php'; |
|
206 |
require ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php'; |
|
207 |
require ABSPATH . WPINC . '/general-template.php'; |
|
208 |
require ABSPATH . WPINC . '/link-template.php'; |
|
209 |
require ABSPATH . WPINC . '/author-template.php'; |
|
18 | 210 |
require ABSPATH . WPINC . '/robots-template.php'; |
16 | 211 |
require ABSPATH . WPINC . '/post.php'; |
212 |
require ABSPATH . WPINC . '/class-walker-page.php'; |
|
213 |
require ABSPATH . WPINC . '/class-walker-page-dropdown.php'; |
|
214 |
require ABSPATH . WPINC . '/class-wp-post-type.php'; |
|
215 |
require ABSPATH . WPINC . '/class-wp-post.php'; |
|
216 |
require ABSPATH . WPINC . '/post-template.php'; |
|
217 |
require ABSPATH . WPINC . '/revision.php'; |
|
218 |
require ABSPATH . WPINC . '/post-formats.php'; |
|
219 |
require ABSPATH . WPINC . '/post-thumbnail-template.php'; |
|
220 |
require ABSPATH . WPINC . '/category.php'; |
|
221 |
require ABSPATH . WPINC . '/class-walker-category.php'; |
|
222 |
require ABSPATH . WPINC . '/class-walker-category-dropdown.php'; |
|
223 |
require ABSPATH . WPINC . '/category-template.php'; |
|
224 |
require ABSPATH . WPINC . '/comment.php'; |
|
225 |
require ABSPATH . WPINC . '/class-wp-comment.php'; |
|
226 |
require ABSPATH . WPINC . '/class-wp-comment-query.php'; |
|
227 |
require ABSPATH . WPINC . '/class-walker-comment.php'; |
|
228 |
require ABSPATH . WPINC . '/comment-template.php'; |
|
229 |
require ABSPATH . WPINC . '/rewrite.php'; |
|
230 |
require ABSPATH . WPINC . '/class-wp-rewrite.php'; |
|
231 |
require ABSPATH . WPINC . '/feed.php'; |
|
232 |
require ABSPATH . WPINC . '/bookmark.php'; |
|
233 |
require ABSPATH . WPINC . '/bookmark-template.php'; |
|
234 |
require ABSPATH . WPINC . '/kses.php'; |
|
235 |
require ABSPATH . WPINC . '/cron.php'; |
|
236 |
require ABSPATH . WPINC . '/deprecated.php'; |
|
237 |
require ABSPATH . WPINC . '/script-loader.php'; |
|
238 |
require ABSPATH . WPINC . '/taxonomy.php'; |
|
239 |
require ABSPATH . WPINC . '/class-wp-taxonomy.php'; |
|
240 |
require ABSPATH . WPINC . '/class-wp-term.php'; |
|
241 |
require ABSPATH . WPINC . '/class-wp-term-query.php'; |
|
242 |
require ABSPATH . WPINC . '/class-wp-tax-query.php'; |
|
243 |
require ABSPATH . WPINC . '/update.php'; |
|
244 |
require ABSPATH . WPINC . '/canonical.php'; |
|
245 |
require ABSPATH . WPINC . '/shortcodes.php'; |
|
246 |
require ABSPATH . WPINC . '/embed.php'; |
|
247 |
require ABSPATH . WPINC . '/class-wp-embed.php'; |
|
248 |
require ABSPATH . WPINC . '/class-wp-oembed.php'; |
|
249 |
require ABSPATH . WPINC . '/class-wp-oembed-controller.php'; |
|
250 |
require ABSPATH . WPINC . '/media.php'; |
|
251 |
require ABSPATH . WPINC . '/http.php'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
252 |
require ABSPATH . WPINC . '/html-api/html5-named-character-references.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
253 |
require ABSPATH . WPINC . '/html-api/class-wp-html-attribute-token.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
254 |
require ABSPATH . WPINC . '/html-api/class-wp-html-span.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
255 |
require ABSPATH . WPINC . '/html-api/class-wp-html-text-replacement.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
256 |
require ABSPATH . WPINC . '/html-api/class-wp-html-decoder.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
257 |
require ABSPATH . WPINC . '/html-api/class-wp-html-tag-processor.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
258 |
require ABSPATH . WPINC . '/html-api/class-wp-html-unsupported-exception.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
259 |
require ABSPATH . WPINC . '/html-api/class-wp-html-active-formatting-elements.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
260 |
require ABSPATH . WPINC . '/html-api/class-wp-html-open-elements.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
261 |
require ABSPATH . WPINC . '/html-api/class-wp-html-token.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
262 |
require ABSPATH . WPINC . '/html-api/class-wp-html-stack-event.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
263 |
require ABSPATH . WPINC . '/html-api/class-wp-html-processor-state.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
264 |
require ABSPATH . WPINC . '/html-api/class-wp-html-processor.php'; |
19 | 265 |
require ABSPATH . WPINC . '/class-wp-http.php'; |
16 | 266 |
require ABSPATH . WPINC . '/class-wp-http-streams.php'; |
267 |
require ABSPATH . WPINC . '/class-wp-http-curl.php'; |
|
268 |
require ABSPATH . WPINC . '/class-wp-http-proxy.php'; |
|
269 |
require ABSPATH . WPINC . '/class-wp-http-cookie.php'; |
|
270 |
require ABSPATH . WPINC . '/class-wp-http-encoding.php'; |
|
271 |
require ABSPATH . WPINC . '/class-wp-http-response.php'; |
|
272 |
require ABSPATH . WPINC . '/class-wp-http-requests-response.php'; |
|
273 |
require ABSPATH . WPINC . '/class-wp-http-requests-hooks.php'; |
|
274 |
require ABSPATH . WPINC . '/widgets.php'; |
|
275 |
require ABSPATH . WPINC . '/class-wp-widget.php'; |
|
276 |
require ABSPATH . WPINC . '/class-wp-widget-factory.php'; |
|
19 | 277 |
require ABSPATH . WPINC . '/nav-menu-template.php'; |
16 | 278 |
require ABSPATH . WPINC . '/nav-menu.php'; |
279 |
require ABSPATH . WPINC . '/admin-bar.php'; |
|
18 | 280 |
require ABSPATH . WPINC . '/class-wp-application-passwords.php'; |
16 | 281 |
require ABSPATH . WPINC . '/rest-api.php'; |
282 |
require ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php'; |
|
283 |
require ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php'; |
|
284 |
require ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php'; |
|
285 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-controller.php'; |
|
286 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-posts-controller.php'; |
|
287 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-attachments-controller.php'; |
|
19 | 288 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-global-styles-controller.php'; |
16 | 289 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-types-controller.php'; |
290 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-statuses-controller.php'; |
|
291 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-revisions-controller.php'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
292 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
293 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-template-revisions-controller.php'; |
16 | 294 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-autosaves-controller.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
295 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-template-autosaves-controller.php'; |
16 | 296 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-taxonomies-controller.php'; |
297 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-terms-controller.php'; |
|
19 | 298 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-menu-items-controller.php'; |
299 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-menus-controller.php'; |
|
300 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-menu-locations-controller.php'; |
|
16 | 301 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-users-controller.php'; |
302 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-comments-controller.php'; |
|
303 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-search-controller.php'; |
|
304 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-blocks-controller.php'; |
|
305 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-types-controller.php'; |
|
306 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-renderer-controller.php'; |
|
307 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php'; |
|
308 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-themes-controller.php'; |
|
309 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-plugins-controller.php'; |
|
310 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-directory-controller.php'; |
|
19 | 311 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php'; |
18 | 312 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php'; |
19 | 313 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-patterns-controller.php'; |
314 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php'; |
|
18 | 315 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-application-passwords-controller.php'; |
316 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-site-health-controller.php'; |
|
317 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-sidebars-controller.php'; |
|
318 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-widget-types-controller.php'; |
|
319 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-widgets-controller.php'; |
|
320 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-templates-controller.php'; |
|
19 | 321 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-url-details-controller.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
322 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-navigation-fallback-controller.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
323 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-font-families-controller.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
324 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-font-faces-controller.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
325 |
require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-font-collections-controller.php'; |
16 | 326 |
require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-meta-fields.php'; |
327 |
require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-comment-meta-fields.php'; |
|
328 |
require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-post-meta-fields.php'; |
|
329 |
require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-term-meta-fields.php'; |
|
330 |
require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-user-meta-fields.php'; |
|
331 |
require ABSPATH . WPINC . '/rest-api/search/class-wp-rest-search-handler.php'; |
|
332 |
require ABSPATH . WPINC . '/rest-api/search/class-wp-rest-post-search-handler.php'; |
|
18 | 333 |
require ABSPATH . WPINC . '/rest-api/search/class-wp-rest-term-search-handler.php'; |
334 |
require ABSPATH . WPINC . '/rest-api/search/class-wp-rest-post-format-search-handler.php'; |
|
16 | 335 |
require ABSPATH . WPINC . '/sitemaps.php'; |
336 |
require ABSPATH . WPINC . '/sitemaps/class-wp-sitemaps.php'; |
|
337 |
require ABSPATH . WPINC . '/sitemaps/class-wp-sitemaps-index.php'; |
|
338 |
require ABSPATH . WPINC . '/sitemaps/class-wp-sitemaps-provider.php'; |
|
339 |
require ABSPATH . WPINC . '/sitemaps/class-wp-sitemaps-registry.php'; |
|
340 |
require ABSPATH . WPINC . '/sitemaps/class-wp-sitemaps-renderer.php'; |
|
341 |
require ABSPATH . WPINC . '/sitemaps/class-wp-sitemaps-stylesheet.php'; |
|
342 |
require ABSPATH . WPINC . '/sitemaps/providers/class-wp-sitemaps-posts.php'; |
|
343 |
require ABSPATH . WPINC . '/sitemaps/providers/class-wp-sitemaps-taxonomies.php'; |
|
344 |
require ABSPATH . WPINC . '/sitemaps/providers/class-wp-sitemaps-users.php'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
345 |
require ABSPATH . WPINC . '/class-wp-block-bindings-source.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
346 |
require ABSPATH . WPINC . '/class-wp-block-bindings-registry.php'; |
18 | 347 |
require ABSPATH . WPINC . '/class-wp-block-editor-context.php'; |
16 | 348 |
require ABSPATH . WPINC . '/class-wp-block-type.php'; |
349 |
require ABSPATH . WPINC . '/class-wp-block-pattern-categories-registry.php'; |
|
350 |
require ABSPATH . WPINC . '/class-wp-block-patterns-registry.php'; |
|
351 |
require ABSPATH . WPINC . '/class-wp-block-styles-registry.php'; |
|
352 |
require ABSPATH . WPINC . '/class-wp-block-type-registry.php'; |
|
353 |
require ABSPATH . WPINC . '/class-wp-block.php'; |
|
354 |
require ABSPATH . WPINC . '/class-wp-block-list.php'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
355 |
require ABSPATH . WPINC . '/class-wp-block-parser-block.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
356 |
require ABSPATH . WPINC . '/class-wp-block-parser-frame.php'; |
16 | 357 |
require ABSPATH . WPINC . '/class-wp-block-parser.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
358 |
require ABSPATH . WPINC . '/class-wp-classic-to-block-menu-converter.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
359 |
require ABSPATH . WPINC . '/class-wp-navigation-fallback.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
360 |
require ABSPATH . WPINC . '/block-bindings.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
361 |
require ABSPATH . WPINC . '/block-bindings/pattern-overrides.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
362 |
require ABSPATH . WPINC . '/block-bindings/post-meta.php'; |
16 | 363 |
require ABSPATH . WPINC . '/blocks.php'; |
364 |
require ABSPATH . WPINC . '/blocks/index.php'; |
|
18 | 365 |
require ABSPATH . WPINC . '/block-editor.php'; |
16 | 366 |
require ABSPATH . WPINC . '/block-patterns.php'; |
18 | 367 |
require ABSPATH . WPINC . '/class-wp-block-supports.php'; |
19 | 368 |
require ABSPATH . WPINC . '/block-supports/utils.php'; |
18 | 369 |
require ABSPATH . WPINC . '/block-supports/align.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
370 |
require ABSPATH . WPINC . '/block-supports/custom-classname.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
371 |
require ABSPATH . WPINC . '/block-supports/generated-classname.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
372 |
require ABSPATH . WPINC . '/block-supports/settings.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
373 |
require ABSPATH . WPINC . '/block-supports/elements.php'; |
18 | 374 |
require ABSPATH . WPINC . '/block-supports/colors.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
375 |
require ABSPATH . WPINC . '/block-supports/typography.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
376 |
require ABSPATH . WPINC . '/block-supports/border.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
377 |
require ABSPATH . WPINC . '/block-supports/layout.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
378 |
require ABSPATH . WPINC . '/block-supports/position.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
379 |
require ABSPATH . WPINC . '/block-supports/spacing.php'; |
19 | 380 |
require ABSPATH . WPINC . '/block-supports/dimensions.php'; |
18 | 381 |
require ABSPATH . WPINC . '/block-supports/duotone.php'; |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
382 |
require ABSPATH . WPINC . '/block-supports/shadow.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
383 |
require ABSPATH . WPINC . '/block-supports/background.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
384 |
require ABSPATH . WPINC . '/block-supports/block-style-variations.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
385 |
require ABSPATH . WPINC . '/style-engine.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
386 |
require ABSPATH . WPINC . '/style-engine/class-wp-style-engine.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
387 |
require ABSPATH . WPINC . '/style-engine/class-wp-style-engine-css-declarations.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
388 |
require ABSPATH . WPINC . '/style-engine/class-wp-style-engine-css-rule.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
389 |
require ABSPATH . WPINC . '/style-engine/class-wp-style-engine-css-rules-store.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
390 |
require ABSPATH . WPINC . '/style-engine/class-wp-style-engine-processor.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
391 |
require ABSPATH . WPINC . '/fonts/class-wp-font-face-resolver.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
392 |
require ABSPATH . WPINC . '/fonts/class-wp-font-collection.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
393 |
require ABSPATH . WPINC . '/fonts/class-wp-font-face.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
394 |
require ABSPATH . WPINC . '/fonts/class-wp-font-library.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
395 |
require ABSPATH . WPINC . '/fonts/class-wp-font-utils.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
396 |
require ABSPATH . WPINC . '/fonts.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
397 |
require ABSPATH . WPINC . '/class-wp-script-modules.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
398 |
require ABSPATH . WPINC . '/script-modules.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
399 |
require ABSPATH . WPINC . '/interactivity-api/class-wp-interactivity-api.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
400 |
require ABSPATH . WPINC . '/interactivity-api/class-wp-interactivity-api-directives-processor.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
401 |
require ABSPATH . WPINC . '/interactivity-api/interactivity-api.php'; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
402 |
require ABSPATH . WPINC . '/class-wp-plugin-dependencies.php'; |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
403 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
404 |
add_action( 'after_setup_theme', array( wp_script_modules(), 'add_hooks' ) ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
405 |
add_action( 'after_setup_theme', array( wp_interactivity(), 'add_hooks' ) ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
406 |
|
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
407 |
/** |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
408 |
* @since 3.3.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
409 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
410 |
* @global WP_Embed $wp_embed WordPress Embed object. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
411 |
*/ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
412 |
$GLOBALS['wp_embed'] = new WP_Embed(); |
0 | 413 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
414 |
/** |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
415 |
* WordPress Textdomain Registry object. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
416 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
417 |
* Used to support just-in-time translations for manually loaded text domains. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
418 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
419 |
* @since 6.1.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
420 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
421 |
* @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
422 |
*/ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
423 |
$GLOBALS['wp_textdomain_registry'] = new WP_Textdomain_Registry(); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
424 |
$GLOBALS['wp_textdomain_registry']->init(); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
425 |
|
0 | 426 |
// Load multisite-specific files. |
427 |
if ( is_multisite() ) { |
|
16 | 428 |
require ABSPATH . WPINC . '/ms-functions.php'; |
429 |
require ABSPATH . WPINC . '/ms-default-filters.php'; |
|
430 |
require ABSPATH . WPINC . '/ms-deprecated.php'; |
|
0 | 431 |
} |
432 |
||
433 |
// Define constants that rely on the API to obtain the default value. |
|
434 |
// Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in. |
|
435 |
wp_plugin_directory_constants(); |
|
436 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
437 |
/** |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
438 |
* @since 3.9.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
439 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
440 |
* @global array $wp_plugin_paths |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
441 |
*/ |
5 | 442 |
$GLOBALS['wp_plugin_paths'] = array(); |
443 |
||
0 | 444 |
// Load must-use plugins. |
445 |
foreach ( wp_get_mu_plugins() as $mu_plugin ) { |
|
19 | 446 |
$_wp_plugin_file = $mu_plugin; |
16 | 447 |
include_once $mu_plugin; |
19 | 448 |
$mu_plugin = $_wp_plugin_file; // Avoid stomping of the $mu_plugin variable in a plugin. |
9 | 449 |
|
450 |
/** |
|
451 |
* Fires once a single must-use plugin has loaded. |
|
452 |
* |
|
453 |
* @since 5.1.0 |
|
454 |
* |
|
455 |
* @param string $mu_plugin Full path to the plugin's main file. |
|
456 |
*/ |
|
457 |
do_action( 'mu_plugin_loaded', $mu_plugin ); |
|
0 | 458 |
} |
19 | 459 |
unset( $mu_plugin, $_wp_plugin_file ); |
0 | 460 |
|
461 |
// Load network activated plugins. |
|
462 |
if ( is_multisite() ) { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
463 |
foreach ( wp_get_active_network_plugins() as $network_plugin ) { |
5 | 464 |
wp_register_plugin_realpath( $network_plugin ); |
19 | 465 |
|
466 |
$_wp_plugin_file = $network_plugin; |
|
16 | 467 |
include_once $network_plugin; |
19 | 468 |
$network_plugin = $_wp_plugin_file; // Avoid stomping of the $network_plugin variable in a plugin. |
9 | 469 |
|
470 |
/** |
|
471 |
* Fires once a single network-activated plugin has loaded. |
|
472 |
* |
|
473 |
* @since 5.1.0 |
|
474 |
* |
|
475 |
* @param string $network_plugin Full path to the plugin's main file. |
|
476 |
*/ |
|
477 |
do_action( 'network_plugin_loaded', $network_plugin ); |
|
0 | 478 |
} |
19 | 479 |
unset( $network_plugin, $_wp_plugin_file ); |
0 | 480 |
} |
481 |
||
482 |
/** |
|
483 |
* Fires once all must-use and network-activated plugins have loaded. |
|
484 |
* |
|
485 |
* @since 2.8.0 |
|
486 |
*/ |
|
487 |
do_action( 'muplugins_loaded' ); |
|
488 |
||
9 | 489 |
if ( is_multisite() ) { |
490 |
ms_cookie_constants(); |
|
491 |
} |
|
0 | 492 |
|
5 | 493 |
// Define constants after multisite is loaded. |
0 | 494 |
wp_cookie_constants(); |
495 |
||
16 | 496 |
// Define and enforce our SSL constants. |
0 | 497 |
wp_ssl_constants(); |
498 |
||
499 |
// Create common globals. |
|
16 | 500 |
require ABSPATH . WPINC . '/vars.php'; |
0 | 501 |
|
502 |
// Make taxonomies and posts available to plugins and themes. |
|
503 |
// @plugin authors: warning: these get registered again on the init hook. |
|
504 |
create_initial_taxonomies(); |
|
505 |
create_initial_post_types(); |
|
506 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
507 |
wp_start_scraping_edited_file_errors(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
508 |
|
16 | 509 |
// Register the default theme directory root. |
0 | 510 |
register_theme_directory( get_theme_root() ); |
511 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
512 |
if ( ! is_multisite() && wp_is_fatal_error_handler_enabled() ) { |
9 | 513 |
// Handle users requesting a recovery mode link and initiating recovery mode. |
514 |
wp_recovery_mode()->initialize(); |
|
515 |
} |
|
516 |
||
0 | 517 |
// Load active plugins. |
5 | 518 |
foreach ( wp_get_active_and_valid_plugins() as $plugin ) { |
519 |
wp_register_plugin_realpath( $plugin ); |
|
19 | 520 |
|
521 |
$_wp_plugin_file = $plugin; |
|
16 | 522 |
include_once $plugin; |
19 | 523 |
$plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. |
9 | 524 |
|
525 |
/** |
|
526 |
* Fires once a single activated plugin has loaded. |
|
527 |
* |
|
528 |
* @since 5.1.0 |
|
529 |
* |
|
530 |
* @param string $plugin Full path to the plugin's main file. |
|
531 |
*/ |
|
532 |
do_action( 'plugin_loaded', $plugin ); |
|
5 | 533 |
} |
19 | 534 |
unset( $plugin, $_wp_plugin_file ); |
0 | 535 |
|
536 |
// Load pluggable functions. |
|
16 | 537 |
require ABSPATH . WPINC . '/pluggable.php'; |
538 |
require ABSPATH . WPINC . '/pluggable-deprecated.php'; |
|
0 | 539 |
|
540 |
// Set internal encoding. |
|
541 |
wp_set_internal_encoding(); |
|
542 |
||
543 |
// Run wp_cache_postload() if object cache is enabled and the function exists. |
|
9 | 544 |
if ( WP_CACHE && function_exists( 'wp_cache_postload' ) ) { |
0 | 545 |
wp_cache_postload(); |
9 | 546 |
} |
0 | 547 |
|
548 |
/** |
|
549 |
* Fires once activated plugins have loaded. |
|
550 |
* |
|
551 |
* Pluggable functions are also available at this point in the loading order. |
|
552 |
* |
|
5 | 553 |
* @since 1.5.0 |
0 | 554 |
*/ |
555 |
do_action( 'plugins_loaded' ); |
|
556 |
||
557 |
// Define constants which affect functionality if not already defined. |
|
558 |
wp_functionality_constants(); |
|
559 |
||
16 | 560 |
// Add magic quotes and set up $_REQUEST ( $_GET + $_POST ). |
0 | 561 |
wp_magic_quotes(); |
562 |
||
563 |
/** |
|
564 |
* Fires when comment cookies are sanitized. |
|
565 |
* |
|
566 |
* @since 2.0.11 |
|
567 |
*/ |
|
568 |
do_action( 'sanitize_comment_cookies' ); |
|
569 |
||
570 |
/** |
|
571 |
* WordPress Query object |
|
9 | 572 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
573 |
* @since 2.0.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
574 |
* |
16 | 575 |
* @global WP_Query $wp_the_query WordPress Query object. |
0 | 576 |
*/ |
5 | 577 |
$GLOBALS['wp_the_query'] = new WP_Query(); |
0 | 578 |
|
579 |
/** |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
580 |
* Holds the reference to {@see $wp_the_query}. |
0 | 581 |
* Use this global for WordPress queries |
9 | 582 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
583 |
* @since 1.5.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
584 |
* |
16 | 585 |
* @global WP_Query $wp_query WordPress Query object. |
0 | 586 |
*/ |
5 | 587 |
$GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; |
0 | 588 |
|
589 |
/** |
|
590 |
* Holds the WordPress Rewrite object for creating pretty URLs |
|
9 | 591 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
592 |
* @since 1.5.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
593 |
* |
16 | 594 |
* @global WP_Rewrite $wp_rewrite WordPress rewrite component. |
0 | 595 |
*/ |
596 |
$GLOBALS['wp_rewrite'] = new WP_Rewrite(); |
|
597 |
||
598 |
/** |
|
599 |
* WordPress Object |
|
9 | 600 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
601 |
* @since 2.0.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
602 |
* |
16 | 603 |
* @global WP $wp Current WordPress environment instance. |
0 | 604 |
*/ |
5 | 605 |
$GLOBALS['wp'] = new WP(); |
0 | 606 |
|
607 |
/** |
|
608 |
* WordPress Widget Factory Object |
|
9 | 609 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
610 |
* @since 2.8.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
611 |
* |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
612 |
* @global WP_Widget_Factory $wp_widget_factory |
0 | 613 |
*/ |
614 |
$GLOBALS['wp_widget_factory'] = new WP_Widget_Factory(); |
|
615 |
||
616 |
/** |
|
617 |
* WordPress User Roles |
|
9 | 618 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
619 |
* @since 2.0.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
620 |
* |
16 | 621 |
* @global WP_Roles $wp_roles WordPress role management object. |
0 | 622 |
*/ |
623 |
$GLOBALS['wp_roles'] = new WP_Roles(); |
|
624 |
||
625 |
/** |
|
626 |
* Fires before the theme is loaded. |
|
627 |
* |
|
628 |
* @since 2.6.0 |
|
629 |
*/ |
|
630 |
do_action( 'setup_theme' ); |
|
631 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
632 |
// Define the template related constants and globals. |
9 | 633 |
wp_templating_constants(); |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
634 |
wp_set_template_globals(); |
0 | 635 |
|
636 |
// Load the default text localization domain. |
|
637 |
load_default_textdomain(); |
|
638 |
||
9 | 639 |
$locale = get_locale(); |
0 | 640 |
$locale_file = WP_LANG_DIR . "/$locale.php"; |
9 | 641 |
if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) { |
16 | 642 |
require $locale_file; |
9 | 643 |
} |
0 | 644 |
unset( $locale_file ); |
645 |
||
646 |
/** |
|
647 |
* WordPress Locale object for loading locale domain date and various strings. |
|
9 | 648 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
649 |
* @since 2.1.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
650 |
* |
16 | 651 |
* @global WP_Locale $wp_locale WordPress date and time locale object. |
0 | 652 |
*/ |
653 |
$GLOBALS['wp_locale'] = new WP_Locale(); |
|
654 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
655 |
/** |
16 | 656 |
* WordPress Locale Switcher object for switching locales. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
657 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
658 |
* @since 4.7.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
659 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
660 |
* @global WP_Locale_Switcher $wp_locale_switcher WordPress locale switcher object. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
661 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
662 |
$GLOBALS['wp_locale_switcher'] = new WP_Locale_Switcher(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
663 |
$GLOBALS['wp_locale_switcher']->init(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
664 |
|
0 | 665 |
// Load the functions for the active theme, for both parent and child theme if applicable. |
9 | 666 |
foreach ( wp_get_active_and_valid_themes() as $theme ) { |
667 |
if ( file_exists( $theme . '/functions.php' ) ) { |
|
668 |
include $theme . '/functions.php'; |
|
669 |
} |
|
0 | 670 |
} |
9 | 671 |
unset( $theme ); |
0 | 672 |
|
673 |
/** |
|
674 |
* Fires after the theme is loaded. |
|
675 |
* |
|
676 |
* @since 3.0.0 |
|
677 |
*/ |
|
678 |
do_action( 'after_setup_theme' ); |
|
679 |
||
16 | 680 |
// Create an instance of WP_Site_Health so that Cron events may fire. |
681 |
if ( ! class_exists( 'WP_Site_Health' ) ) { |
|
682 |
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; |
|
683 |
} |
|
684 |
WP_Site_Health::get_instance(); |
|
685 |
||
0 | 686 |
// Set up current user. |
5 | 687 |
$GLOBALS['wp']->init(); |
0 | 688 |
|
689 |
/** |
|
690 |
* Fires after WordPress has finished loading but before any headers are sent. |
|
691 |
* |
|
692 |
* Most of WP is loaded at this stage, and the user is authenticated. WP continues |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
693 |
* to load on the {@see 'init'} hook that follows (e.g. widgets), and many plugins instantiate |
0 | 694 |
* themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.). |
695 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
696 |
* If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below. |
0 | 697 |
* |
5 | 698 |
* @since 1.5.0 |
0 | 699 |
*/ |
700 |
do_action( 'init' ); |
|
701 |
||
16 | 702 |
// Check site status. |
0 | 703 |
if ( is_multisite() ) { |
16 | 704 |
$file = ms_site_check(); |
705 |
if ( true !== $file ) { |
|
706 |
require $file; |
|
0 | 707 |
die(); |
708 |
} |
|
9 | 709 |
unset( $file ); |
0 | 710 |
} |
711 |
||
712 |
/** |
|
713 |
* This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated. |
|
714 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
715 |
* Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for |
0 | 716 |
* users not logged in. |
717 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
718 |
* @link https://developer.wordpress.org/plugins/javascript/ajax |
0 | 719 |
* |
720 |
* @since 3.0.0 |
|
721 |
*/ |
|
722 |
do_action( 'wp_loaded' ); |