author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* WordPress core upgrade functionality. |
|
4 |
* |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
5 |
* Note: Newly introduced functions and methods cannot be used here. |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
6 |
* All functions must be present in the previous version being upgraded from |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
7 |
* as this file is used there too. |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
8 |
* |
0 | 9 |
* @package WordPress |
10 |
* @subpackage Administration |
|
11 |
* @since 2.7.0 |
|
12 |
*/ |
|
13 |
||
14 |
/** |
|
15 |
* Stores files to be deleted. |
|
16 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
17 |
* Bundled theme files should not be included in this list. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
18 |
* |
0 | 19 |
* @since 2.7.0 |
16 | 20 |
* |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
21 |
* @global string[] $_old_files |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
22 |
* @var string[] |
0 | 23 |
* @name $_old_files |
24 |
*/ |
|
25 |
global $_old_files; |
|
26 |
||
27 |
$_old_files = array( |
|
9 | 28 |
// 2.0 |
29 |
'wp-admin/import-b2.php', |
|
30 |
'wp-admin/import-blogger.php', |
|
31 |
'wp-admin/import-greymatter.php', |
|
32 |
'wp-admin/import-livejournal.php', |
|
33 |
'wp-admin/import-mt.php', |
|
34 |
'wp-admin/import-rss.php', |
|
35 |
'wp-admin/import-textpattern.php', |
|
36 |
'wp-admin/quicktags.js', |
|
37 |
'wp-images/fade-butt.png', |
|
38 |
'wp-images/get-firefox.png', |
|
39 |
'wp-images/header-shadow.png', |
|
40 |
'wp-images/smilies', |
|
41 |
'wp-images/wp-small.png', |
|
42 |
'wp-images/wpminilogo.png', |
|
43 |
'wp.php', |
|
44 |
// 2.1 |
|
45 |
'wp-admin/edit-form-ajax-cat.php', |
|
46 |
'wp-admin/execute-pings.php', |
|
47 |
'wp-admin/inline-uploading.php', |
|
48 |
'wp-admin/link-categories.php', |
|
49 |
'wp-admin/list-manipulation.js', |
|
50 |
'wp-admin/list-manipulation.php', |
|
51 |
'wp-includes/comment-functions.php', |
|
52 |
'wp-includes/feed-functions.php', |
|
53 |
'wp-includes/functions-compat.php', |
|
54 |
'wp-includes/functions-formatting.php', |
|
55 |
'wp-includes/functions-post.php', |
|
56 |
'wp-includes/js/dbx-key.js', |
|
57 |
'wp-includes/links.php', |
|
58 |
'wp-includes/pluggable-functions.php', |
|
59 |
'wp-includes/template-functions-author.php', |
|
60 |
'wp-includes/template-functions-category.php', |
|
61 |
'wp-includes/template-functions-general.php', |
|
62 |
'wp-includes/template-functions-links.php', |
|
63 |
'wp-includes/template-functions-post.php', |
|
64 |
'wp-includes/wp-l10n.php', |
|
65 |
// 2.2 |
|
66 |
'wp-admin/cat-js.php', |
|
67 |
'wp-includes/js/autosave-js.php', |
|
68 |
'wp-includes/js/list-manipulation-js.php', |
|
69 |
'wp-includes/js/wp-ajax-js.php', |
|
70 |
// 2.3 |
|
71 |
'wp-admin/admin-db.php', |
|
72 |
'wp-admin/cat.js', |
|
73 |
'wp-admin/categories.js', |
|
74 |
'wp-admin/custom-fields.js', |
|
75 |
'wp-admin/dbx-admin-key.js', |
|
76 |
'wp-admin/edit-comments.js', |
|
77 |
'wp-admin/install-rtl.css', |
|
78 |
'wp-admin/install.css', |
|
79 |
'wp-admin/upgrade-schema.php', |
|
80 |
'wp-admin/upload-functions.php', |
|
81 |
'wp-admin/upload-rtl.css', |
|
82 |
'wp-admin/upload.css', |
|
83 |
'wp-admin/upload.js', |
|
84 |
'wp-admin/users.js', |
|
85 |
'wp-admin/widgets-rtl.css', |
|
86 |
'wp-admin/widgets.css', |
|
87 |
'wp-admin/xfn.js', |
|
88 |
'wp-includes/js/tinymce/license.html', |
|
89 |
// 2.5 |
|
90 |
'wp-admin/css/upload.css', |
|
91 |
'wp-admin/images/box-bg-left.gif', |
|
92 |
'wp-admin/images/box-bg-right.gif', |
|
93 |
'wp-admin/images/box-bg.gif', |
|
94 |
'wp-admin/images/box-butt-left.gif', |
|
95 |
'wp-admin/images/box-butt-right.gif', |
|
96 |
'wp-admin/images/box-butt.gif', |
|
97 |
'wp-admin/images/box-head-left.gif', |
|
98 |
'wp-admin/images/box-head-right.gif', |
|
99 |
'wp-admin/images/box-head.gif', |
|
100 |
'wp-admin/images/heading-bg.gif', |
|
101 |
'wp-admin/images/login-bkg-bottom.gif', |
|
102 |
'wp-admin/images/login-bkg-tile.gif', |
|
103 |
'wp-admin/images/notice.gif', |
|
104 |
'wp-admin/images/toggle.gif', |
|
105 |
'wp-admin/includes/upload.php', |
|
106 |
'wp-admin/js/dbx-admin-key.js', |
|
107 |
'wp-admin/js/link-cat.js', |
|
108 |
'wp-admin/profile-update.php', |
|
109 |
'wp-admin/templates.php', |
|
110 |
'wp-includes/js/dbx.js', |
|
111 |
'wp-includes/js/fat.js', |
|
112 |
'wp-includes/js/list-manipulation.js', |
|
113 |
'wp-includes/js/tinymce/langs/en.js', |
|
114 |
'wp-includes/js/tinymce/plugins/directionality/images', |
|
115 |
'wp-includes/js/tinymce/plugins/directionality/langs', |
|
116 |
'wp-includes/js/tinymce/plugins/paste/images', |
|
117 |
'wp-includes/js/tinymce/plugins/paste/jscripts', |
|
118 |
'wp-includes/js/tinymce/plugins/paste/langs', |
|
119 |
'wp-includes/js/tinymce/plugins/wordpress/images', |
|
120 |
'wp-includes/js/tinymce/plugins/wordpress/langs', |
|
121 |
'wp-includes/js/tinymce/plugins/wordpress/wordpress.css', |
|
122 |
'wp-includes/js/tinymce/plugins/wphelp', |
|
123 |
// 2.5.1 |
|
124 |
'wp-includes/js/tinymce/tiny_mce_gzip.php', |
|
125 |
// 2.6 |
|
126 |
'wp-admin/bookmarklet.php', |
|
127 |
'wp-includes/js/jquery/jquery.dimensions.min.js', |
|
128 |
'wp-includes/js/tinymce/plugins/wordpress/popups.css', |
|
129 |
'wp-includes/js/wp-ajax.js', |
|
130 |
// 2.7 |
|
131 |
'wp-admin/css/press-this-ie-rtl.css', |
|
132 |
'wp-admin/css/press-this-ie.css', |
|
133 |
'wp-admin/css/upload-rtl.css', |
|
134 |
'wp-admin/edit-form.php', |
|
135 |
'wp-admin/images/comment-pill.gif', |
|
136 |
'wp-admin/images/comment-stalk-classic.gif', |
|
137 |
'wp-admin/images/comment-stalk-fresh.gif', |
|
138 |
'wp-admin/images/comment-stalk-rtl.gif', |
|
139 |
'wp-admin/images/del.png', |
|
140 |
'wp-admin/images/gear.png', |
|
141 |
'wp-admin/images/media-button-gallery.gif', |
|
142 |
'wp-admin/images/media-buttons.gif', |
|
143 |
'wp-admin/images/postbox-bg.gif', |
|
144 |
'wp-admin/images/tab.png', |
|
145 |
'wp-admin/images/tail.gif', |
|
146 |
'wp-admin/js/forms.js', |
|
147 |
'wp-admin/js/upload.js', |
|
148 |
'wp-admin/link-import.php', |
|
149 |
'wp-includes/images/audio.png', |
|
150 |
'wp-includes/images/css.png', |
|
151 |
'wp-includes/images/default.png', |
|
152 |
'wp-includes/images/doc.png', |
|
153 |
'wp-includes/images/exe.png', |
|
154 |
'wp-includes/images/html.png', |
|
155 |
'wp-includes/images/js.png', |
|
156 |
'wp-includes/images/pdf.png', |
|
157 |
'wp-includes/images/swf.png', |
|
158 |
'wp-includes/images/tar.png', |
|
159 |
'wp-includes/images/text.png', |
|
160 |
'wp-includes/images/video.png', |
|
161 |
'wp-includes/images/zip.png', |
|
162 |
'wp-includes/js/tinymce/tiny_mce_config.php', |
|
163 |
'wp-includes/js/tinymce/tiny_mce_ext.js', |
|
164 |
// 2.8 |
|
165 |
'wp-admin/js/users.js', |
|
166 |
'wp-includes/js/swfupload/swfupload_f9.swf', |
|
167 |
'wp-includes/js/tinymce/plugins/autosave', |
|
168 |
'wp-includes/js/tinymce/plugins/paste/css', |
|
169 |
'wp-includes/js/tinymce/utils/mclayer.js', |
|
170 |
'wp-includes/js/tinymce/wordpress.css', |
|
171 |
// 2.9 |
|
172 |
'wp-admin/js/page.dev.js', |
|
173 |
'wp-admin/js/page.js', |
|
174 |
'wp-admin/js/set-post-thumbnail-handler.dev.js', |
|
175 |
'wp-admin/js/set-post-thumbnail-handler.js', |
|
176 |
'wp-admin/js/slug.dev.js', |
|
177 |
'wp-admin/js/slug.js', |
|
178 |
'wp-includes/gettext.php', |
|
179 |
'wp-includes/js/tinymce/plugins/wordpress/js', |
|
180 |
'wp-includes/streams.php', |
|
181 |
// MU |
|
182 |
'README.txt', |
|
183 |
'htaccess.dist', |
|
184 |
'index-install.php', |
|
185 |
'wp-admin/css/mu-rtl.css', |
|
186 |
'wp-admin/css/mu.css', |
|
187 |
'wp-admin/images/site-admin.png', |
|
188 |
'wp-admin/includes/mu.php', |
|
189 |
'wp-admin/wpmu-admin.php', |
|
190 |
'wp-admin/wpmu-blogs.php', |
|
191 |
'wp-admin/wpmu-edit.php', |
|
192 |
'wp-admin/wpmu-options.php', |
|
193 |
'wp-admin/wpmu-themes.php', |
|
194 |
'wp-admin/wpmu-upgrade-site.php', |
|
195 |
'wp-admin/wpmu-users.php', |
|
196 |
'wp-includes/images/wordpress-mu.png', |
|
197 |
'wp-includes/wpmu-default-filters.php', |
|
198 |
'wp-includes/wpmu-functions.php', |
|
199 |
'wpmu-settings.php', |
|
200 |
// 3.0 |
|
201 |
'wp-admin/categories.php', |
|
202 |
'wp-admin/edit-category-form.php', |
|
203 |
'wp-admin/edit-page-form.php', |
|
204 |
'wp-admin/edit-pages.php', |
|
205 |
'wp-admin/images/admin-header-footer.png', |
|
206 |
'wp-admin/images/browse-happy.gif', |
|
207 |
'wp-admin/images/ico-add.png', |
|
208 |
'wp-admin/images/ico-close.png', |
|
209 |
'wp-admin/images/ico-edit.png', |
|
210 |
'wp-admin/images/ico-viewpage.png', |
|
211 |
'wp-admin/images/fav-top.png', |
|
212 |
'wp-admin/images/screen-options-left.gif', |
|
213 |
'wp-admin/images/wp-logo-vs.gif', |
|
214 |
'wp-admin/images/wp-logo.gif', |
|
215 |
'wp-admin/import', |
|
216 |
'wp-admin/js/wp-gears.dev.js', |
|
217 |
'wp-admin/js/wp-gears.js', |
|
218 |
'wp-admin/options-misc.php', |
|
219 |
'wp-admin/page-new.php', |
|
220 |
'wp-admin/page.php', |
|
221 |
'wp-admin/rtl.css', |
|
222 |
'wp-admin/rtl.dev.css', |
|
223 |
'wp-admin/update-links.php', |
|
224 |
'wp-admin/wp-admin.css', |
|
225 |
'wp-admin/wp-admin.dev.css', |
|
226 |
'wp-includes/js/codepress', |
|
227 |
'wp-includes/js/jquery/autocomplete.dev.js', |
|
228 |
'wp-includes/js/jquery/autocomplete.js', |
|
229 |
'wp-includes/js/jquery/interface.js', |
|
16 | 230 |
// Following file added back in 5.1, see #45645. |
9 | 231 |
//'wp-includes/js/tinymce/wp-tinymce.js', |
232 |
// 3.1 |
|
233 |
'wp-admin/edit-attachment-rows.php', |
|
234 |
'wp-admin/edit-link-categories.php', |
|
235 |
'wp-admin/edit-link-category-form.php', |
|
236 |
'wp-admin/edit-post-rows.php', |
|
237 |
'wp-admin/images/button-grad-active-vs.png', |
|
238 |
'wp-admin/images/button-grad-vs.png', |
|
239 |
'wp-admin/images/fav-arrow-vs-rtl.gif', |
|
240 |
'wp-admin/images/fav-arrow-vs.gif', |
|
241 |
'wp-admin/images/fav-top-vs.gif', |
|
242 |
'wp-admin/images/list-vs.png', |
|
243 |
'wp-admin/images/screen-options-right-up.gif', |
|
244 |
'wp-admin/images/screen-options-right.gif', |
|
245 |
'wp-admin/images/visit-site-button-grad-vs.gif', |
|
246 |
'wp-admin/images/visit-site-button-grad.gif', |
|
247 |
'wp-admin/link-category.php', |
|
248 |
'wp-admin/sidebar.php', |
|
249 |
'wp-includes/classes.php', |
|
250 |
'wp-includes/js/tinymce/blank.htm', |
|
251 |
'wp-includes/js/tinymce/plugins/media/img', |
|
252 |
'wp-includes/js/tinymce/plugins/safari', |
|
253 |
// 3.2 |
|
254 |
'wp-admin/images/logo-login.gif', |
|
255 |
'wp-admin/images/star.gif', |
|
256 |
'wp-admin/js/list-table.dev.js', |
|
257 |
'wp-admin/js/list-table.js', |
|
258 |
'wp-includes/default-embeds.php', |
|
259 |
// 3.3 |
|
260 |
'wp-admin/css/colors-classic-rtl.css', |
|
261 |
'wp-admin/css/colors-classic-rtl.dev.css', |
|
262 |
'wp-admin/css/colors-fresh-rtl.css', |
|
263 |
'wp-admin/css/colors-fresh-rtl.dev.css', |
|
264 |
'wp-admin/css/dashboard-rtl.dev.css', |
|
265 |
'wp-admin/css/dashboard.dev.css', |
|
266 |
'wp-admin/css/global-rtl.css', |
|
267 |
'wp-admin/css/global-rtl.dev.css', |
|
268 |
'wp-admin/css/global.css', |
|
269 |
'wp-admin/css/global.dev.css', |
|
270 |
'wp-admin/css/install-rtl.dev.css', |
|
271 |
'wp-admin/css/login-rtl.dev.css', |
|
272 |
'wp-admin/css/login.dev.css', |
|
273 |
'wp-admin/css/ms.css', |
|
274 |
'wp-admin/css/ms.dev.css', |
|
275 |
'wp-admin/css/nav-menu-rtl.css', |
|
276 |
'wp-admin/css/nav-menu-rtl.dev.css', |
|
277 |
'wp-admin/css/nav-menu.css', |
|
278 |
'wp-admin/css/nav-menu.dev.css', |
|
279 |
'wp-admin/css/plugin-install-rtl.css', |
|
280 |
'wp-admin/css/plugin-install-rtl.dev.css', |
|
281 |
'wp-admin/css/plugin-install.css', |
|
282 |
'wp-admin/css/plugin-install.dev.css', |
|
283 |
'wp-admin/css/press-this-rtl.dev.css', |
|
284 |
'wp-admin/css/press-this.dev.css', |
|
285 |
'wp-admin/css/theme-editor-rtl.css', |
|
286 |
'wp-admin/css/theme-editor-rtl.dev.css', |
|
287 |
'wp-admin/css/theme-editor.css', |
|
288 |
'wp-admin/css/theme-editor.dev.css', |
|
289 |
'wp-admin/css/theme-install-rtl.css', |
|
290 |
'wp-admin/css/theme-install-rtl.dev.css', |
|
291 |
'wp-admin/css/theme-install.css', |
|
292 |
'wp-admin/css/theme-install.dev.css', |
|
293 |
'wp-admin/css/widgets-rtl.dev.css', |
|
294 |
'wp-admin/css/widgets.dev.css', |
|
295 |
'wp-admin/includes/internal-linking.php', |
|
296 |
'wp-includes/images/admin-bar-sprite-rtl.png', |
|
297 |
'wp-includes/js/jquery/ui.button.js', |
|
298 |
'wp-includes/js/jquery/ui.core.js', |
|
299 |
'wp-includes/js/jquery/ui.dialog.js', |
|
300 |
'wp-includes/js/jquery/ui.draggable.js', |
|
301 |
'wp-includes/js/jquery/ui.droppable.js', |
|
302 |
'wp-includes/js/jquery/ui.mouse.js', |
|
303 |
'wp-includes/js/jquery/ui.position.js', |
|
304 |
'wp-includes/js/jquery/ui.resizable.js', |
|
305 |
'wp-includes/js/jquery/ui.selectable.js', |
|
306 |
'wp-includes/js/jquery/ui.sortable.js', |
|
307 |
'wp-includes/js/jquery/ui.tabs.js', |
|
308 |
'wp-includes/js/jquery/ui.widget.js', |
|
309 |
'wp-includes/js/l10n.dev.js', |
|
310 |
'wp-includes/js/l10n.js', |
|
311 |
'wp-includes/js/tinymce/plugins/wplink/css', |
|
312 |
'wp-includes/js/tinymce/plugins/wplink/img', |
|
313 |
'wp-includes/js/tinymce/plugins/wplink/js', |
|
314 |
// Don't delete, yet: 'wp-rss.php', |
|
315 |
// Don't delete, yet: 'wp-rdf.php', |
|
316 |
// Don't delete, yet: 'wp-rss2.php', |
|
317 |
// Don't delete, yet: 'wp-commentsrss2.php', |
|
318 |
// Don't delete, yet: 'wp-atom.php', |
|
319 |
// Don't delete, yet: 'wp-feed.php', |
|
320 |
// 3.4 |
|
321 |
'wp-admin/images/gray-star.png', |
|
322 |
'wp-admin/images/logo-login.png', |
|
323 |
'wp-admin/images/star.png', |
|
324 |
'wp-admin/index-extra.php', |
|
325 |
'wp-admin/network/index-extra.php', |
|
326 |
'wp-admin/user/index-extra.php', |
|
327 |
'wp-includes/css/editor-buttons.css', |
|
328 |
'wp-includes/css/editor-buttons.dev.css', |
|
329 |
'wp-includes/js/tinymce/plugins/paste/blank.htm', |
|
330 |
'wp-includes/js/tinymce/plugins/wordpress/css', |
|
331 |
'wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js', |
|
332 |
'wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js', |
|
333 |
'wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.dev.js', |
|
334 |
'wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.dev.js', |
|
335 |
'wp-includes/js/tinymce/plugins/wplink/editor_plugin.dev.js', |
|
336 |
// Don't delete, yet: 'wp-pass.php', |
|
337 |
// Don't delete, yet: 'wp-register.php', |
|
338 |
// 3.5 |
|
339 |
'wp-admin/gears-manifest.php', |
|
340 |
'wp-admin/includes/manifest.php', |
|
341 |
'wp-admin/images/archive-link.png', |
|
342 |
'wp-admin/images/blue-grad.png', |
|
343 |
'wp-admin/images/button-grad-active.png', |
|
344 |
'wp-admin/images/button-grad.png', |
|
345 |
'wp-admin/images/ed-bg-vs.gif', |
|
346 |
'wp-admin/images/ed-bg.gif', |
|
347 |
'wp-admin/images/fade-butt.png', |
|
348 |
'wp-admin/images/fav-arrow-rtl.gif', |
|
349 |
'wp-admin/images/fav-arrow.gif', |
|
350 |
'wp-admin/images/fav-vs.png', |
|
351 |
'wp-admin/images/fav.png', |
|
352 |
'wp-admin/images/gray-grad.png', |
|
353 |
'wp-admin/images/loading-publish.gif', |
|
354 |
'wp-admin/images/logo-ghost.png', |
|
355 |
'wp-admin/images/logo.gif', |
|
356 |
'wp-admin/images/menu-arrow-frame-rtl.png', |
|
357 |
'wp-admin/images/menu-arrow-frame.png', |
|
358 |
'wp-admin/images/menu-arrows.gif', |
|
359 |
'wp-admin/images/menu-bits-rtl-vs.gif', |
|
360 |
'wp-admin/images/menu-bits-rtl.gif', |
|
361 |
'wp-admin/images/menu-bits-vs.gif', |
|
362 |
'wp-admin/images/menu-bits.gif', |
|
363 |
'wp-admin/images/menu-dark-rtl-vs.gif', |
|
364 |
'wp-admin/images/menu-dark-rtl.gif', |
|
365 |
'wp-admin/images/menu-dark-vs.gif', |
|
366 |
'wp-admin/images/menu-dark.gif', |
|
367 |
'wp-admin/images/required.gif', |
|
368 |
'wp-admin/images/screen-options-toggle-vs.gif', |
|
369 |
'wp-admin/images/screen-options-toggle.gif', |
|
370 |
'wp-admin/images/toggle-arrow-rtl.gif', |
|
371 |
'wp-admin/images/toggle-arrow.gif', |
|
372 |
'wp-admin/images/upload-classic.png', |
|
373 |
'wp-admin/images/upload-fresh.png', |
|
374 |
'wp-admin/images/white-grad-active.png', |
|
375 |
'wp-admin/images/white-grad.png', |
|
376 |
'wp-admin/images/widgets-arrow-vs.gif', |
|
377 |
'wp-admin/images/widgets-arrow.gif', |
|
378 |
'wp-admin/images/wpspin_dark.gif', |
|
379 |
'wp-includes/images/upload.png', |
|
380 |
'wp-includes/js/prototype.js', |
|
381 |
'wp-includes/js/scriptaculous', |
|
382 |
'wp-admin/css/wp-admin-rtl.dev.css', |
|
383 |
'wp-admin/css/wp-admin.dev.css', |
|
384 |
'wp-admin/css/media-rtl.dev.css', |
|
385 |
'wp-admin/css/media.dev.css', |
|
386 |
'wp-admin/css/colors-classic.dev.css', |
|
387 |
'wp-admin/css/customize-controls-rtl.dev.css', |
|
388 |
'wp-admin/css/customize-controls.dev.css', |
|
389 |
'wp-admin/css/ie-rtl.dev.css', |
|
390 |
'wp-admin/css/ie.dev.css', |
|
391 |
'wp-admin/css/install.dev.css', |
|
392 |
'wp-admin/css/colors-fresh.dev.css', |
|
393 |
'wp-includes/js/customize-base.dev.js', |
|
394 |
'wp-includes/js/json2.dev.js', |
|
395 |
'wp-includes/js/comment-reply.dev.js', |
|
396 |
'wp-includes/js/customize-preview.dev.js', |
|
397 |
'wp-includes/js/wplink.dev.js', |
|
398 |
'wp-includes/js/tw-sack.dev.js', |
|
399 |
'wp-includes/js/wp-list-revisions.dev.js', |
|
400 |
'wp-includes/js/autosave.dev.js', |
|
401 |
'wp-includes/js/admin-bar.dev.js', |
|
402 |
'wp-includes/js/quicktags.dev.js', |
|
403 |
'wp-includes/js/wp-ajax-response.dev.js', |
|
404 |
'wp-includes/js/wp-pointer.dev.js', |
|
405 |
'wp-includes/js/hoverIntent.dev.js', |
|
406 |
'wp-includes/js/colorpicker.dev.js', |
|
407 |
'wp-includes/js/wp-lists.dev.js', |
|
408 |
'wp-includes/js/customize-loader.dev.js', |
|
409 |
'wp-includes/js/jquery/jquery.table-hotkeys.dev.js', |
|
410 |
'wp-includes/js/jquery/jquery.color.dev.js', |
|
411 |
'wp-includes/js/jquery/jquery.color.js', |
|
412 |
'wp-includes/js/jquery/jquery.hotkeys.dev.js', |
|
413 |
'wp-includes/js/jquery/jquery.form.dev.js', |
|
414 |
'wp-includes/js/jquery/suggest.dev.js', |
|
415 |
'wp-admin/js/xfn.dev.js', |
|
416 |
'wp-admin/js/set-post-thumbnail.dev.js', |
|
417 |
'wp-admin/js/comment.dev.js', |
|
418 |
'wp-admin/js/theme.dev.js', |
|
419 |
'wp-admin/js/cat.dev.js', |
|
420 |
'wp-admin/js/password-strength-meter.dev.js', |
|
421 |
'wp-admin/js/user-profile.dev.js', |
|
422 |
'wp-admin/js/theme-preview.dev.js', |
|
423 |
'wp-admin/js/post.dev.js', |
|
424 |
'wp-admin/js/media-upload.dev.js', |
|
425 |
'wp-admin/js/word-count.dev.js', |
|
426 |
'wp-admin/js/plugin-install.dev.js', |
|
427 |
'wp-admin/js/edit-comments.dev.js', |
|
428 |
'wp-admin/js/media-gallery.dev.js', |
|
429 |
'wp-admin/js/custom-fields.dev.js', |
|
430 |
'wp-admin/js/custom-background.dev.js', |
|
431 |
'wp-admin/js/common.dev.js', |
|
432 |
'wp-admin/js/inline-edit-tax.dev.js', |
|
433 |
'wp-admin/js/gallery.dev.js', |
|
434 |
'wp-admin/js/utils.dev.js', |
|
435 |
'wp-admin/js/widgets.dev.js', |
|
436 |
'wp-admin/js/wp-fullscreen.dev.js', |
|
437 |
'wp-admin/js/nav-menu.dev.js', |
|
438 |
'wp-admin/js/dashboard.dev.js', |
|
439 |
'wp-admin/js/link.dev.js', |
|
440 |
'wp-admin/js/user-suggest.dev.js', |
|
441 |
'wp-admin/js/postbox.dev.js', |
|
442 |
'wp-admin/js/tags.dev.js', |
|
443 |
'wp-admin/js/image-edit.dev.js', |
|
444 |
'wp-admin/js/media.dev.js', |
|
445 |
'wp-admin/js/customize-controls.dev.js', |
|
446 |
'wp-admin/js/inline-edit-post.dev.js', |
|
447 |
'wp-admin/js/categories.dev.js', |
|
448 |
'wp-admin/js/editor.dev.js', |
|
449 |
'wp-includes/js/plupload/handlers.dev.js', |
|
450 |
'wp-includes/js/plupload/wp-plupload.dev.js', |
|
451 |
'wp-includes/js/swfupload/handlers.dev.js', |
|
452 |
'wp-includes/js/jcrop/jquery.Jcrop.dev.js', |
|
453 |
'wp-includes/js/jcrop/jquery.Jcrop.js', |
|
454 |
'wp-includes/js/jcrop/jquery.Jcrop.css', |
|
455 |
'wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js', |
|
456 |
'wp-includes/css/wp-pointer.dev.css', |
|
457 |
'wp-includes/css/editor.dev.css', |
|
458 |
'wp-includes/css/jquery-ui-dialog.dev.css', |
|
459 |
'wp-includes/css/admin-bar-rtl.dev.css', |
|
460 |
'wp-includes/css/admin-bar.dev.css', |
|
461 |
'wp-includes/js/jquery/ui/jquery.effects.clip.min.js', |
|
462 |
'wp-includes/js/jquery/ui/jquery.effects.scale.min.js', |
|
463 |
'wp-includes/js/jquery/ui/jquery.effects.blind.min.js', |
|
464 |
'wp-includes/js/jquery/ui/jquery.effects.core.min.js', |
|
465 |
'wp-includes/js/jquery/ui/jquery.effects.shake.min.js', |
|
466 |
'wp-includes/js/jquery/ui/jquery.effects.fade.min.js', |
|
467 |
'wp-includes/js/jquery/ui/jquery.effects.explode.min.js', |
|
468 |
'wp-includes/js/jquery/ui/jquery.effects.slide.min.js', |
|
469 |
'wp-includes/js/jquery/ui/jquery.effects.drop.min.js', |
|
470 |
'wp-includes/js/jquery/ui/jquery.effects.highlight.min.js', |
|
471 |
'wp-includes/js/jquery/ui/jquery.effects.bounce.min.js', |
|
472 |
'wp-includes/js/jquery/ui/jquery.effects.pulsate.min.js', |
|
473 |
'wp-includes/js/jquery/ui/jquery.effects.transfer.min.js', |
|
474 |
'wp-includes/js/jquery/ui/jquery.effects.fold.min.js', |
|
475 |
'wp-admin/js/utils.js', |
|
16 | 476 |
// Added back in 5.3 [45448], see #43895. |
477 |
// 'wp-admin/options-privacy.php', |
|
9 | 478 |
'wp-app.php', |
479 |
'wp-includes/class-wp-atom-server.php', |
|
480 |
// 3.5.2 |
|
481 |
'wp-includes/js/swfupload/swfupload-all.js', |
|
482 |
// 3.6 |
|
483 |
'wp-admin/js/revisions-js.php', |
|
484 |
'wp-admin/images/screenshots', |
|
485 |
'wp-admin/js/categories.js', |
|
486 |
'wp-admin/js/categories.min.js', |
|
487 |
'wp-admin/js/custom-fields.js', |
|
488 |
'wp-admin/js/custom-fields.min.js', |
|
489 |
// 3.7 |
|
490 |
'wp-admin/js/cat.js', |
|
491 |
'wp-admin/js/cat.min.js', |
|
492 |
// 3.8 |
|
493 |
'wp-includes/js/thickbox/tb-close-2x.png', |
|
494 |
'wp-includes/js/thickbox/tb-close.png', |
|
495 |
'wp-includes/images/wpmini-blue-2x.png', |
|
496 |
'wp-includes/images/wpmini-blue.png', |
|
497 |
'wp-admin/css/colors-fresh.css', |
|
498 |
'wp-admin/css/colors-classic.css', |
|
499 |
'wp-admin/css/colors-fresh.min.css', |
|
500 |
'wp-admin/css/colors-classic.min.css', |
|
501 |
'wp-admin/js/about.min.js', |
|
502 |
'wp-admin/js/about.js', |
|
503 |
'wp-admin/images/arrows-dark-vs-2x.png', |
|
504 |
'wp-admin/images/wp-logo-vs.png', |
|
505 |
'wp-admin/images/arrows-dark-vs.png', |
|
506 |
'wp-admin/images/wp-logo.png', |
|
507 |
'wp-admin/images/arrows-pr.png', |
|
508 |
'wp-admin/images/arrows-dark.png', |
|
509 |
'wp-admin/images/press-this.png', |
|
510 |
'wp-admin/images/press-this-2x.png', |
|
511 |
'wp-admin/images/arrows-vs-2x.png', |
|
512 |
'wp-admin/images/welcome-icons.png', |
|
513 |
'wp-admin/images/wp-logo-2x.png', |
|
514 |
'wp-admin/images/stars-rtl-2x.png', |
|
515 |
'wp-admin/images/arrows-dark-2x.png', |
|
516 |
'wp-admin/images/arrows-pr-2x.png', |
|
517 |
'wp-admin/images/menu-shadow-rtl.png', |
|
518 |
'wp-admin/images/arrows-vs.png', |
|
519 |
'wp-admin/images/about-search-2x.png', |
|
520 |
'wp-admin/images/bubble_bg-rtl-2x.gif', |
|
521 |
'wp-admin/images/wp-badge-2x.png', |
|
522 |
'wp-admin/images/wordpress-logo-2x.png', |
|
523 |
'wp-admin/images/bubble_bg-rtl.gif', |
|
524 |
'wp-admin/images/wp-badge.png', |
|
525 |
'wp-admin/images/menu-shadow.png', |
|
526 |
'wp-admin/images/about-globe-2x.png', |
|
527 |
'wp-admin/images/welcome-icons-2x.png', |
|
528 |
'wp-admin/images/stars-rtl.png', |
|
529 |
'wp-admin/images/wp-logo-vs-2x.png', |
|
530 |
'wp-admin/images/about-updates-2x.png', |
|
531 |
// 3.9 |
|
532 |
'wp-admin/css/colors.css', |
|
533 |
'wp-admin/css/colors.min.css', |
|
534 |
'wp-admin/css/colors-rtl.css', |
|
535 |
'wp-admin/css/colors-rtl.min.css', |
|
16 | 536 |
// Following files added back in 4.5, see #36083. |
9 | 537 |
// 'wp-admin/css/media-rtl.min.css', |
538 |
// 'wp-admin/css/media.min.css', |
|
539 |
// 'wp-admin/css/farbtastic-rtl.min.css', |
|
540 |
'wp-admin/images/lock-2x.png', |
|
541 |
'wp-admin/images/lock.png', |
|
542 |
'wp-admin/js/theme-preview.js', |
|
543 |
'wp-admin/js/theme-install.min.js', |
|
544 |
'wp-admin/js/theme-install.js', |
|
545 |
'wp-admin/js/theme-preview.min.js', |
|
546 |
'wp-includes/js/plupload/plupload.html4.js', |
|
547 |
'wp-includes/js/plupload/plupload.html5.js', |
|
548 |
'wp-includes/js/plupload/changelog.txt', |
|
549 |
'wp-includes/js/plupload/plupload.silverlight.js', |
|
550 |
'wp-includes/js/plupload/plupload.flash.js', |
|
16 | 551 |
// Added back in 4.9 [41328], see #41755. |
9 | 552 |
// 'wp-includes/js/plupload/plupload.js', |
553 |
'wp-includes/js/tinymce/plugins/spellchecker', |
|
554 |
'wp-includes/js/tinymce/plugins/inlinepopups', |
|
555 |
'wp-includes/js/tinymce/plugins/media/js', |
|
556 |
'wp-includes/js/tinymce/plugins/media/css', |
|
557 |
'wp-includes/js/tinymce/plugins/wordpress/img', |
|
558 |
'wp-includes/js/tinymce/plugins/wpdialogs/js', |
|
559 |
'wp-includes/js/tinymce/plugins/wpeditimage/img', |
|
560 |
'wp-includes/js/tinymce/plugins/wpeditimage/js', |
|
561 |
'wp-includes/js/tinymce/plugins/wpeditimage/css', |
|
562 |
'wp-includes/js/tinymce/plugins/wpgallery/img', |
|
563 |
'wp-includes/js/tinymce/plugins/paste/js', |
|
564 |
'wp-includes/js/tinymce/themes/advanced', |
|
565 |
'wp-includes/js/tinymce/tiny_mce.js', |
|
566 |
'wp-includes/js/tinymce/mark_loaded_src.js', |
|
567 |
'wp-includes/js/tinymce/wp-tinymce-schema.js', |
|
568 |
'wp-includes/js/tinymce/plugins/media/editor_plugin.js', |
|
569 |
'wp-includes/js/tinymce/plugins/media/editor_plugin_src.js', |
|
570 |
'wp-includes/js/tinymce/plugins/media/media.htm', |
|
571 |
'wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js', |
|
572 |
'wp-includes/js/tinymce/plugins/wpview/editor_plugin.js', |
|
573 |
'wp-includes/js/tinymce/plugins/directionality/editor_plugin.js', |
|
574 |
'wp-includes/js/tinymce/plugins/directionality/editor_plugin_src.js', |
|
575 |
'wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js', |
|
576 |
'wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js', |
|
577 |
'wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin_src.js', |
|
578 |
'wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js', |
|
579 |
'wp-includes/js/tinymce/plugins/wpeditimage/editimage.html', |
|
580 |
'wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js', |
|
581 |
'wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js', |
|
582 |
'wp-includes/js/tinymce/plugins/fullscreen/editor_plugin_src.js', |
|
583 |
'wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm', |
|
584 |
'wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js', |
|
585 |
'wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js', |
|
586 |
'wp-includes/js/tinymce/plugins/wplink/editor_plugin.js', |
|
587 |
'wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js', |
|
588 |
'wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js', |
|
589 |
'wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js', |
|
590 |
'wp-includes/js/tinymce/plugins/tabfocus/editor_plugin_src.js', |
|
591 |
'wp-includes/js/tinymce/plugins/paste/editor_plugin.js', |
|
592 |
'wp-includes/js/tinymce/plugins/paste/pasteword.htm', |
|
593 |
'wp-includes/js/tinymce/plugins/paste/editor_plugin_src.js', |
|
594 |
'wp-includes/js/tinymce/plugins/paste/pastetext.htm', |
|
595 |
'wp-includes/js/tinymce/langs/wp-langs.php', |
|
596 |
// 4.1 |
|
597 |
'wp-includes/js/jquery/ui/jquery.ui.accordion.min.js', |
|
598 |
'wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js', |
|
599 |
'wp-includes/js/jquery/ui/jquery.ui.button.min.js', |
|
600 |
'wp-includes/js/jquery/ui/jquery.ui.core.min.js', |
|
601 |
'wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js', |
|
602 |
'wp-includes/js/jquery/ui/jquery.ui.dialog.min.js', |
|
603 |
'wp-includes/js/jquery/ui/jquery.ui.draggable.min.js', |
|
604 |
'wp-includes/js/jquery/ui/jquery.ui.droppable.min.js', |
|
605 |
'wp-includes/js/jquery/ui/jquery.ui.effect-blind.min.js', |
|
606 |
'wp-includes/js/jquery/ui/jquery.ui.effect-bounce.min.js', |
|
607 |
'wp-includes/js/jquery/ui/jquery.ui.effect-clip.min.js', |
|
608 |
'wp-includes/js/jquery/ui/jquery.ui.effect-drop.min.js', |
|
609 |
'wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js', |
|
610 |
'wp-includes/js/jquery/ui/jquery.ui.effect-fade.min.js', |
|
611 |
'wp-includes/js/jquery/ui/jquery.ui.effect-fold.min.js', |
|
612 |
'wp-includes/js/jquery/ui/jquery.ui.effect-highlight.min.js', |
|
613 |
'wp-includes/js/jquery/ui/jquery.ui.effect-pulsate.min.js', |
|
614 |
'wp-includes/js/jquery/ui/jquery.ui.effect-scale.min.js', |
|
615 |
'wp-includes/js/jquery/ui/jquery.ui.effect-shake.min.js', |
|
616 |
'wp-includes/js/jquery/ui/jquery.ui.effect-slide.min.js', |
|
617 |
'wp-includes/js/jquery/ui/jquery.ui.effect-transfer.min.js', |
|
618 |
'wp-includes/js/jquery/ui/jquery.ui.effect.min.js', |
|
619 |
'wp-includes/js/jquery/ui/jquery.ui.menu.min.js', |
|
620 |
'wp-includes/js/jquery/ui/jquery.ui.mouse.min.js', |
|
621 |
'wp-includes/js/jquery/ui/jquery.ui.position.min.js', |
|
622 |
'wp-includes/js/jquery/ui/jquery.ui.progressbar.min.js', |
|
623 |
'wp-includes/js/jquery/ui/jquery.ui.resizable.min.js', |
|
624 |
'wp-includes/js/jquery/ui/jquery.ui.selectable.min.js', |
|
625 |
'wp-includes/js/jquery/ui/jquery.ui.slider.min.js', |
|
626 |
'wp-includes/js/jquery/ui/jquery.ui.sortable.min.js', |
|
627 |
'wp-includes/js/jquery/ui/jquery.ui.spinner.min.js', |
|
628 |
'wp-includes/js/jquery/ui/jquery.ui.tabs.min.js', |
|
629 |
'wp-includes/js/jquery/ui/jquery.ui.tooltip.min.js', |
|
630 |
'wp-includes/js/jquery/ui/jquery.ui.widget.min.js', |
|
631 |
'wp-includes/js/tinymce/skins/wordpress/images/dashicon-no-alt.png', |
|
632 |
// 4.3 |
|
633 |
'wp-admin/js/wp-fullscreen.js', |
|
634 |
'wp-admin/js/wp-fullscreen.min.js', |
|
635 |
'wp-includes/js/tinymce/wp-mce-help.php', |
|
636 |
'wp-includes/js/tinymce/plugins/wpfullscreen', |
|
637 |
// 4.5 |
|
638 |
'wp-includes/theme-compat/comments-popup.php', |
|
639 |
// 4.6 |
|
640 |
'wp-admin/includes/class-wp-automatic-upgrader.php', // Wrong file name, see #37628. |
|
641 |
// 4.8 |
|
642 |
'wp-includes/js/tinymce/plugins/wpembed', |
|
643 |
'wp-includes/js/tinymce/plugins/media/moxieplayer.swf', |
|
644 |
'wp-includes/js/tinymce/skins/lightgray/fonts/readme.md', |
|
645 |
'wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.json', |
|
646 |
'wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.json', |
|
647 |
'wp-includes/js/tinymce/skins/lightgray/skin.ie7.min.css', |
|
648 |
// 4.9 |
|
649 |
'wp-admin/css/press-this-editor-rtl.css', |
|
650 |
'wp-admin/css/press-this-editor-rtl.min.css', |
|
651 |
'wp-admin/css/press-this-editor.css', |
|
652 |
'wp-admin/css/press-this-editor.min.css', |
|
653 |
'wp-admin/css/press-this-rtl.css', |
|
654 |
'wp-admin/css/press-this-rtl.min.css', |
|
655 |
'wp-admin/css/press-this.css', |
|
656 |
'wp-admin/css/press-this.min.css', |
|
657 |
'wp-admin/includes/class-wp-press-this.php', |
|
658 |
'wp-admin/js/bookmarklet.js', |
|
659 |
'wp-admin/js/bookmarklet.min.js', |
|
660 |
'wp-admin/js/press-this.js', |
|
661 |
'wp-admin/js/press-this.min.js', |
|
662 |
'wp-includes/js/mediaelement/background.png', |
|
663 |
'wp-includes/js/mediaelement/bigplay.png', |
|
664 |
'wp-includes/js/mediaelement/bigplay.svg', |
|
665 |
'wp-includes/js/mediaelement/controls.png', |
|
666 |
'wp-includes/js/mediaelement/controls.svg', |
|
667 |
'wp-includes/js/mediaelement/flashmediaelement.swf', |
|
668 |
'wp-includes/js/mediaelement/froogaloop.min.js', |
|
669 |
'wp-includes/js/mediaelement/jumpforward.png', |
|
670 |
'wp-includes/js/mediaelement/loading.gif', |
|
671 |
'wp-includes/js/mediaelement/silverlightmediaelement.xap', |
|
672 |
'wp-includes/js/mediaelement/skipback.png', |
|
673 |
'wp-includes/js/plupload/plupload.flash.swf', |
|
674 |
'wp-includes/js/plupload/plupload.full.min.js', |
|
675 |
'wp-includes/js/plupload/plupload.silverlight.xap', |
|
676 |
'wp-includes/js/swfupload/plugins', |
|
677 |
'wp-includes/js/swfupload/swfupload.swf', |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
678 |
// 4.9.2 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
679 |
'wp-includes/js/mediaelement/lang', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
680 |
'wp-includes/js/mediaelement/mediaelement-flash-audio-ogg.swf', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
681 |
'wp-includes/js/mediaelement/mediaelement-flash-audio.swf', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
682 |
'wp-includes/js/mediaelement/mediaelement-flash-video-hls.swf', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
683 |
'wp-includes/js/mediaelement/mediaelement-flash-video-mdash.swf', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
684 |
'wp-includes/js/mediaelement/mediaelement-flash-video.swf', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
685 |
'wp-includes/js/mediaelement/renderers/dailymotion.js', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
686 |
'wp-includes/js/mediaelement/renderers/dailymotion.min.js', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
687 |
'wp-includes/js/mediaelement/renderers/facebook.js', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
688 |
'wp-includes/js/mediaelement/renderers/facebook.min.js', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
689 |
'wp-includes/js/mediaelement/renderers/soundcloud.js', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
690 |
'wp-includes/js/mediaelement/renderers/soundcloud.min.js', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
691 |
'wp-includes/js/mediaelement/renderers/twitch.js', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
692 |
'wp-includes/js/mediaelement/renderers/twitch.min.js', |
9 | 693 |
// 5.0 |
694 |
'wp-includes/js/codemirror/jshint.js', |
|
695 |
// 5.1 |
|
696 |
'wp-includes/js/tinymce/wp-tinymce.js.gz', |
|
16 | 697 |
// 5.3 |
698 |
'wp-includes/js/wp-a11y.js', // Moved to: wp-includes/js/dist/a11y.js |
|
699 |
'wp-includes/js/wp-a11y.min.js', // Moved to: wp-includes/js/dist/a11y.min.js |
|
700 |
// 5.4 |
|
701 |
'wp-admin/js/wp-fullscreen-stub.js', |
|
702 |
'wp-admin/js/wp-fullscreen-stub.min.js', |
|
703 |
// 5.5 |
|
704 |
'wp-admin/css/ie.css', |
|
705 |
'wp-admin/css/ie.min.css', |
|
706 |
'wp-admin/css/ie-rtl.css', |
|
707 |
'wp-admin/css/ie-rtl.min.css', |
|
18 | 708 |
// 5.6 |
709 |
'wp-includes/js/jquery/ui/position.min.js', |
|
710 |
'wp-includes/js/jquery/ui/widget.min.js', |
|
711 |
// 5.7 |
|
712 |
'wp-includes/blocks/classic/block.json', |
|
713 |
// 5.8 |
|
714 |
'wp-admin/images/freedoms.png', |
|
715 |
'wp-admin/images/privacy.png', |
|
716 |
'wp-admin/images/about-badge.svg', |
|
717 |
'wp-admin/images/about-color-palette.svg', |
|
718 |
'wp-admin/images/about-color-palette-vert.svg', |
|
719 |
'wp-admin/images/about-header-brushes.svg', |
|
720 |
'wp-includes/block-patterns/large-header.php', |
|
721 |
'wp-includes/block-patterns/heading-paragraph.php', |
|
722 |
'wp-includes/block-patterns/quote.php', |
|
723 |
'wp-includes/block-patterns/text-three-columns-buttons.php', |
|
724 |
'wp-includes/block-patterns/two-buttons.php', |
|
725 |
'wp-includes/block-patterns/two-images.php', |
|
726 |
'wp-includes/block-patterns/three-buttons.php', |
|
727 |
'wp-includes/block-patterns/text-two-columns-with-images.php', |
|
728 |
'wp-includes/block-patterns/text-two-columns.php', |
|
729 |
'wp-includes/block-patterns/large-header-button.php', |
|
730 |
'wp-includes/blocks/subhead', |
|
731 |
'wp-includes/css/dist/editor/editor-styles.css', |
|
732 |
'wp-includes/css/dist/editor/editor-styles.min.css', |
|
733 |
'wp-includes/css/dist/editor/editor-styles-rtl.css', |
|
734 |
'wp-includes/css/dist/editor/editor-styles-rtl.min.css', |
|
19 | 735 |
// 5.9 |
736 |
'wp-includes/blocks/heading/editor.css', |
|
737 |
'wp-includes/blocks/heading/editor.min.css', |
|
738 |
'wp-includes/blocks/heading/editor-rtl.css', |
|
739 |
'wp-includes/blocks/heading/editor-rtl.min.css', |
|
740 |
'wp-includes/blocks/query-title/editor.css', |
|
741 |
'wp-includes/blocks/query-title/editor.min.css', |
|
742 |
'wp-includes/blocks/query-title/editor-rtl.css', |
|
743 |
'wp-includes/blocks/query-title/editor-rtl.min.css', |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
744 |
/* |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
745 |
* Restored in WordPress 6.7 |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
746 |
* |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
747 |
* 'wp-includes/blocks/tag-cloud/editor.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
748 |
* 'wp-includes/blocks/tag-cloud/editor.min.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
749 |
* 'wp-includes/blocks/tag-cloud/editor-rtl.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
750 |
* 'wp-includes/blocks/tag-cloud/editor-rtl.min.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
751 |
*/ |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
752 |
// 6.1 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
753 |
'wp-includes/blocks/post-comments.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
754 |
'wp-includes/blocks/post-comments', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
755 |
'wp-includes/blocks/comments-query-loop', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
756 |
// 6.3 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
757 |
'wp-includes/images/wlw', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
758 |
'wp-includes/wlwmanifest.xml', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
759 |
'wp-includes/random_compat', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
760 |
// 6.4 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
761 |
'wp-includes/navigation-fallback.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
762 |
'wp-includes/blocks/navigation/view-modal.min.js', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
763 |
'wp-includes/blocks/navigation/view-modal.js', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
764 |
// 6.5 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
765 |
'wp-includes/ID3/license.commercial.txt', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
766 |
'wp-includes/blocks/query/style-rtl.min.css', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
767 |
'wp-includes/blocks/query/style.min.css', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
768 |
'wp-includes/blocks/query/style-rtl.css', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
769 |
'wp-includes/blocks/query/style.css', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
770 |
'wp-admin/images/about-header-privacy.svg', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
771 |
'wp-admin/images/about-header-about.svg', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
772 |
'wp-admin/images/about-header-credits.svg', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
773 |
'wp-admin/images/about-header-freedoms.svg', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
774 |
'wp-admin/images/about-header-contribute.svg', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
775 |
'wp-admin/images/about-header-background.svg', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
776 |
// 6.6 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
777 |
'wp-includes/blocks/block/editor.css', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
778 |
'wp-includes/blocks/block/editor.min.css', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
779 |
'wp-includes/blocks/block/editor-rtl.css', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
780 |
'wp-includes/blocks/block/editor-rtl.min.css', |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
781 |
/* |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
782 |
* 6.7 |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
783 |
* |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
784 |
* WordPress 6.7 included a SimplePie upgrade that included a major |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
785 |
* refactoring of the file structure and library. The old files are |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
786 |
* split in to two sections to account for this: files and directories. |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
787 |
* |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
788 |
* See https://core.trac.wordpress.org/changeset/59141 |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
789 |
*/ |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
790 |
// 6.7 - files |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
791 |
'wp-includes/js/dist/interactivity-router.asset.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
792 |
'wp-includes/js/dist/interactivity-router.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
793 |
'wp-includes/js/dist/interactivity-router.min.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
794 |
'wp-includes/js/dist/interactivity-router.min.asset.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
795 |
'wp-includes/js/dist/interactivity.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
796 |
'wp-includes/js/dist/interactivity.min.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
797 |
'wp-includes/js/dist/vendor/react-dom.min.js.LICENSE.txt', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
798 |
'wp-includes/js/dist/vendor/react.min.js.LICENSE.txt', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
799 |
'wp-includes/js/dist/vendor/wp-polyfill-importmap.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
800 |
'wp-includes/js/dist/vendor/wp-polyfill-importmap.min.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
801 |
'wp-includes/sodium_compat/src/Core/Base64/Common.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
802 |
'wp-includes/SimplePie/Author.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
803 |
'wp-includes/SimplePie/Cache.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
804 |
'wp-includes/SimplePie/Caption.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
805 |
'wp-includes/SimplePie/Category.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
806 |
'wp-includes/SimplePie/Copyright.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
807 |
'wp-includes/SimplePie/Core.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
808 |
'wp-includes/SimplePie/Credit.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
809 |
'wp-includes/SimplePie/Enclosure.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
810 |
'wp-includes/SimplePie/Exception.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
811 |
'wp-includes/SimplePie/File.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
812 |
'wp-includes/SimplePie/gzdecode.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
813 |
'wp-includes/SimplePie/IRI.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
814 |
'wp-includes/SimplePie/Item.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
815 |
'wp-includes/SimplePie/Locator.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
816 |
'wp-includes/SimplePie/Misc.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
817 |
'wp-includes/SimplePie/Parser.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
818 |
'wp-includes/SimplePie/Rating.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
819 |
'wp-includes/SimplePie/Registry.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
820 |
'wp-includes/SimplePie/Restriction.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
821 |
'wp-includes/SimplePie/Sanitize.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
822 |
'wp-includes/SimplePie/Source.php', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
823 |
// 6.7 - directories |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
824 |
'wp-includes/SimplePie/Cache/', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
825 |
'wp-includes/SimplePie/Content/', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
826 |
'wp-includes/SimplePie/Decode/', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
827 |
'wp-includes/SimplePie/HTTP/', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
828 |
'wp-includes/SimplePie/Net/', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
829 |
'wp-includes/SimplePie/Parse/', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
830 |
'wp-includes/SimplePie/XML/', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
831 |
// 6.8 |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
832 |
'wp-includes/blocks/post-content/editor.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
833 |
'wp-includes/blocks/post-content/editor.min.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
834 |
'wp-includes/blocks/post-content/editor-rtl.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
835 |
'wp-includes/blocks/post-content/editor-rtl.min.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
836 |
'wp-includes/blocks/post-template/editor.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
837 |
'wp-includes/blocks/post-template/editor.min.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
838 |
'wp-includes/blocks/post-template/editor-rtl.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
839 |
'wp-includes/blocks/post-template/editor-rtl.min.css', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
840 |
'wp-includes/js/dist/undo-manager.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
841 |
'wp-includes/js/dist/undo-manager.min.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
842 |
'wp-includes/js/dist/fields.min.js', |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
843 |
'wp-includes/js/dist/fields.js', |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
844 |
); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
845 |
|
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
846 |
/** |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
847 |
* Stores Requests files to be preloaded and deleted. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
848 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
849 |
* For classes/interfaces, use the class/interface name |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
850 |
* as the array key. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
851 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
852 |
* All other files/directories should not have a key. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
853 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
854 |
* @since 6.2.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
855 |
* |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
856 |
* @global string[] $_old_requests_files |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
857 |
* @var string[] |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
858 |
* @name $_old_requests_files |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
859 |
*/ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
860 |
global $_old_requests_files; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
861 |
|
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
862 |
$_old_requests_files = array( |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
863 |
// Interfaces. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
864 |
'Requests_Auth' => 'wp-includes/Requests/Auth.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
865 |
'Requests_Hooker' => 'wp-includes/Requests/Hooker.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
866 |
'Requests_Proxy' => 'wp-includes/Requests/Proxy.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
867 |
'Requests_Transport' => 'wp-includes/Requests/Transport.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
868 |
|
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
869 |
// Classes. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
870 |
'Requests_Auth_Basic' => 'wp-includes/Requests/Auth/Basic.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
871 |
'Requests_Cookie_Jar' => 'wp-includes/Requests/Cookie/Jar.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
872 |
'Requests_Exception_HTTP' => 'wp-includes/Requests/Exception/HTTP.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
873 |
'Requests_Exception_Transport' => 'wp-includes/Requests/Exception/Transport.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
874 |
'Requests_Exception_HTTP_304' => 'wp-includes/Requests/Exception/HTTP/304.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
875 |
'Requests_Exception_HTTP_305' => 'wp-includes/Requests/Exception/HTTP/305.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
876 |
'Requests_Exception_HTTP_306' => 'wp-includes/Requests/Exception/HTTP/306.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
877 |
'Requests_Exception_HTTP_400' => 'wp-includes/Requests/Exception/HTTP/400.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
878 |
'Requests_Exception_HTTP_401' => 'wp-includes/Requests/Exception/HTTP/401.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
879 |
'Requests_Exception_HTTP_402' => 'wp-includes/Requests/Exception/HTTP/402.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
880 |
'Requests_Exception_HTTP_403' => 'wp-includes/Requests/Exception/HTTP/403.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
881 |
'Requests_Exception_HTTP_404' => 'wp-includes/Requests/Exception/HTTP/404.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
882 |
'Requests_Exception_HTTP_405' => 'wp-includes/Requests/Exception/HTTP/405.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
883 |
'Requests_Exception_HTTP_406' => 'wp-includes/Requests/Exception/HTTP/406.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
884 |
'Requests_Exception_HTTP_407' => 'wp-includes/Requests/Exception/HTTP/407.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
885 |
'Requests_Exception_HTTP_408' => 'wp-includes/Requests/Exception/HTTP/408.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
886 |
'Requests_Exception_HTTP_409' => 'wp-includes/Requests/Exception/HTTP/409.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
887 |
'Requests_Exception_HTTP_410' => 'wp-includes/Requests/Exception/HTTP/410.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
888 |
'Requests_Exception_HTTP_411' => 'wp-includes/Requests/Exception/HTTP/411.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
889 |
'Requests_Exception_HTTP_412' => 'wp-includes/Requests/Exception/HTTP/412.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
890 |
'Requests_Exception_HTTP_413' => 'wp-includes/Requests/Exception/HTTP/413.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
891 |
'Requests_Exception_HTTP_414' => 'wp-includes/Requests/Exception/HTTP/414.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
892 |
'Requests_Exception_HTTP_415' => 'wp-includes/Requests/Exception/HTTP/415.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
893 |
'Requests_Exception_HTTP_416' => 'wp-includes/Requests/Exception/HTTP/416.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
894 |
'Requests_Exception_HTTP_417' => 'wp-includes/Requests/Exception/HTTP/417.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
895 |
'Requests_Exception_HTTP_418' => 'wp-includes/Requests/Exception/HTTP/418.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
896 |
'Requests_Exception_HTTP_428' => 'wp-includes/Requests/Exception/HTTP/428.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
897 |
'Requests_Exception_HTTP_429' => 'wp-includes/Requests/Exception/HTTP/429.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
898 |
'Requests_Exception_HTTP_431' => 'wp-includes/Requests/Exception/HTTP/431.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
899 |
'Requests_Exception_HTTP_500' => 'wp-includes/Requests/Exception/HTTP/500.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
900 |
'Requests_Exception_HTTP_501' => 'wp-includes/Requests/Exception/HTTP/501.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
901 |
'Requests_Exception_HTTP_502' => 'wp-includes/Requests/Exception/HTTP/502.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
902 |
'Requests_Exception_HTTP_503' => 'wp-includes/Requests/Exception/HTTP/503.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
903 |
'Requests_Exception_HTTP_504' => 'wp-includes/Requests/Exception/HTTP/504.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
904 |
'Requests_Exception_HTTP_505' => 'wp-includes/Requests/Exception/HTTP/505.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
905 |
'Requests_Exception_HTTP_511' => 'wp-includes/Requests/Exception/HTTP/511.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
906 |
'Requests_Exception_HTTP_Unknown' => 'wp-includes/Requests/Exception/HTTP/Unknown.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
907 |
'Requests_Exception_Transport_cURL' => 'wp-includes/Requests/Exception/Transport/cURL.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
908 |
'Requests_Proxy_HTTP' => 'wp-includes/Requests/Proxy/HTTP.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
909 |
'Requests_Response_Headers' => 'wp-includes/Requests/Response/Headers.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
910 |
'Requests_Transport_cURL' => 'wp-includes/Requests/Transport/cURL.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
911 |
'Requests_Transport_fsockopen' => 'wp-includes/Requests/Transport/fsockopen.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
912 |
'Requests_Utility_CaseInsensitiveDictionary' => 'wp-includes/Requests/Utility/CaseInsensitiveDictionary.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
913 |
'Requests_Utility_FilteredIterator' => 'wp-includes/Requests/Utility/FilteredIterator.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
914 |
'Requests_Cookie' => 'wp-includes/Requests/Cookie.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
915 |
'Requests_Exception' => 'wp-includes/Requests/Exception.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
916 |
'Requests_Hooks' => 'wp-includes/Requests/Hooks.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
917 |
'Requests_IDNAEncoder' => 'wp-includes/Requests/IDNAEncoder.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
918 |
'Requests_IPv6' => 'wp-includes/Requests/IPv6.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
919 |
'Requests_IRI' => 'wp-includes/Requests/IRI.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
920 |
'Requests_Response' => 'wp-includes/Requests/Response.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
921 |
'Requests_SSL' => 'wp-includes/Requests/SSL.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
922 |
'Requests_Session' => 'wp-includes/Requests/Session.php', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
923 |
|
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
924 |
// Directories. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
925 |
'wp-includes/Requests/Auth/', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
926 |
'wp-includes/Requests/Cookie/', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
927 |
'wp-includes/Requests/Exception/HTTP/', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
928 |
'wp-includes/Requests/Exception/Transport/', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
929 |
'wp-includes/Requests/Exception/', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
930 |
'wp-includes/Requests/Proxy/', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
931 |
'wp-includes/Requests/Response/', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
932 |
'wp-includes/Requests/Transport/', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
933 |
'wp-includes/Requests/Utility/', |
0 | 934 |
); |
935 |
||
936 |
/** |
|
937 |
* Stores new files in wp-content to copy |
|
938 |
* |
|
939 |
* The contents of this array indicate any new bundled plugins/themes which |
|
940 |
* should be installed with the WordPress Upgrade. These items will not be |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
941 |
* re-installed in future upgrades, this behavior is controlled by the |
0 | 942 |
* introduced version present here being older than the current installed version. |
943 |
* |
|
944 |
* The content of this array should follow the following format: |
|
945 |
* Filename (relative to wp-content) => Introduced version |
|
946 |
* Directories should be noted by suffixing it with a trailing slash (/) |
|
947 |
* |
|
948 |
* @since 3.2.0 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
949 |
* @since 4.7.0 New themes were not automatically installed for 4.4-4.6 on |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
950 |
* upgrade. New themes are now installed again. To disable new |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
951 |
* themes from being installed on upgrade, explicitly define |
16 | 952 |
* CORE_UPGRADE_SKIP_NEW_BUNDLED as true. |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
953 |
* @global string[] $_new_bundled_files |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
954 |
* @var string[] |
0 | 955 |
* @name $_new_bundled_files |
956 |
*/ |
|
957 |
global $_new_bundled_files; |
|
958 |
||
959 |
$_new_bundled_files = array( |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
960 |
'plugins/akismet/' => '2.0', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
961 |
'themes/twentyten/' => '3.0', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
962 |
'themes/twentyeleven/' => '3.2', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
963 |
'themes/twentytwelve/' => '3.5', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
964 |
'themes/twentythirteen/' => '3.6', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
965 |
'themes/twentyfourteen/' => '3.8', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
966 |
'themes/twentyfifteen/' => '4.1', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
967 |
'themes/twentysixteen/' => '4.4', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
968 |
'themes/twentyseventeen/' => '4.7', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
969 |
'themes/twentynineteen/' => '5.0', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
970 |
'themes/twentytwenty/' => '5.3', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
971 |
'themes/twentytwentyone/' => '5.6', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
972 |
'themes/twentytwentytwo/' => '5.9', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
973 |
'themes/twentytwentythree/' => '6.1', |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
974 |
'themes/twentytwentyfour/' => '6.4', |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
975 |
'themes/twentytwentyfive/' => '6.7', |
0 | 976 |
); |
977 |
||
978 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
979 |
* Upgrades the core of WordPress. |
0 | 980 |
* |
981 |
* This will create a .maintenance file at the base of the WordPress directory |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
982 |
* to ensure that people can not access the website, when the files are being |
0 | 983 |
* copied to their locations. |
984 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
985 |
* The files in the `$_old_files` list will be removed and the new files |
0 | 986 |
* copied from the zip file after the database is upgraded. |
987 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
988 |
* The files in the `$_new_bundled_files` list will be added to the installation |
0 | 989 |
* if the version is greater than or equal to the old version being upgraded. |
990 |
* |
|
991 |
* The steps for the upgrader for after the new release is downloaded and |
|
992 |
* unzipped is: |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
993 |
* |
0 | 994 |
* 1. Test unzipped location for select files to ensure that unzipped worked. |
995 |
* 2. Create the .maintenance file in current WordPress base. |
|
996 |
* 3. Copy new WordPress directory over old WordPress files. |
|
997 |
* 4. Upgrade WordPress to new version. |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
998 |
* 1. Copy all files/folders other than wp-content |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
999 |
* 2. Copy any language files to `WP_LANG_DIR` (which may differ from `WP_CONTENT_DIR` |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1000 |
* 3. Copy any new bundled themes/plugins to their respective locations |
0 | 1001 |
* 5. Delete new WordPress directory path. |
1002 |
* 6. Delete .maintenance file. |
|
1003 |
* 7. Remove old files. |
|
1004 |
* 8. Delete 'update_core' option. |
|
1005 |
* |
|
1006 |
* There are several areas of failure. For instance if PHP times out before step |
|
1007 |
* 6, then you will not be able to access any portion of your site. Also, since |
|
1008 |
* the upgrade will not continue where it left off, you will not be able to |
|
1009 |
* automatically remove old files and remove the 'update_core' option. This |
|
1010 |
* isn't that bad. |
|
1011 |
* |
|
1012 |
* If the copy of the new WordPress over the old fails, then the worse is that |
|
1013 |
* the new WordPress directory will remain. |
|
1014 |
* |
|
1015 |
* If it is assumed that every file will be copied over, including plugins and |
|
1016 |
* themes, then if you edit the default theme, you should rename it, so that |
|
1017 |
* your changes remain. |
|
1018 |
* |
|
1019 |
* @since 2.7.0 |
|
1020 |
* |
|
9 | 1021 |
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1022 |
* @global string[] $_old_files |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1023 |
* @global string[] $_old_requests_files |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1024 |
* @global string[] $_new_bundled_files |
16 | 1025 |
* @global wpdb $wpdb WordPress database abstraction object. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1026 |
* |
0 | 1027 |
* @param string $from New release unzipped path. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1028 |
* @param string $to Path to old WordPress installation. |
16 | 1029 |
* @return string|WP_Error New WordPress version on success, WP_Error on failure. |
0 | 1030 |
*/ |
9 | 1031 |
function update_core( $from, $to ) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1032 |
global $wp_filesystem, $_old_files, $_old_requests_files, $_new_bundled_files, $wpdb; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1033 |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1034 |
/* |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1035 |
* Give core update script an additional 300 seconds (5 minutes) |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1036 |
* to finish updating large files when running on slower servers. |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1037 |
*/ |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1038 |
if ( function_exists( 'set_time_limit' ) ) { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1039 |
set_time_limit( 300 ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1040 |
} |
0 | 1041 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1042 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1043 |
* Merge the old Requests files and directories into the `$_old_files`. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1044 |
* Then preload these Requests files first, before the files are deleted |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1045 |
* and replaced to ensure the code is in memory if needed. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1046 |
*/ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1047 |
$_old_files = array_merge( $_old_files, array_values( $_old_requests_files ) ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1048 |
_preload_old_requests_classes_and_interfaces( $to ); |
0 | 1049 |
|
5 | 1050 |
/** |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1051 |
* Filters feedback messages displayed during the core update process. |
5 | 1052 |
* |
1053 |
* The filter is first evaluated after the zip file for the latest version |
|
1054 |
* has been downloaded and unzipped. It is evaluated five more times during |
|
1055 |
* the process: |
|
1056 |
* |
|
1057 |
* 1. Before WordPress begins the core upgrade process. |
|
1058 |
* 2. Before Maintenance Mode is enabled. |
|
1059 |
* 3. Before WordPress begins copying over the necessary files. |
|
1060 |
* 4. Before Maintenance Mode is disabled. |
|
1061 |
* 5. Before the database is upgraded. |
|
1062 |
* |
|
1063 |
* @since 2.5.0 |
|
1064 |
* |
|
1065 |
* @param string $feedback The core update feedback messages. |
|
1066 |
*/ |
|
1067 |
apply_filters( 'update_feedback', __( 'Verifying the unpacked files…' ) ); |
|
1068 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1069 |
// Confidence check the unzipped distribution. |
0 | 1070 |
$distro = ''; |
9 | 1071 |
$roots = array( '/wordpress/', '/wordpress-mu/' ); |
18 | 1072 |
|
0 | 1073 |
foreach ( $roots as $root ) { |
18 | 1074 |
if ( $wp_filesystem->exists( $from . $root . 'readme.html' ) |
1075 |
&& $wp_filesystem->exists( $from . $root . 'wp-includes/version.php' ) |
|
1076 |
) { |
|
0 | 1077 |
$distro = $root; |
1078 |
break; |
|
1079 |
} |
|
1080 |
} |
|
18 | 1081 |
|
0 | 1082 |
if ( ! $distro ) { |
1083 |
$wp_filesystem->delete( $from, true ); |
|
18 | 1084 |
|
9 | 1085 |
return new WP_Error( 'insane_distro', __( 'The update could not be unpacked' ) ); |
0 | 1086 |
} |
1087 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1088 |
/* |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1089 |
* Import $wp_version, $required_php_version, $required_php_extensions, and $required_mysql_version from the new version. |
19 | 1090 |
* DO NOT globalize any variables imported from `version-current.php` in this function. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1091 |
* |
18 | 1092 |
* BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1093 |
*/ |
0 | 1094 |
$versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php'; |
18 | 1095 |
|
0 | 1096 |
if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) { |
5 | 1097 |
$wp_filesystem->delete( $from, true ); |
18 | 1098 |
|
1099 |
return new WP_Error( |
|
1100 |
'copy_failed_for_version_file', |
|
19 | 1101 |
__( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.' ), |
18 | 1102 |
'wp-includes/version.php' |
1103 |
); |
|
0 | 1104 |
} |
1105 |
||
1106 |
$wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE ); |
|
18 | 1107 |
|
1108 |
/* |
|
1109 |
* `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, |
|
1110 |
* so don't run it when upgrading from older versions. |
|
1111 |
*/ |
|
1112 |
if ( function_exists( 'wp_opcache_invalidate' ) ) { |
|
1113 |
wp_opcache_invalidate( $versions_file ); |
|
1114 |
} |
|
1115 |
||
16 | 1116 |
require WP_CONTENT_DIR . '/upgrade/version-current.php'; |
0 | 1117 |
$wp_filesystem->delete( $versions_file ); |
1118 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1119 |
$php_version = PHP_VERSION; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1120 |
$mysql_version = $wpdb->db_version(); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1121 |
$old_wp_version = $GLOBALS['wp_version']; // The version of WordPress we're updating from. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1122 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1123 |
* Note: str_contains() is not used here, as this file is included |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1124 |
* when updating from older WordPress versions, in which case |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1125 |
* the polyfills from wp-includes/compat.php may not be available. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1126 |
*/ |
16 | 1127 |
$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // A dash in the version indicates a development release. |
9 | 1128 |
$php_compat = version_compare( $php_version, $required_php_version, '>=' ); |
18 | 1129 |
|
9 | 1130 |
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { |
0 | 1131 |
$mysql_compat = true; |
9 | 1132 |
} else { |
0 | 1133 |
$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); |
9 | 1134 |
} |
1135 |
||
1136 |
if ( ! $mysql_compat || ! $php_compat ) { |
|
1137 |
$wp_filesystem->delete( $from, true ); |
|
1138 |
} |
|
0 | 1139 |
|
9 | 1140 |
$php_update_message = ''; |
16 | 1141 |
|
9 | 1142 |
if ( function_exists( 'wp_get_update_php_url' ) ) { |
16 | 1143 |
$php_update_message = '</p><p>' . sprintf( |
18 | 1144 |
/* translators: %s: URL to Update PHP page. */ |
16 | 1145 |
__( '<a href="%s">Learn more about updating PHP</a>.' ), |
1146 |
esc_url( wp_get_update_php_url() ) |
|
1147 |
); |
|
0 | 1148 |
|
9 | 1149 |
if ( function_exists( 'wp_get_update_php_annotation' ) ) { |
1150 |
$annotation = wp_get_update_php_annotation(); |
|
16 | 1151 |
|
9 | 1152 |
if ( $annotation ) { |
1153 |
$php_update_message .= '</p><p><em>' . $annotation . '</em>'; |
|
1154 |
} |
|
1155 |
} |
|
1156 |
} |
|
1157 |
||
1158 |
if ( ! $mysql_compat && ! $php_compat ) { |
|
16 | 1159 |
return new WP_Error( |
1160 |
'php_mysql_not_compatible', |
|
1161 |
sprintf( |
|
1162 |
/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Minimum required MySQL version number, 4: Current PHP version number, 5: Current MySQL version number. */ |
|
1163 |
__( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), |
|
1164 |
$wp_version, |
|
1165 |
$required_php_version, |
|
1166 |
$required_mysql_version, |
|
1167 |
$php_version, |
|
1168 |
$mysql_version |
|
1169 |
) . $php_update_message |
|
1170 |
); |
|
9 | 1171 |
} elseif ( ! $php_compat ) { |
16 | 1172 |
return new WP_Error( |
1173 |
'php_not_compatible', |
|
1174 |
sprintf( |
|
1175 |
/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number. */ |
|
1176 |
__( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ), |
|
1177 |
$wp_version, |
|
1178 |
$required_php_version, |
|
1179 |
$php_version |
|
1180 |
) . $php_update_message |
|
1181 |
); |
|
9 | 1182 |
} elseif ( ! $mysql_compat ) { |
16 | 1183 |
return new WP_Error( |
1184 |
'mysql_not_compatible', |
|
1185 |
sprintf( |
|
1186 |
/* translators: 1: WordPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number. */ |
|
1187 |
__( 'The update cannot be installed because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.' ), |
|
1188 |
$wp_version, |
|
1189 |
$required_mysql_version, |
|
1190 |
$mysql_version |
|
1191 |
) |
|
1192 |
); |
|
1193 |
} |
|
1194 |
||
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1195 |
if ( isset( $required_php_extensions ) && is_array( $required_php_extensions ) ) { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1196 |
$missing_extensions = new WP_Error(); |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1197 |
|
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1198 |
foreach ( $required_php_extensions as $extension ) { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1199 |
if ( extension_loaded( $extension ) ) { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1200 |
continue; |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1201 |
} |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1202 |
|
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1203 |
$missing_extensions->add( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1204 |
"php_not_compatible_{$extension}", |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1205 |
sprintf( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1206 |
/* translators: 1: WordPress version number, 2: The PHP extension name needed. */ |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1207 |
__( 'The update cannot be installed because WordPress %1$s requires the %2$s PHP extension.' ), |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1208 |
$wp_version, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1209 |
$extension |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1210 |
) |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1211 |
); |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1212 |
} |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1213 |
|
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1214 |
// Add a warning when required PHP extensions are missing. |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1215 |
if ( ! empty( $missing_extensions->errors ) ) { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1216 |
return $missing_extensions; |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1217 |
} |
9 | 1218 |
} |
0 | 1219 |
|
5 | 1220 |
/** This filter is documented in wp-admin/includes/update-core.php */ |
0 | 1221 |
apply_filters( 'update_feedback', __( 'Preparing to install the latest version…' ) ); |
1222 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1223 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1224 |
* Don't copy wp-content, we'll deal with that below. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1225 |
* We also copy version.php last so failed updates report their old version. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1226 |
*/ |
9 | 1227 |
$skip = array( 'wp-content', 'wp-includes/version.php' ); |
0 | 1228 |
$check_is_writable = array(); |
1229 |
||
16 | 1230 |
// Check to see which files don't really need updating - only available for 3.7 and higher. |
0 | 1231 |
if ( function_exists( 'get_core_checksums' ) ) { |
16 | 1232 |
// Find the local version of the working directory. |
5 | 1233 |
$working_dir_local = WP_CONTENT_DIR . '/upgrade/' . basename( $from ) . $distro; |
1234 |
||
0 | 1235 |
$checksums = get_core_checksums( $wp_version, isset( $wp_local_package ) ? $wp_local_package : 'en_US' ); |
18 | 1236 |
|
9 | 1237 |
if ( is_array( $checksums ) && isset( $checksums[ $wp_version ] ) ) { |
16 | 1238 |
$checksums = $checksums[ $wp_version ]; // Compat code for 3.7-beta2. |
9 | 1239 |
} |
18 | 1240 |
|
0 | 1241 |
if ( is_array( $checksums ) ) { |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1242 |
foreach ( $checksums as $file => $checksum ) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1243 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1244 |
* Note: str_starts_with() is not used here, as this file is included |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1245 |
* when updating from older WordPress versions, in which case |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1246 |
* the polyfills from wp-includes/compat.php may not be available. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1247 |
*/ |
16 | 1248 |
if ( 'wp-content' === substr( $file, 0, 10 ) ) { |
0 | 1249 |
continue; |
9 | 1250 |
} |
18 | 1251 |
|
9 | 1252 |
if ( ! file_exists( ABSPATH . $file ) ) { |
0 | 1253 |
continue; |
9 | 1254 |
} |
18 | 1255 |
|
9 | 1256 |
if ( ! file_exists( $working_dir_local . $file ) ) { |
5 | 1257 |
continue; |
9 | 1258 |
} |
18 | 1259 |
|
1260 |
if ( '.' === dirname( $file ) |
|
1261 |
&& in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ), true ) |
|
1262 |
) { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1263 |
continue; |
9 | 1264 |
} |
18 | 1265 |
|
9 | 1266 |
if ( md5_file( ABSPATH . $file ) === $checksum ) { |
0 | 1267 |
$skip[] = $file; |
9 | 1268 |
} else { |
0 | 1269 |
$check_is_writable[ $file ] = ABSPATH . $file; |
9 | 1270 |
} |
0 | 1271 |
} |
1272 |
} |
|
1273 |
} |
|
1274 |
||
1275 |
// If we're using the direct method, we can predict write failures that are due to permissions. |
|
1276 |
if ( $check_is_writable && 'direct' === $wp_filesystem->method ) { |
|
1277 |
$files_writable = array_filter( $check_is_writable, array( $wp_filesystem, 'is_writable' ) ); |
|
18 | 1278 |
|
0 | 1279 |
if ( $files_writable !== $check_is_writable ) { |
1280 |
$files_not_writable = array_diff_key( $check_is_writable, $files_writable ); |
|
18 | 1281 |
|
0 | 1282 |
foreach ( $files_not_writable as $relative_file_not_writable => $file_not_writable ) { |
1283 |
// If the writable check failed, chmod file to 0644 and try again, same as copy_dir(). |
|
1284 |
$wp_filesystem->chmod( $file_not_writable, FS_CHMOD_FILE ); |
|
18 | 1285 |
|
9 | 1286 |
if ( $wp_filesystem->is_writable( $file_not_writable ) ) { |
0 | 1287 |
unset( $files_not_writable[ $relative_file_not_writable ] ); |
9 | 1288 |
} |
0 | 1289 |
} |
1290 |
||
1291 |
// Store package-relative paths (the key) of non-writable files in the WP_Error object. |
|
1292 |
$error_data = version_compare( $old_wp_version, '3.7-beta2', '>' ) ? array_keys( $files_not_writable ) : ''; |
|
1293 |
||
9 | 1294 |
if ( $files_not_writable ) { |
18 | 1295 |
return new WP_Error( |
1296 |
'files_not_writable', |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1297 |
__( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ), |
18 | 1298 |
implode( ', ', $error_data ) |
1299 |
); |
|
9 | 1300 |
} |
0 | 1301 |
} |
1302 |
} |
|
1303 |
||
5 | 1304 |
/** This filter is documented in wp-admin/includes/update-core.php */ |
0 | 1305 |
apply_filters( 'update_feedback', __( 'Enabling Maintenance mode…' ) ); |
18 | 1306 |
|
16 | 1307 |
// Create maintenance file to signal that we are upgrading. |
0 | 1308 |
$maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; |
9 | 1309 |
$maintenance_file = $to . '.maintenance'; |
1310 |
$wp_filesystem->delete( $maintenance_file ); |
|
1311 |
$wp_filesystem->put_contents( $maintenance_file, $maintenance_string, FS_CHMOD_FILE ); |
|
0 | 1312 |
|
5 | 1313 |
/** This filter is documented in wp-admin/includes/update-core.php */ |
0 | 1314 |
apply_filters( 'update_feedback', __( 'Copying the required files…' ) ); |
18 | 1315 |
|
0 | 1316 |
// Copy new versions of WP files into place. |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1317 |
$result = copy_dir( $from . $distro, $to, $skip ); |
18 | 1318 |
|
9 | 1319 |
if ( is_wp_error( $result ) ) { |
18 | 1320 |
$result = new WP_Error( |
1321 |
$result->get_error_code(), |
|
1322 |
$result->get_error_message(), |
|
1323 |
substr( $result->get_error_data(), strlen( $to ) ) |
|
1324 |
); |
|
9 | 1325 |
} |
0 | 1326 |
|
16 | 1327 |
// Since we know the core files have copied over, we can now copy the version file. |
5 | 1328 |
if ( ! is_wp_error( $result ) ) { |
1329 |
if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) { |
|
1330 |
$wp_filesystem->delete( $from, true ); |
|
18 | 1331 |
$result = new WP_Error( |
1332 |
'copy_failed_for_version_file', |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1333 |
__( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ), |
18 | 1334 |
'wp-includes/version.php' |
1335 |
); |
|
5 | 1336 |
} |
18 | 1337 |
|
5 | 1338 |
$wp_filesystem->chmod( $to . 'wp-includes/version.php', FS_CHMOD_FILE ); |
18 | 1339 |
|
1340 |
/* |
|
1341 |
* `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, |
|
1342 |
* so don't run it when upgrading from older versions. |
|
1343 |
*/ |
|
1344 |
if ( function_exists( 'wp_opcache_invalidate' ) ) { |
|
1345 |
wp_opcache_invalidate( $to . 'wp-includes/version.php' ); |
|
1346 |
} |
|
5 | 1347 |
} |
1348 |
||
16 | 1349 |
// Check to make sure everything copied correctly, ignoring the contents of wp-content. |
9 | 1350 |
$skip = array( 'wp-content' ); |
0 | 1351 |
$failed = array(); |
18 | 1352 |
|
0 | 1353 |
if ( isset( $checksums ) && is_array( $checksums ) ) { |
1354 |
foreach ( $checksums as $file => $checksum ) { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1355 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1356 |
* Note: str_starts_with() is not used here, as this file is included |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1357 |
* when updating from older WordPress versions, in which case |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1358 |
* the polyfills from wp-includes/compat.php may not be available. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1359 |
*/ |
16 | 1360 |
if ( 'wp-content' === substr( $file, 0, 10 ) ) { |
0 | 1361 |
continue; |
9 | 1362 |
} |
18 | 1363 |
|
9 | 1364 |
if ( ! file_exists( $working_dir_local . $file ) ) { |
5 | 1365 |
continue; |
9 | 1366 |
} |
18 | 1367 |
|
1368 |
if ( '.' === dirname( $file ) |
|
1369 |
&& in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ), true ) |
|
1370 |
) { |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1371 |
$skip[] = $file; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1372 |
continue; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1373 |
} |
18 | 1374 |
|
1375 |
if ( file_exists( ABSPATH . $file ) && md5_file( ABSPATH . $file ) === $checksum ) { |
|
0 | 1376 |
$skip[] = $file; |
9 | 1377 |
} else { |
0 | 1378 |
$failed[] = $file; |
9 | 1379 |
} |
0 | 1380 |
} |
1381 |
} |
|
1382 |
||
16 | 1383 |
// Some files didn't copy properly. |
0 | 1384 |
if ( ! empty( $failed ) ) { |
1385 |
$total_size = 0; |
|
18 | 1386 |
|
0 | 1387 |
foreach ( $failed as $file ) { |
9 | 1388 |
if ( file_exists( $working_dir_local . $file ) ) { |
0 | 1389 |
$total_size += filesize( $working_dir_local . $file ); |
9 | 1390 |
} |
0 | 1391 |
} |
1392 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1393 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1394 |
* If we don't have enough free space, it isn't worth trying again. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1395 |
* Unlikely to be hit due to the check in unzip_file(). |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1396 |
*/ |
19 | 1397 |
$available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( ABSPATH ) : false; |
18 | 1398 |
|
0 | 1399 |
if ( $available_space && $total_size >= $available_space ) { |
1400 |
$result = new WP_Error( 'disk_full', __( 'There is not enough free disk space to complete the update.' ) ); |
|
1401 |
} else { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1402 |
$result = copy_dir( $from . $distro, $to, $skip ); |
18 | 1403 |
|
9 | 1404 |
if ( is_wp_error( $result ) ) { |
18 | 1405 |
$result = new WP_Error( |
1406 |
$result->get_error_code() . '_retry', |
|
1407 |
$result->get_error_message(), |
|
1408 |
substr( $result->get_error_data(), strlen( $to ) ) |
|
1409 |
); |
|
9 | 1410 |
} |
0 | 1411 |
} |
1412 |
} |
|
1413 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1414 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1415 |
* Custom content directory needs updating now. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1416 |
* Copy languages. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1417 |
*/ |
9 | 1418 |
if ( ! is_wp_error( $result ) && $wp_filesystem->is_dir( $from . $distro . 'wp-content/languages' ) ) { |
18 | 1419 |
if ( WP_LANG_DIR !== ABSPATH . WPINC . '/languages' || @is_dir( WP_LANG_DIR ) ) { |
0 | 1420 |
$lang_dir = WP_LANG_DIR; |
9 | 1421 |
} else { |
0 | 1422 |
$lang_dir = WP_CONTENT_DIR . '/languages'; |
9 | 1423 |
} |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1424 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1425 |
* Note: str_starts_with() is not used here, as this file is included |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1426 |
* when updating from older WordPress versions, in which case |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1427 |
* the polyfills from wp-includes/compat.php may not be available. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1428 |
*/ |
16 | 1429 |
// Check if the language directory exists first. |
1430 |
if ( ! @is_dir( $lang_dir ) && 0 === strpos( $lang_dir, ABSPATH ) ) { |
|
1431 |
// If it's within the ABSPATH we can handle it here, otherwise they're out of luck. |
|
1432 |
$wp_filesystem->mkdir( $to . str_replace( ABSPATH, '', $lang_dir ), FS_CHMOD_DIR ); |
|
1433 |
clearstatcache(); // For FTP, need to clear the stat cache. |
|
0 | 1434 |
} |
1435 |
||
9 | 1436 |
if ( @is_dir( $lang_dir ) ) { |
1437 |
$wp_lang_dir = $wp_filesystem->find_folder( $lang_dir ); |
|
18 | 1438 |
|
0 | 1439 |
if ( $wp_lang_dir ) { |
9 | 1440 |
$result = copy_dir( $from . $distro . 'wp-content/languages/', $wp_lang_dir ); |
18 | 1441 |
|
9 | 1442 |
if ( is_wp_error( $result ) ) { |
18 | 1443 |
$result = new WP_Error( |
1444 |
$result->get_error_code() . '_languages', |
|
1445 |
$result->get_error_message(), |
|
1446 |
substr( $result->get_error_data(), strlen( $wp_lang_dir ) ) |
|
1447 |
); |
|
9 | 1448 |
} |
0 | 1449 |
} |
1450 |
} |
|
1451 |
} |
|
1452 |
||
5 | 1453 |
/** This filter is documented in wp-admin/includes/update-core.php */ |
0 | 1454 |
apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) ); |
18 | 1455 |
|
16 | 1456 |
// Remove maintenance file, we're done with potential site-breaking changes. |
0 | 1457 |
$wp_filesystem->delete( $maintenance_file ); |
1458 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1459 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1460 |
* 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1461 |
* preventing installation of Twenty Twelve. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1462 |
*/ |
16 | 1463 |
if ( '3.5' === $old_wp_version ) { |
18 | 1464 |
if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' ) |
1465 |
&& ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' ) |
|
1466 |
) { |
|
0 | 1467 |
$wp_filesystem->delete( $wp_filesystem->wp_themes_dir() . 'twentytwelve/' ); |
1468 |
} |
|
1469 |
} |
|
1470 |
||
16 | 1471 |
/* |
1472 |
* Copy new bundled plugins & themes. |
|
1473 |
* This gives us the ability to install new plugins & themes bundled with |
|
1474 |
* future versions of WordPress whilst avoiding the re-install upon upgrade issue. |
|
1475 |
* $development_build controls us overwriting bundled themes and plugins when a non-stable release is being updated. |
|
1476 |
*/ |
|
18 | 1477 |
if ( ! is_wp_error( $result ) |
1478 |
&& ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || ! CORE_UPGRADE_SKIP_NEW_BUNDLED ) |
|
1479 |
) { |
|
0 | 1480 |
foreach ( (array) $_new_bundled_files as $file => $introduced_version ) { |
16 | 1481 |
// If a $development_build or if $introduced version is greater than what the site was previously running. |
0 | 1482 |
if ( $development_build || version_compare( $introduced_version, $old_wp_version, '>' ) ) { |
16 | 1483 |
$directory = ( '/' === $file[ strlen( $file ) - 1 ] ); |
0 | 1484 |
|
16 | 1485 |
list( $type, $filename ) = explode( '/', $file, 2 ); |
1486 |
||
1487 |
// Check to see if the bundled items exist before attempting to copy them. |
|
9 | 1488 |
if ( ! $wp_filesystem->exists( $from . $distro . 'wp-content/' . $file ) ) { |
0 | 1489 |
continue; |
9 | 1490 |
} |
0 | 1491 |
|
16 | 1492 |
if ( 'plugins' === $type ) { |
0 | 1493 |
$dest = $wp_filesystem->wp_plugins_dir(); |
16 | 1494 |
} elseif ( 'themes' === $type ) { |
1495 |
// Back-compat, ::wp_themes_dir() did not return trailingslash'd pre-3.2. |
|
1496 |
$dest = trailingslashit( $wp_filesystem->wp_themes_dir() ); |
|
9 | 1497 |
} else { |
0 | 1498 |
continue; |
9 | 1499 |
} |
0 | 1500 |
|
1501 |
if ( ! $directory ) { |
|
9 | 1502 |
if ( ! $development_build && $wp_filesystem->exists( $dest . $filename ) ) { |
0 | 1503 |
continue; |
9 | 1504 |
} |
0 | 1505 |
|
9 | 1506 |
if ( ! $wp_filesystem->copy( $from . $distro . 'wp-content/' . $file, $dest . $filename, FS_CHMOD_FILE ) ) { |
0 | 1507 |
$result = new WP_Error( "copy_failed_for_new_bundled_$type", __( 'Could not copy file.' ), $dest . $filename ); |
9 | 1508 |
} |
0 | 1509 |
} else { |
9 | 1510 |
if ( ! $development_build && $wp_filesystem->is_dir( $dest . $filename ) ) { |
0 | 1511 |
continue; |
9 | 1512 |
} |
0 | 1513 |
|
9 | 1514 |
$wp_filesystem->mkdir( $dest . $filename, FS_CHMOD_DIR ); |
1515 |
$_result = copy_dir( $from . $distro . 'wp-content/' . $file, $dest . $filename ); |
|
0 | 1516 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1517 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1518 |
* If an error occurs partway through this final step, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1519 |
* keep the error flowing through, but keep the process going. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1520 |
*/ |
0 | 1521 |
if ( is_wp_error( $_result ) ) { |
9 | 1522 |
if ( ! is_wp_error( $result ) ) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1523 |
$result = new WP_Error(); |
9 | 1524 |
} |
18 | 1525 |
|
1526 |
$result->add( |
|
1527 |
$_result->get_error_code() . "_$type", |
|
1528 |
$_result->get_error_message(), |
|
1529 |
substr( $_result->get_error_data(), strlen( $dest ) ) |
|
1530 |
); |
|
0 | 1531 |
} |
1532 |
} |
|
1533 |
} |
|
16 | 1534 |
} // End foreach. |
0 | 1535 |
} |
1536 |
||
16 | 1537 |
// Handle $result error from the above blocks. |
9 | 1538 |
if ( is_wp_error( $result ) ) { |
1539 |
$wp_filesystem->delete( $from, true ); |
|
18 | 1540 |
|
0 | 1541 |
return $result; |
1542 |
} |
|
1543 |
||
16 | 1544 |
// Remove old files. |
0 | 1545 |
foreach ( $_old_files as $old_file ) { |
1546 |
$old_file = $to . $old_file; |
|
18 | 1547 |
|
9 | 1548 |
if ( ! $wp_filesystem->exists( $old_file ) ) { |
0 | 1549 |
continue; |
9 | 1550 |
} |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1551 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1552 |
// If the file isn't deleted, try writing an empty string to the file instead. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1553 |
if ( ! $wp_filesystem->delete( $old_file, true ) && $wp_filesystem->is_file( $old_file ) ) { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1554 |
$wp_filesystem->put_contents( $old_file, '' ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1555 |
} |
0 | 1556 |
} |
1557 |
||
16 | 1558 |
// Remove any Genericons example.html's from the filesystem. |
5 | 1559 |
_upgrade_422_remove_genericons(); |
1560 |
||
18 | 1561 |
// Deactivate the REST API plugin if its version is 2.0 Beta 4 or lower. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1562 |
_upgrade_440_force_deactivate_incompatible_plugins(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1563 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1564 |
// Deactivate incompatible plugins. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1565 |
_upgrade_core_deactivate_incompatible_plugins(); |
18 | 1566 |
|
16 | 1567 |
// Upgrade DB with separate request. |
5 | 1568 |
/** This filter is documented in wp-admin/includes/update-core.php */ |
1569 |
apply_filters( 'update_feedback', __( 'Upgrading database…' ) ); |
|
18 | 1570 |
|
9 | 1571 |
$db_upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' ); |
1572 |
wp_remote_post( $db_upgrade_url, array( 'timeout' => 60 ) ); |
|
0 | 1573 |
|
16 | 1574 |
// Clear the cache to prevent an update_option() from saving a stale db_version to the cache. |
5 | 1575 |
wp_cache_flush(); |
16 | 1576 |
// Not all cache back ends listen to 'flush'. |
5 | 1577 |
wp_cache_delete( 'alloptions', 'options' ); |
1578 |
||
16 | 1579 |
// Remove working directory. |
9 | 1580 |
$wp_filesystem->delete( $from, true ); |
0 | 1581 |
|
16 | 1582 |
// Force refresh of update information. |
9 | 1583 |
if ( function_exists( 'delete_site_transient' ) ) { |
1584 |
delete_site_transient( 'update_core' ); |
|
1585 |
} else { |
|
1586 |
delete_option( 'update_core' ); |
|
1587 |
} |
|
0 | 1588 |
|
5 | 1589 |
/** |
1590 |
* Fires after WordPress core has been successfully updated. |
|
1591 |
* |
|
1592 |
* @since 3.3.0 |
|
1593 |
* |
|
1594 |
* @param string $wp_version The current WordPress version. |
|
1595 |
*/ |
|
0 | 1596 |
do_action( '_core_updated_successfully', $wp_version ); |
1597 |
||
16 | 1598 |
// Clear the option that blocks auto-updates after failures, now that we've been successful. |
9 | 1599 |
if ( function_exists( 'delete_site_option' ) ) { |
0 | 1600 |
delete_site_option( 'auto_core_update_failed' ); |
9 | 1601 |
} |
0 | 1602 |
|
1603 |
return $wp_version; |
|
1604 |
} |
|
1605 |
||
1606 |
/** |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1607 |
* Preloads old Requests classes and interfaces. |
0 | 1608 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1609 |
* This function preloads the old Requests code into memory before the |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1610 |
* upgrade process deletes the files. Why? Requests code is loaded into |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1611 |
* memory via an autoloader, meaning when a class or interface is needed |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1612 |
* If a request is in process, Requests could attempt to access code. If |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1613 |
* the file is not there, a fatal error could occur. If the file was |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1614 |
* replaced, the new code is not compatible with the old, resulting in |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1615 |
* a fatal error. Preloading ensures the code is in memory before the |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1616 |
* code is updated. |
16 | 1617 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1618 |
* @since 6.2.0 |
16 | 1619 |
* |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1620 |
* @global string[] $_old_requests_files Requests files to be preloaded. |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1621 |
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1622 |
* @global string $wp_version The WordPress version string. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1623 |
* |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1624 |
* @param string $to Path to old WordPress installation. |
0 | 1625 |
*/ |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1626 |
function _preload_old_requests_classes_and_interfaces( $to ) { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1627 |
global $_old_requests_files, $wp_filesystem, $wp_version; |
0 | 1628 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1629 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1630 |
* Requests was introduced in WordPress 4.6. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1631 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1632 |
* Skip preloading if the website was previously using |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1633 |
* an earlier version of WordPress. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1634 |
*/ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1635 |
if ( version_compare( $wp_version, '4.6', '<' ) ) { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1636 |
return; |
18 | 1637 |
} |
1638 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1639 |
if ( ! defined( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS' ) ) { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1640 |
define( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS', true ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1641 |
} |
0 | 1642 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1643 |
foreach ( $_old_requests_files as $name => $file ) { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1644 |
// Skip files that aren't interfaces or classes. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1645 |
if ( is_int( $name ) ) { |
0 | 1646 |
continue; |
9 | 1647 |
} |
0 | 1648 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1649 |
// Skip if it's already loaded. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1650 |
if ( class_exists( $name ) || interface_exists( $name ) ) { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1651 |
continue; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1652 |
} |
16 | 1653 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1654 |
// Skip if the file is missing. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1655 |
if ( ! $wp_filesystem->is_file( $to . $file ) ) { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1656 |
continue; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1657 |
} |
0 | 1658 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1659 |
require_once $to . $file; |
0 | 1660 |
} |
1661 |
} |
|
1662 |
||
1663 |
/** |
|
1664 |
* Redirect to the About WordPress page after a successful upgrade. |
|
1665 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1666 |
* This function is only needed when the existing installation is older than 3.4.0. |
0 | 1667 |
* |
1668 |
* @since 3.3.0 |
|
1669 |
* |
|
16 | 1670 |
* @global string $wp_version The WordPress version string. |
19 | 1671 |
* @global string $pagenow The filename of the current screen. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1672 |
* @global string $action |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1673 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1674 |
* @param string $new_version |
0 | 1675 |
*/ |
1676 |
function _redirect_to_about_wordpress( $new_version ) { |
|
1677 |
global $wp_version, $pagenow, $action; |
|
1678 |
||
9 | 1679 |
if ( version_compare( $wp_version, '3.4-RC1', '>=' ) ) { |
0 | 1680 |
return; |
9 | 1681 |
} |
0 | 1682 |
|
1683 |
// Ensure we only run this on the update-core.php page. The Core_Upgrader may be used in other contexts. |
|
16 | 1684 |
if ( 'update-core.php' !== $pagenow ) { |
0 | 1685 |
return; |
9 | 1686 |
} |
0 | 1687 |
|
16 | 1688 |
if ( 'do-core-upgrade' !== $action && 'do-core-reinstall' !== $action ) { |
9 | 1689 |
return; |
1690 |
} |
|
0 | 1691 |
|
5 | 1692 |
// Load the updated default text localization domain for new strings. |
0 | 1693 |
load_default_textdomain(); |
1694 |
||
16 | 1695 |
// See do_core_upgrade(). |
1696 |
show_message( __( 'WordPress updated successfully.' ) ); |
|
0 | 1697 |
|
1698 |
// self_admin_url() won't exist when upgrading from <= 3.0, so relative URLs are intentional. |
|
16 | 1699 |
show_message( |
1700 |
'<span class="hide-if-no-js">' . sprintf( |
|
1701 |
/* translators: 1: WordPress version, 2: URL to About screen. */ |
|
1702 |
__( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%2$s">here</a>.' ), |
|
1703 |
$new_version, |
|
1704 |
'about.php?updated' |
|
1705 |
) . '</span>' |
|
1706 |
); |
|
1707 |
show_message( |
|
1708 |
'<span class="hide-if-js">' . sprintf( |
|
1709 |
/* translators: 1: WordPress version, 2: URL to About screen. */ |
|
1710 |
__( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), |
|
1711 |
$new_version, |
|
1712 |
'about.php?updated' |
|
1713 |
) . '</span>' |
|
1714 |
); |
|
0 | 1715 |
echo '</div>'; |
1716 |
?> |
|
1717 |
<script type="text/javascript"> |
|
1718 |
window.location = 'about.php?updated'; |
|
1719 |
</script> |
|
1720 |
<?php |
|
1721 |
||
5 | 1722 |
// Include admin-footer.php and exit. |
16 | 1723 |
require_once ABSPATH . 'wp-admin/admin-footer.php'; |
1724 |
exit; |
|
0 | 1725 |
} |
5 | 1726 |
|
1727 |
/** |
|
1728 |
* Cleans up Genericons example files. |
|
1729 |
* |
|
1730 |
* @since 4.2.2 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1731 |
* |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1732 |
* @global string[] $wp_theme_directories |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1733 |
* @global WP_Filesystem_Base $wp_filesystem |
5 | 1734 |
*/ |
1735 |
function _upgrade_422_remove_genericons() { |
|
1736 |
global $wp_theme_directories, $wp_filesystem; |
|
1737 |
||
1738 |
// A list of the affected files using the filesystem absolute paths. |
|
1739 |
$affected_files = array(); |
|
1740 |
||
16 | 1741 |
// Themes. |
5 | 1742 |
foreach ( $wp_theme_directories as $directory ) { |
1743 |
$affected_theme_files = _upgrade_422_find_genericons_files_in_folder( $directory ); |
|
1744 |
$affected_files = array_merge( $affected_files, $affected_theme_files ); |
|
1745 |
} |
|
1746 |
||
16 | 1747 |
// Plugins. |
5 | 1748 |
$affected_plugin_files = _upgrade_422_find_genericons_files_in_folder( WP_PLUGIN_DIR ); |
1749 |
$affected_files = array_merge( $affected_files, $affected_plugin_files ); |
|
1750 |
||
1751 |
foreach ( $affected_files as $file ) { |
|
1752 |
$gen_dir = $wp_filesystem->find_folder( trailingslashit( dirname( $file ) ) ); |
|
18 | 1753 |
|
5 | 1754 |
if ( empty( $gen_dir ) ) { |
1755 |
continue; |
|
1756 |
} |
|
1757 |
||
16 | 1758 |
// The path when the file is accessed via WP_Filesystem may differ in the case of FTP. |
5 | 1759 |
$remote_file = $gen_dir . basename( $file ); |
1760 |
||
1761 |
if ( ! $wp_filesystem->exists( $remote_file ) ) { |
|
1762 |
continue; |
|
1763 |
} |
|
1764 |
||
1765 |
if ( ! $wp_filesystem->delete( $remote_file, false, 'f' ) ) { |
|
1766 |
$wp_filesystem->put_contents( $remote_file, '' ); |
|
1767 |
} |
|
1768 |
} |
|
1769 |
} |
|
1770 |
||
1771 |
/** |
|
1772 |
* Recursively find Genericons example files in a given folder. |
|
1773 |
* |
|
1774 |
* @ignore |
|
1775 |
* @since 4.2.2 |
|
1776 |
* |
|
1777 |
* @param string $directory Directory path. Expects trailingslashed. |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1778 |
* @return string[] |
5 | 1779 |
*/ |
1780 |
function _upgrade_422_find_genericons_files_in_folder( $directory ) { |
|
1781 |
$directory = trailingslashit( $directory ); |
|
1782 |
$files = array(); |
|
1783 |
||
18 | 1784 |
if ( file_exists( "{$directory}example.html" ) |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1785 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1786 |
* Note: str_contains() is not used here, as this file is included |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1787 |
* when updating from older WordPress versions, in which case |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1788 |
* the polyfills from wp-includes/compat.php may not be available. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1789 |
*/ |
18 | 1790 |
&& false !== strpos( file_get_contents( "{$directory}example.html" ), '<title>Genericons</title>' ) |
1791 |
) { |
|
5 | 1792 |
$files[] = "{$directory}example.html"; |
1793 |
} |
|
1794 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1795 |
$dirs = glob( $directory . '*', GLOB_ONLYDIR ); |
19 | 1796 |
$dirs = array_filter( |
1797 |
$dirs, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1798 |
static function ( $dir ) { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1799 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1800 |
* Skip any node_modules directories. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1801 |
* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1802 |
* Note: str_contains() is not used here, as this file is included |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1803 |
* when updating from older WordPress versions, in which case |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1804 |
* the polyfills from wp-includes/compat.php may not be available. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1805 |
*/ |
19 | 1806 |
return false === strpos( $dir, 'node_modules' ); |
1807 |
} |
|
1808 |
); |
|
18 | 1809 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1810 |
if ( $dirs ) { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1811 |
foreach ( $dirs as $dir ) { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1812 |
$files = array_merge( $files, _upgrade_422_find_genericons_files_in_folder( $dir ) ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1813 |
} |
5 | 1814 |
} |
1815 |
||
1816 |
return $files; |
|
1817 |
} |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1818 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1819 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1820 |
* @ignore |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1821 |
* @since 4.4.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1822 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1823 |
function _upgrade_440_force_deactivate_incompatible_plugins() { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1824 |
if ( defined( 'REST_API_VERSION' ) && version_compare( REST_API_VERSION, '2.0-beta4', '<=' ) ) { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1825 |
deactivate_plugins( array( 'rest-api/plugin.php' ), true ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1826 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
1827 |
} |
18 | 1828 |
|
1829 |
/** |
|
19 | 1830 |
* @access private |
18 | 1831 |
* @ignore |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1832 |
* @since 5.8.0 |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1833 |
* @since 5.9.0 The minimum compatible version of Gutenberg is 11.9. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1834 |
* @since 6.1.1 The minimum compatible version of Gutenberg is 14.1. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1835 |
* @since 6.4.0 The minimum compatible version of Gutenberg is 16.5. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1836 |
* @since 6.5.0 The minimum compatible version of Gutenberg is 17.6. |
18 | 1837 |
*/ |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1838 |
function _upgrade_core_deactivate_incompatible_plugins() { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1839 |
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '17.6', '<' ) ) { |
18 | 1840 |
$deactivated_gutenberg['gutenberg'] = array( |
1841 |
'plugin_name' => 'Gutenberg', |
|
1842 |
'version_deactivated' => GUTENBERG_VERSION, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
1843 |
'version_compatible' => '17.6', |
18 | 1844 |
); |
1845 |
if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) { |
|
1846 |
$deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins', array() ); |
|
1847 |
$deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg ); |
|
1848 |
update_site_option( 'wp_force_deactivated_plugins', $deactivated_plugins ); |
|
1849 |
} else { |
|
1850 |
$deactivated_plugins = get_option( 'wp_force_deactivated_plugins', array() ); |
|
1851 |
$deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg ); |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
1852 |
update_option( 'wp_force_deactivated_plugins', $deactivated_plugins, false ); |
18 | 1853 |
} |
1854 |
deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true ); |
|
1855 |
} |
|
1856 |
} |