| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * WordPress core upgrade functionality. 4 * 5 * Note: Newly introduced functions and methods cannot be used here. 6 * All functions must be present in the previous version being upgraded from 7 * as this file is used there too. 8 * 9 * @package WordPress 10 * @subpackage Administration 11 * @since 2.7.0 12 */ 13 14 /** 15 * Stores files to be deleted. 16 * 17 * Bundled theme files should not be included in this list. 18 * 19 * @since 2.7.0 20 * 21 * @global string[] $_old_files 22 * @var string[] 23 * @name $_old_files 24 */ 25 global $_old_files; 26 27 $_old_files = array( 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', 230 // Following file added back in 5.1, see #45645. 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', 476 // Added back in 5.3 [45448], see #43895. 477 // 'wp-admin/options-privacy.php', 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', 536 // Following files added back in 4.5, see #36083. 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', 551 // Added back in 4.9 [41328], see #41755. 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', 678 // 4.9.2 679 'wp-includes/js/mediaelement/lang', 680 'wp-includes/js/mediaelement/mediaelement-flash-audio-ogg.swf', 681 'wp-includes/js/mediaelement/mediaelement-flash-audio.swf', 682 'wp-includes/js/mediaelement/mediaelement-flash-video-hls.swf', 683 'wp-includes/js/mediaelement/mediaelement-flash-video-mdash.swf', 684 'wp-includes/js/mediaelement/mediaelement-flash-video.swf', 685 'wp-includes/js/mediaelement/renderers/dailymotion.js', 686 'wp-includes/js/mediaelement/renderers/dailymotion.min.js', 687 'wp-includes/js/mediaelement/renderers/facebook.js', 688 'wp-includes/js/mediaelement/renderers/facebook.min.js', 689 'wp-includes/js/mediaelement/renderers/soundcloud.js', 690 'wp-includes/js/mediaelement/renderers/soundcloud.min.js', 691 'wp-includes/js/mediaelement/renderers/twitch.js', 692 'wp-includes/js/mediaelement/renderers/twitch.min.js', 693 // 5.0 694 'wp-includes/js/codemirror/jshint.js', 695 // 5.1 696 'wp-includes/js/tinymce/wp-tinymce.js.gz', 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', 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', 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', 744 /* 745 * Restored in WordPress 6.7 746 * 747 * 'wp-includes/blocks/tag-cloud/editor.css', 748 * 'wp-includes/blocks/tag-cloud/editor.min.css', 749 * 'wp-includes/blocks/tag-cloud/editor-rtl.css', 750 * 'wp-includes/blocks/tag-cloud/editor-rtl.min.css', 751 */ 752 // 6.1 753 'wp-includes/blocks/post-comments.php', 754 'wp-includes/blocks/post-comments', 755 'wp-includes/blocks/comments-query-loop', 756 // 6.3 757 'wp-includes/images/wlw', 758 'wp-includes/wlwmanifest.xml', 759 'wp-includes/random_compat', 760 // 6.4 761 'wp-includes/navigation-fallback.php', 762 'wp-includes/blocks/navigation/view-modal.min.js', 763 'wp-includes/blocks/navigation/view-modal.js', 764 // 6.5 765 'wp-includes/ID3/license.commercial.txt', 766 'wp-includes/blocks/query/style-rtl.min.css', 767 'wp-includes/blocks/query/style.min.css', 768 'wp-includes/blocks/query/style-rtl.css', 769 'wp-includes/blocks/query/style.css', 770 'wp-admin/images/about-header-about.svg', 771 'wp-admin/images/about-header-contribute.svg', 772 'wp-admin/images/about-header-background.svg', 773 /* 774 * Restored in WordPress 7.1 775 * 776 * 'wp-admin/images/about-header-privacy.svg', 777 * 'wp-admin/images/about-header-credits.svg', 778 * 'wp-admin/images/about-header-freedoms.svg', 779 */ 780 781 // 6.6 782 'wp-includes/blocks/block/editor.css', 783 'wp-includes/blocks/block/editor.min.css', 784 'wp-includes/blocks/block/editor-rtl.css', 785 'wp-includes/blocks/block/editor-rtl.min.css', 786 /* 787 * 6.7 788 * 789 * WordPress 6.7 included a SimplePie upgrade that included a major 790 * refactoring of the file structure and library. The old files are 791 * split in to two sections to account for this: files and directories. 792 * 793 * See https://core.trac.wordpress.org/changeset/59141 794 */ 795 // 6.7 - files 796 'wp-includes/js/dist/interactivity-router.asset.php', 797 'wp-includes/js/dist/interactivity-router.js', 798 'wp-includes/js/dist/interactivity-router.min.js', 799 'wp-includes/js/dist/interactivity-router.min.asset.php', 800 'wp-includes/js/dist/interactivity.js', 801 'wp-includes/js/dist/interactivity.min.js', 802 'wp-includes/js/dist/vendor/react-dom.min.js.LICENSE.txt', 803 'wp-includes/js/dist/vendor/react.min.js.LICENSE.txt', 804 'wp-includes/js/dist/vendor/wp-polyfill-importmap.js', 805 'wp-includes/js/dist/vendor/wp-polyfill-importmap.min.js', 806 'wp-includes/sodium_compat/src/Core/Base64/Common.php', 807 'wp-includes/SimplePie/Author.php', 808 'wp-includes/SimplePie/Cache.php', 809 'wp-includes/SimplePie/Caption.php', 810 'wp-includes/SimplePie/Category.php', 811 'wp-includes/SimplePie/Copyright.php', 812 'wp-includes/SimplePie/Core.php', 813 'wp-includes/SimplePie/Credit.php', 814 'wp-includes/SimplePie/Enclosure.php', 815 'wp-includes/SimplePie/Exception.php', 816 'wp-includes/SimplePie/File.php', 817 'wp-includes/SimplePie/gzdecode.php', 818 'wp-includes/SimplePie/IRI.php', 819 'wp-includes/SimplePie/Item.php', 820 'wp-includes/SimplePie/Locator.php', 821 'wp-includes/SimplePie/Misc.php', 822 'wp-includes/SimplePie/Parser.php', 823 'wp-includes/SimplePie/Rating.php', 824 'wp-includes/SimplePie/Registry.php', 825 'wp-includes/SimplePie/Restriction.php', 826 'wp-includes/SimplePie/Sanitize.php', 827 'wp-includes/SimplePie/Source.php', 828 // 6.7 - directories 829 'wp-includes/SimplePie/Cache/', 830 'wp-includes/SimplePie/Content/', 831 'wp-includes/SimplePie/Decode/', 832 'wp-includes/SimplePie/HTTP/', 833 'wp-includes/SimplePie/Net/', 834 'wp-includes/SimplePie/Parse/', 835 'wp-includes/SimplePie/XML/', 836 // 6.8 837 'wp-includes/blocks/post-content/editor.css', 838 'wp-includes/blocks/post-content/editor.min.css', 839 'wp-includes/blocks/post-content/editor-rtl.css', 840 'wp-includes/blocks/post-content/editor-rtl.min.css', 841 'wp-includes/blocks/post-template/editor.css', 842 'wp-includes/blocks/post-template/editor.min.css', 843 'wp-includes/blocks/post-template/editor-rtl.css', 844 'wp-includes/blocks/post-template/editor-rtl.min.css', 845 'wp-includes/js/dist/fields.min.js', 846 'wp-includes/js/dist/fields.js', 847 // 6.9 848 'wp-includes/SimplePie/src/Decode', 849 'wp-includes/SimplePie/src/Core.php', 850 // 7.0 851 'wp-includes/assets/script-loader-packages.min.php', 852 'wp-includes/assets/script-loader-react-refresh-entry.php', 853 'wp-includes/assets/script-loader-react-refresh-entry.min.php', 854 'wp-includes/assets/script-loader-react-refresh-runtime.php', 855 'wp-includes/assets/script-loader-react-refresh-runtime.min.php', 856 'wp-includes/assets/script-modules-packages.min.php', 857 'wp-includes/blocks/archives/editor.css', 858 'wp-includes/blocks/archives/editor.min.css', 859 'wp-includes/blocks/archives/editor-rtl.css', 860 'wp-includes/blocks/archives/editor-rtl.min.css', 861 'wp-includes/blocks/file/view.asset.php', 862 'wp-includes/blocks/file/view.min.asset.php', 863 'wp-includes/blocks/file/view.js', 864 'wp-includes/blocks/file/view.min.js', 865 'wp-includes/blocks/image/view.asset.php', 866 'wp-includes/blocks/image/view.min.asset.php', 867 'wp-includes/blocks/image/view.js', 868 'wp-includes/blocks/image/view.min.js', 869 'wp-includes/blocks/navigation/view.asset.php', 870 'wp-includes/blocks/navigation/view.min.asset.php', 871 'wp-includes/blocks/navigation/view.js', 872 'wp-includes/blocks/navigation/view.min.js', 873 'wp-includes/blocks/navigation/view-modal.asset.php', 874 'wp-includes/blocks/navigation/view-modal.min.asset.php', 875 'wp-includes/blocks/query/view.asset.php', 876 'wp-includes/blocks/query/view.min.asset.php', 877 'wp-includes/blocks/query/view.js', 878 'wp-includes/blocks/query/view.min.js', 879 'wp-includes/blocks/search/view.asset.php', 880 'wp-includes/blocks/search/view.min.asset.php', 881 'wp-includes/blocks/search/view.js', 882 'wp-includes/blocks/search/view.min.js', 883 'wp-includes/blocks/tag-cloud/editor.css', 884 'wp-includes/blocks/tag-cloud/editor.min.css', 885 'wp-includes/blocks/tag-cloud/editor-rtl.css', 886 'wp-includes/blocks/tag-cloud/editor-rtl.min.css', 887 'wp-includes/css/dist/admin-ui/style.css', 888 'wp-includes/css/dist/admin-ui/style.min.css', 889 'wp-includes/css/dist/admin-ui/style-rtl.css', 890 'wp-includes/css/dist/admin-ui/style-rtl.min.css', 891 'wp-includes/css/dist/admin-ui/', 892 'wp-includes/css/dist/edit-site/posts.css', 893 'wp-includes/css/dist/edit-site/posts.min.css', 894 'wp-includes/css/dist/edit-site/posts-rtl.css', 895 'wp-includes/css/dist/edit-site/posts-rtl.min.css', 896 'wp-includes/js/dist/admin-ui.js', 897 'wp-includes/js/dist/admin-ui.min.js', 898 'wp-includes/js/dist/latex-to-mathml.js', 899 'wp-includes/js/dist/latex-to-mathml.min.js', 900 'wp-includes/js/dist/views.js', 901 'wp-includes/js/dist/views.min.js', 902 'wp-includes/js/dist/script-modules/interactivity/debug.js', 903 'wp-includes/js/dist/script-modules/interactivity/debug.min.js', 904 'wp-includes/js/dist/vendor/react-jsx-runtime.min.js.LICENSE.txt', 905 // 7.0.2 906 'wp-includes/collaboration', 907 'wp-includes/collaboration.php', 908 /* 909 * Restored in WordPress 7.1. 910 * 911 * 'wp-includes/js/dist/sync.js', 912 * 'wp-includes/js/dist/sync.min.js', 913 */ 914 // 7.1 915 'wp-includes/images/icon-library/accordion-heading.svg', 916 'wp-includes/images/icon-library/accordion-item.svg', 917 'wp-includes/images/icon-library/accordion.svg', 918 'wp-includes/images/icon-library/add-card.svg', 919 'wp-includes/images/icon-library/add-submenu.svg', 920 'wp-includes/images/icon-library/add-template.svg', 921 'wp-includes/images/icon-library/align-center.svg', 922 'wp-includes/images/icon-library/align-justify.svg', 923 'wp-includes/images/icon-library/align-left.svg', 924 'wp-includes/images/icon-library/align-none.svg', 925 'wp-includes/images/icon-library/align-right.svg', 926 'wp-includes/images/icon-library/archive.svg', 927 'wp-includes/images/icon-library/aspect-ratio.svg', 928 'wp-includes/images/icon-library/background.svg', 929 'wp-includes/images/icon-library/backup.svg', 930 'wp-includes/images/icon-library/bell-unread.svg', 931 'wp-includes/images/icon-library/border.svg', 932 'wp-includes/images/icon-library/box.svg', 933 'wp-includes/images/icon-library/breadcrumbs.svg', 934 'wp-includes/images/icon-library/brush.svg', 935 'wp-includes/images/icon-library/bug.svg', 936 'wp-includes/images/icon-library/button.svg', 937 'wp-includes/images/icon-library/buttons.svg', 938 'wp-includes/images/icon-library/cancel-circle-filled.svg', 939 'wp-includes/images/icon-library/caption.svg', 940 'wp-includes/images/icon-library/caution-filled.svg', 941 'wp-includes/images/icon-library/classic.svg', 942 'wp-includes/images/icon-library/close-small.svg', 943 'wp-includes/images/icon-library/close.svg', 944 'wp-includes/images/icon-library/cloud-download.svg', 945 'wp-includes/images/icon-library/cloud-upload.svg', 946 'wp-includes/images/icon-library/cloud.svg', 947 'wp-includes/images/icon-library/code.svg', 948 'wp-includes/images/icon-library/cog.svg', 949 'wp-includes/images/icon-library/color.svg', 950 'wp-includes/images/icon-library/column.svg', 951 'wp-includes/images/icon-library/columns.svg', 952 'wp-includes/images/icon-library/comment-author-avatar.svg', 953 'wp-includes/images/icon-library/comment-author-name.svg', 954 'wp-includes/images/icon-library/comment-content.svg', 955 'wp-includes/images/icon-library/comment-edit-link.svg', 956 'wp-includes/images/icon-library/comment-reply-link.svg', 957 'wp-includes/images/icon-library/connection.svg', 958 'wp-includes/images/icon-library/contents.svg', 959 'wp-includes/images/icon-library/copy-small.svg', 960 'wp-includes/images/icon-library/copy.svg', 961 'wp-includes/images/icon-library/corner-all.svg', 962 'wp-includes/images/icon-library/corner-bottom-left.svg', 963 'wp-includes/images/icon-library/corner-bottom-right.svg', 964 'wp-includes/images/icon-library/corner-top-left.svg', 965 'wp-includes/images/icon-library/corner-top-right.svg', 966 'wp-includes/images/icon-library/crop.svg', 967 'wp-includes/images/icon-library/currency-dollar.svg', 968 'wp-includes/images/icon-library/currency-euro.svg', 969 'wp-includes/images/icon-library/currency-pound.svg', 970 'wp-includes/images/icon-library/custom-link.svg', 971 'wp-includes/images/icon-library/custom-post-type.svg', 972 'wp-includes/images/icon-library/dashboard.svg', 973 'wp-includes/images/icon-library/details.svg', 974 'wp-includes/images/icon-library/drafts.svg', 975 'wp-includes/images/icon-library/drag-handle.svg', 976 'wp-includes/images/icon-library/filter.svg', 977 'wp-includes/images/icon-library/flip-horizontal.svg', 978 'wp-includes/images/icon-library/flip-vertical.svg', 979 'wp-includes/images/icon-library/footer.svg', 980 'wp-includes/images/icon-library/format-bold.svg', 981 'wp-includes/images/icon-library/format-capitalize.svg', 982 'wp-includes/images/icon-library/format-indent-rtl.svg', 983 'wp-includes/images/icon-library/format-indent.svg', 984 'wp-includes/images/icon-library/format-italic.svg', 985 'wp-includes/images/icon-library/format-list-bullets-rtl.svg', 986 'wp-includes/images/icon-library/format-list-bullets.svg', 987 'wp-includes/images/icon-library/format-list-numbered-rtl.svg', 988 'wp-includes/images/icon-library/format-list-numbered.svg', 989 'wp-includes/images/icon-library/format-lowercase.svg', 990 'wp-includes/images/icon-library/format-ltr.svg', 991 'wp-includes/images/icon-library/format-outdent-rtl.svg', 992 'wp-includes/images/icon-library/format-outdent.svg', 993 'wp-includes/images/icon-library/format-rtl.svg', 994 'wp-includes/images/icon-library/format-strikethrough.svg', 995 'wp-includes/images/icon-library/format-underline.svg', 996 'wp-includes/images/icon-library/format-uppercase.svg', 997 'wp-includes/images/icon-library/full-height.svg', 998 'wp-includes/images/icon-library/fullscreen.svg', 999 'wp-includes/images/icon-library/funnel.svg', 1000 'wp-includes/images/icon-library/gift.svg', 1001 'wp-includes/images/icon-library/globe.svg', 1002 'wp-includes/images/icon-library/grid.svg', 1003 'wp-includes/images/icon-library/handle.svg', 1004 'wp-includes/images/icon-library/header.svg', 1005 'wp-includes/images/icon-library/heading-level-1.svg', 1006 'wp-includes/images/icon-library/heading-level-2.svg', 1007 'wp-includes/images/icon-library/heading-level-3.svg', 1008 'wp-includes/images/icon-library/heading-level-4.svg', 1009 'wp-includes/images/icon-library/heading-level-5.svg', 1010 'wp-includes/images/icon-library/heading-level-6.svg', 1011 'wp-includes/images/icon-library/help-filled.svg', 1012 'wp-includes/images/icon-library/home-button.svg', 1013 'wp-includes/images/icon-library/html.svg', 1014 'wp-includes/images/icon-library/inbox.svg', 1015 'wp-includes/images/icon-library/insert-after.svg', 1016 'wp-includes/images/icon-library/insert-before.svg', 1017 'wp-includes/images/icon-library/institution.svg', 1018 'wp-includes/images/icon-library/justify-bottom.svg', 1019 'wp-includes/images/icon-library/justify-center-vertical.svg', 1020 'wp-includes/images/icon-library/justify-center.svg', 1021 'wp-includes/images/icon-library/justify-left.svg', 1022 'wp-includes/images/icon-library/justify-right.svg', 1023 'wp-includes/images/icon-library/justify-space-between-vertical.svg', 1024 'wp-includes/images/icon-library/justify-space-between.svg', 1025 'wp-includes/images/icon-library/justify-stretch-vertical.svg', 1026 'wp-includes/images/icon-library/justify-stretch.svg', 1027 'wp-includes/images/icon-library/justify-top.svg', 1028 'wp-includes/images/icon-library/keyboard-close.svg', 1029 'wp-includes/images/icon-library/keyboard-return.svg', 1030 'wp-includes/images/icon-library/keyboard.svg', 1031 'wp-includes/images/icon-library/layout.svg', 1032 'wp-includes/images/icon-library/level-up.svg', 1033 'wp-includes/images/icon-library/lifesaver.svg', 1034 'wp-includes/images/icon-library/line-dashed.svg', 1035 'wp-includes/images/icon-library/line-dotted.svg', 1036 'wp-includes/images/icon-library/line-solid.svg', 1037 'wp-includes/images/icon-library/link-off.svg', 1038 'wp-includes/images/icon-library/link.svg', 1039 'wp-includes/images/icon-library/list-item.svg', 1040 'wp-includes/images/icon-library/list-view.svg', 1041 'wp-includes/images/icon-library/list.svg', 1042 'wp-includes/images/icon-library/lock-outline.svg', 1043 'wp-includes/images/icon-library/lock-small.svg', 1044 'wp-includes/images/icon-library/lock.svg', 1045 'wp-includes/images/icon-library/login.svg', 1046 'wp-includes/images/icon-library/loop.svg', 1047 'wp-includes/images/icon-library/math.svg', 1048 'wp-includes/images/icon-library/media-and-text.svg', 1049 'wp-includes/images/icon-library/media.svg', 1050 'wp-includes/images/icon-library/megaphone.svg', 1051 'wp-includes/images/icon-library/more.svg', 1052 'wp-includes/images/icon-library/move-to.svg', 1053 'wp-includes/images/icon-library/navigation-overlay.svg', 1054 'wp-includes/images/icon-library/navigation.svg', 1055 'wp-includes/images/icon-library/not-allowed.svg', 1056 'wp-includes/images/icon-library/not-found.svg', 1057 'wp-includes/images/icon-library/offline.svg', 1058 'wp-includes/images/icon-library/overlay-text.svg', 1059 'wp-includes/images/icon-library/page-break.svg', 1060 'wp-includes/images/icon-library/page.svg', 1061 'wp-includes/images/icon-library/pages.svg', 1062 'wp-includes/images/icon-library/pending.svg', 1063 'wp-includes/images/icon-library/percent.svg', 1064 'wp-includes/images/icon-library/pin-small.svg', 1065 'wp-includes/images/icon-library/pin.svg', 1066 'wp-includes/images/icon-library/plugins.svg', 1067 'wp-includes/images/icon-library/plus-circle-filled.svg', 1068 'wp-includes/images/icon-library/position-center.svg', 1069 'wp-includes/images/icon-library/position-left.svg', 1070 'wp-includes/images/icon-library/position-right.svg', 1071 'wp-includes/images/icon-library/post-author.svg', 1072 'wp-includes/images/icon-library/post-categories.svg', 1073 'wp-includes/images/icon-library/post-comments-count.svg', 1074 'wp-includes/images/icon-library/post-comments-form.svg', 1075 'wp-includes/images/icon-library/post-comments.svg', 1076 'wp-includes/images/icon-library/post-content.svg', 1077 'wp-includes/images/icon-library/post-date.svg', 1078 'wp-includes/images/icon-library/post-excerpt.svg', 1079 'wp-includes/images/icon-library/post-featured-image.svg', 1080 'wp-includes/images/icon-library/post-list.svg', 1081 'wp-includes/images/icon-library/post-terms.svg', 1082 'wp-includes/images/icon-library/post.svg', 1083 'wp-includes/images/icon-library/preformatted.svg', 1084 'wp-includes/images/icon-library/pull-left.svg', 1085 'wp-includes/images/icon-library/pull-right.svg', 1086 'wp-includes/images/icon-library/pullquote.svg', 1087 'wp-includes/images/icon-library/query-pagination-next.svg', 1088 'wp-includes/images/icon-library/query-pagination-numbers.svg', 1089 'wp-includes/images/icon-library/query-pagination-previous.svg', 1090 'wp-includes/images/icon-library/query-pagination.svg', 1091 'wp-includes/images/icon-library/redo.svg', 1092 'wp-includes/images/icon-library/remove-bug.svg', 1093 'wp-includes/images/icon-library/remove-submenu.svg', 1094 'wp-includes/images/icon-library/replace.svg', 1095 'wp-includes/images/icon-library/reset.svg', 1096 'wp-includes/images/icon-library/resize-corner-ne.svg', 1097 'wp-includes/images/icon-library/reusable-block.svg', 1098 'wp-includes/images/icon-library/rotate-left.svg', 1099 'wp-includes/images/icon-library/rotate-right.svg', 1100 'wp-includes/images/icon-library/row.svg', 1101 'wp-includes/images/icon-library/seen.svg', 1102 'wp-includes/images/icon-library/send.svg', 1103 'wp-includes/images/icon-library/separator.svg', 1104 'wp-includes/images/icon-library/shipping.svg', 1105 'wp-includes/images/icon-library/shortcode.svg', 1106 'wp-includes/images/icon-library/sidebar.svg', 1107 'wp-includes/images/icon-library/sides-all.svg', 1108 'wp-includes/images/icon-library/sides-axial.svg', 1109 'wp-includes/images/icon-library/sides-bottom.svg', 1110 'wp-includes/images/icon-library/sides-horizontal.svg', 1111 'wp-includes/images/icon-library/sides-left.svg', 1112 'wp-includes/images/icon-library/sides-right.svg', 1113 'wp-includes/images/icon-library/sides-top.svg', 1114 'wp-includes/images/icon-library/sides-vertical.svg', 1115 'wp-includes/images/icon-library/site-logo.svg', 1116 'wp-includes/images/icon-library/square.svg', 1117 'wp-includes/images/icon-library/stack.svg', 1118 'wp-includes/images/icon-library/stretch-full-width.svg', 1119 'wp-includes/images/icon-library/stretch-wide.svg', 1120 'wp-includes/images/icon-library/subscript.svg', 1121 'wp-includes/images/icon-library/superscript.svg', 1122 'wp-includes/images/icon-library/swatch.svg', 1123 'wp-includes/images/icon-library/tab.svg', 1124 'wp-includes/images/icon-library/table-column-after.svg', 1125 'wp-includes/images/icon-library/table-column-before.svg', 1126 'wp-includes/images/icon-library/table-column-delete.svg', 1127 'wp-includes/images/icon-library/table-of-contents.svg', 1128 'wp-includes/images/icon-library/table-row-after.svg', 1129 'wp-includes/images/icon-library/table-row-before.svg', 1130 'wp-includes/images/icon-library/table-row-delete.svg', 1131 'wp-includes/images/icon-library/tabs-menu-item.svg', 1132 'wp-includes/images/icon-library/tabs-menu.svg', 1133 'wp-includes/images/icon-library/tabs.svg', 1134 'wp-includes/images/icon-library/term-count.svg', 1135 'wp-includes/images/icon-library/term-description.svg', 1136 'wp-includes/images/icon-library/term-name.svg', 1137 'wp-includes/images/icon-library/text-color.svg', 1138 'wp-includes/images/icon-library/text-horizontal.svg', 1139 'wp-includes/images/icon-library/text-vertical.svg', 1140 'wp-includes/images/icon-library/thumbs-down.svg', 1141 'wp-includes/images/icon-library/thumbs-up.svg', 1142 'wp-includes/images/icon-library/time-to-read.svg', 1143 'wp-includes/images/icon-library/title.svg', 1144 'wp-includes/images/icon-library/tool.svg', 1145 'wp-includes/images/icon-library/trash.svg', 1146 'wp-includes/images/icon-library/trending-down.svg', 1147 'wp-includes/images/icon-library/trending-up.svg', 1148 'wp-includes/images/icon-library/typography.svg', 1149 'wp-includes/images/icon-library/undo.svg', 1150 'wp-includes/images/icon-library/ungroup.svg', 1151 'wp-includes/images/icon-library/unlock.svg', 1152 'wp-includes/images/icon-library/unseen.svg', 1153 'wp-includes/images/icon-library/update.svg', 1154 'wp-includes/images/icon-library/video.svg', 1155 'wp-includes/images/icon-library/widget.svg', 1156 'wp-includes/images/icon-library/word-count.svg', 1157 'wp-includes/images/icon-library/wordpress.svg', 1158 'wp-admin/images/about-header-credits.webp', 1159 'wp-admin/images/about-header-credits-rtl.webp', 1160 'wp-admin/images/about-header-default.webp', 1161 'wp-admin/images/about-header-default-rtl.webp', 1162 'wp-admin/images/about-header-freedoms.webp', 1163 'wp-admin/images/about-header-freedoms-rtl.webp', 1164 'wp-admin/images/about-header-get-involved.webp', 1165 'wp-admin/images/about-header-get-involved-rtl.webp', 1166 'wp-admin/images/about-header-privacy.webp', 1167 'wp-admin/images/about-header-privacy-rtl.webp', 1168 'wp-admin/images/about-release-logo.svg', 1169 ); 1170 1171 /** 1172 * Stores Requests files to be preloaded and deleted. 1173 * 1174 * For classes/interfaces, use the class/interface name 1175 * as the array key. 1176 * 1177 * All other files/directories should not have a key. 1178 * 1179 * @since 6.2.0 1180 * 1181 * @global string[] $_old_requests_files 1182 * @var string[] 1183 * @name $_old_requests_files 1184 */ 1185 global $_old_requests_files; 1186 1187 $_old_requests_files = array( 1188 // Interfaces. 1189 'Requests_Auth' => 'wp-includes/Requests/Auth.php', 1190 'Requests_Hooker' => 'wp-includes/Requests/Hooker.php', 1191 'Requests_Proxy' => 'wp-includes/Requests/Proxy.php', 1192 'Requests_Transport' => 'wp-includes/Requests/Transport.php', 1193 1194 // Classes. 1195 'Requests_Auth_Basic' => 'wp-includes/Requests/Auth/Basic.php', 1196 'Requests_Cookie_Jar' => 'wp-includes/Requests/Cookie/Jar.php', 1197 'Requests_Exception_HTTP' => 'wp-includes/Requests/Exception/HTTP.php', 1198 'Requests_Exception_Transport' => 'wp-includes/Requests/Exception/Transport.php', 1199 'Requests_Exception_HTTP_304' => 'wp-includes/Requests/Exception/HTTP/304.php', 1200 'Requests_Exception_HTTP_305' => 'wp-includes/Requests/Exception/HTTP/305.php', 1201 'Requests_Exception_HTTP_306' => 'wp-includes/Requests/Exception/HTTP/306.php', 1202 'Requests_Exception_HTTP_400' => 'wp-includes/Requests/Exception/HTTP/400.php', 1203 'Requests_Exception_HTTP_401' => 'wp-includes/Requests/Exception/HTTP/401.php', 1204 'Requests_Exception_HTTP_402' => 'wp-includes/Requests/Exception/HTTP/402.php', 1205 'Requests_Exception_HTTP_403' => 'wp-includes/Requests/Exception/HTTP/403.php', 1206 'Requests_Exception_HTTP_404' => 'wp-includes/Requests/Exception/HTTP/404.php', 1207 'Requests_Exception_HTTP_405' => 'wp-includes/Requests/Exception/HTTP/405.php', 1208 'Requests_Exception_HTTP_406' => 'wp-includes/Requests/Exception/HTTP/406.php', 1209 'Requests_Exception_HTTP_407' => 'wp-includes/Requests/Exception/HTTP/407.php', 1210 'Requests_Exception_HTTP_408' => 'wp-includes/Requests/Exception/HTTP/408.php', 1211 'Requests_Exception_HTTP_409' => 'wp-includes/Requests/Exception/HTTP/409.php', 1212 'Requests_Exception_HTTP_410' => 'wp-includes/Requests/Exception/HTTP/410.php', 1213 'Requests_Exception_HTTP_411' => 'wp-includes/Requests/Exception/HTTP/411.php', 1214 'Requests_Exception_HTTP_412' => 'wp-includes/Requests/Exception/HTTP/412.php', 1215 'Requests_Exception_HTTP_413' => 'wp-includes/Requests/Exception/HTTP/413.php', 1216 'Requests_Exception_HTTP_414' => 'wp-includes/Requests/Exception/HTTP/414.php', 1217 'Requests_Exception_HTTP_415' => 'wp-includes/Requests/Exception/HTTP/415.php', 1218 'Requests_Exception_HTTP_416' => 'wp-includes/Requests/Exception/HTTP/416.php', 1219 'Requests_Exception_HTTP_417' => 'wp-includes/Requests/Exception/HTTP/417.php', 1220 'Requests_Exception_HTTP_418' => 'wp-includes/Requests/Exception/HTTP/418.php', 1221 'Requests_Exception_HTTP_428' => 'wp-includes/Requests/Exception/HTTP/428.php', 1222 'Requests_Exception_HTTP_429' => 'wp-includes/Requests/Exception/HTTP/429.php', 1223 'Requests_Exception_HTTP_431' => 'wp-includes/Requests/Exception/HTTP/431.php', 1224 'Requests_Exception_HTTP_500' => 'wp-includes/Requests/Exception/HTTP/500.php', 1225 'Requests_Exception_HTTP_501' => 'wp-includes/Requests/Exception/HTTP/501.php', 1226 'Requests_Exception_HTTP_502' => 'wp-includes/Requests/Exception/HTTP/502.php', 1227 'Requests_Exception_HTTP_503' => 'wp-includes/Requests/Exception/HTTP/503.php', 1228 'Requests_Exception_HTTP_504' => 'wp-includes/Requests/Exception/HTTP/504.php', 1229 'Requests_Exception_HTTP_505' => 'wp-includes/Requests/Exception/HTTP/505.php', 1230 'Requests_Exception_HTTP_511' => 'wp-includes/Requests/Exception/HTTP/511.php', 1231 'Requests_Exception_HTTP_Unknown' => 'wp-includes/Requests/Exception/HTTP/Unknown.php', 1232 'Requests_Exception_Transport_cURL' => 'wp-includes/Requests/Exception/Transport/cURL.php', 1233 'Requests_Proxy_HTTP' => 'wp-includes/Requests/Proxy/HTTP.php', 1234 'Requests_Response_Headers' => 'wp-includes/Requests/Response/Headers.php', 1235 'Requests_Transport_cURL' => 'wp-includes/Requests/Transport/cURL.php', 1236 'Requests_Transport_fsockopen' => 'wp-includes/Requests/Transport/fsockopen.php', 1237 'Requests_Utility_CaseInsensitiveDictionary' => 'wp-includes/Requests/Utility/CaseInsensitiveDictionary.php', 1238 'Requests_Utility_FilteredIterator' => 'wp-includes/Requests/Utility/FilteredIterator.php', 1239 'Requests_Cookie' => 'wp-includes/Requests/Cookie.php', 1240 'Requests_Exception' => 'wp-includes/Requests/Exception.php', 1241 'Requests_Hooks' => 'wp-includes/Requests/Hooks.php', 1242 'Requests_IDNAEncoder' => 'wp-includes/Requests/IDNAEncoder.php', 1243 'Requests_IPv6' => 'wp-includes/Requests/IPv6.php', 1244 'Requests_IRI' => 'wp-includes/Requests/IRI.php', 1245 'Requests_Response' => 'wp-includes/Requests/Response.php', 1246 'Requests_SSL' => 'wp-includes/Requests/SSL.php', 1247 'Requests_Session' => 'wp-includes/Requests/Session.php', 1248 1249 // Directories. 1250 'wp-includes/Requests/Auth/', 1251 'wp-includes/Requests/Cookie/', 1252 'wp-includes/Requests/Exception/HTTP/', 1253 'wp-includes/Requests/Exception/Transport/', 1254 'wp-includes/Requests/Exception/', 1255 'wp-includes/Requests/Proxy/', 1256 'wp-includes/Requests/Response/', 1257 'wp-includes/Requests/Transport/', 1258 'wp-includes/Requests/Utility/', 1259 ); 1260 1261 /** 1262 * Stores new files in wp-content to copy 1263 * 1264 * The contents of this array indicate any new bundled plugins/themes which 1265 * should be installed with the WordPress Upgrade. These items will not be 1266 * re-installed in future upgrades, this behavior is controlled by the 1267 * introduced version present here being older than the current installed version. 1268 * 1269 * The content of this array should follow the following format: 1270 * Filename (relative to wp-content) => Introduced version 1271 * Directories should be noted by suffixing it with a trailing slash (/) 1272 * 1273 * @since 3.2.0 1274 * @since 4.7.0 New themes were not automatically installed for 4.4-4.6 on 1275 * upgrade. New themes are now installed again. To disable new 1276 * themes from being installed on upgrade, explicitly define 1277 * CORE_UPGRADE_SKIP_NEW_BUNDLED as true. 1278 * @global string[] $_new_bundled_files 1279 * @var string[] 1280 * @name $_new_bundled_files 1281 */ 1282 global $_new_bundled_files; 1283 1284 $_new_bundled_files = array( 1285 'plugins/akismet/' => '2.0', 1286 'themes/twentyten/' => '3.0', 1287 'themes/twentyeleven/' => '3.2', 1288 'themes/twentytwelve/' => '3.5', 1289 'themes/twentythirteen/' => '3.6', 1290 'themes/twentyfourteen/' => '3.8', 1291 'themes/twentyfifteen/' => '4.1', 1292 'themes/twentysixteen/' => '4.4', 1293 'themes/twentyseventeen/' => '4.7', 1294 'themes/twentynineteen/' => '5.0', 1295 'themes/twentytwenty/' => '5.3', 1296 'themes/twentytwentyone/' => '5.6', 1297 'themes/twentytwentytwo/' => '5.9', 1298 'themes/twentytwentythree/' => '6.1', 1299 'themes/twentytwentyfour/' => '6.4', 1300 'themes/twentytwentyfive/' => '6.7', 1301 ); 1302 1303 /** 1304 * Upgrades the core of WordPress. 1305 * 1306 * This will create a .maintenance file at the base of the WordPress directory 1307 * to ensure that people can not access the website, when the files are being 1308 * copied to their locations. 1309 * 1310 * The files in the `$_old_files` list will be removed and the new files 1311 * copied from the zip file after the database is upgraded. 1312 * 1313 * The files in the `$_new_bundled_files` list will be added to the installation 1314 * if the version is greater than or equal to the old version being upgraded. 1315 * 1316 * The steps for the upgrader for after the new release is downloaded and 1317 * unzipped is: 1318 * 1319 * 1. Test unzipped location for select files to ensure that unzipped worked. 1320 * 2. Create the .maintenance file in current WordPress base. 1321 * 3. Copy new WordPress directory over old WordPress files. 1322 * 4. Upgrade WordPress to new version. 1323 * 1. Copy all files/folders other than wp-content 1324 * 2. Copy any language files to `WP_LANG_DIR` (which may differ from `WP_CONTENT_DIR` 1325 * 3. Copy any new bundled themes/plugins to their respective locations 1326 * 5. Delete new WordPress directory path. 1327 * 6. Delete .maintenance file. 1328 * 7. Remove old files. 1329 * 8. Delete 'update_core' option. 1330 * 1331 * There are several areas of failure. For instance if PHP times out before step 1332 * 6, then you will not be able to access any portion of your site. Also, since 1333 * the upgrade will not continue where it left off, you will not be able to 1334 * automatically remove old files and remove the 'update_core' option. This 1335 * isn't that bad. 1336 * 1337 * If the copy of the new WordPress over the old fails, then the worse is that 1338 * the new WordPress directory will remain. 1339 * 1340 * If it is assumed that every file will be copied over, including plugins and 1341 * themes, then if you edit the default theme, you should rename it, so that 1342 * your changes remain. 1343 * 1344 * @since 2.7.0 1345 * 1346 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. 1347 * @global string[] $_old_files 1348 * @global string[] $_old_requests_files 1349 * @global string[] $_new_bundled_files 1350 * @global wpdb $wpdb WordPress database abstraction object. 1351 * @global string $wp_version The WordPress version string. 1352 * 1353 * @param string $from New release unzipped path. 1354 * @param string $to Path to old WordPress installation. 1355 * @return string|WP_Error New WordPress version on success, WP_Error on failure. 1356 */ 1357 function update_core( $from, $to ) { 1358 global $wp_filesystem, $_old_files, $_old_requests_files, $_new_bundled_files, $wpdb; 1359 1360 /* 1361 * Give core update script an additional 300 seconds (5 minutes) 1362 * to finish updating large files when running on slower servers. 1363 */ 1364 if ( function_exists( 'set_time_limit' ) ) { 1365 set_time_limit( 300 ); 1366 } 1367 1368 /* 1369 * Merge the old Requests files and directories into the `$_old_files`. 1370 * Then preload these Requests files first, before the files are deleted 1371 * and replaced to ensure the code is in memory if needed. 1372 */ 1373 $_old_files = array_merge( $_old_files, array_values( $_old_requests_files ) ); 1374 _preload_old_requests_classes_and_interfaces( $to ); 1375 1376 /** 1377 * Filters feedback messages displayed during the core update process. 1378 * 1379 * The filter is first evaluated after the zip file for the latest version 1380 * has been downloaded and unzipped. It is evaluated five more times during 1381 * the process: 1382 * 1383 * 1. Before WordPress begins the core upgrade process. 1384 * 2. Before Maintenance Mode is enabled. 1385 * 3. Before WordPress begins copying over the necessary files. 1386 * 4. Before Maintenance Mode is disabled. 1387 * 5. Before the database is upgraded. 1388 * 1389 * @since 2.5.0 1390 * 1391 * @param string $feedback The core update feedback messages. 1392 */ 1393 apply_filters( 'update_feedback', __( 'Verifying the unpacked files…' ) ); 1394 1395 // Confidence check the unzipped distribution. 1396 $distro = ''; 1397 $roots = array( '/wordpress/', '/wordpress-mu/' ); 1398 1399 foreach ( $roots as $root ) { 1400 if ( $wp_filesystem->exists( $from . $root . 'readme.html' ) 1401 && $wp_filesystem->exists( $from . $root . 'wp-includes/version.php' ) 1402 ) { 1403 $distro = $root; 1404 break; 1405 } 1406 } 1407 1408 if ( ! $distro ) { 1409 $wp_filesystem->delete( $from, true ); 1410 1411 return new WP_Error( 'insane_distro', __( 'The update could not be unpacked' ) ); 1412 } 1413 1414 /* 1415 * Import $wp_version, $required_php_version, $required_php_extensions, and $required_mysql_version from the new version. 1416 * DO NOT globalize any variables imported from `version-current.php` in this function. 1417 * 1418 * BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8. 1419 */ 1420 $versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php'; 1421 1422 if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) { 1423 $wp_filesystem->delete( $from, true ); 1424 1425 return new WP_Error( 1426 'copy_failed_for_version_file', 1427 __( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.' ), 1428 'wp-includes/version.php' 1429 ); 1430 } 1431 1432 $wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE ); 1433 1434 /* 1435 * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, 1436 * so don't run it when upgrading from older versions. 1437 */ 1438 if ( function_exists( 'wp_opcache_invalidate' ) ) { 1439 wp_opcache_invalidate( $versions_file ); 1440 } 1441 1442 require WP_CONTENT_DIR . '/upgrade/version-current.php'; 1443 $wp_filesystem->delete( $versions_file ); 1444 1445 $php_version = PHP_VERSION; 1446 $mysql_version = $wpdb->db_version(); 1447 $old_wp_version = $GLOBALS['wp_version']; // The version of WordPress we're updating from. 1448 /* 1449 * Note: str_contains() is not used here, as this file is included 1450 * when updating from older WordPress versions, in which case 1451 * the polyfills from wp-includes/compat.php may not be available. 1452 */ 1453 $development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // A dash in the version indicates a development release. 1454 $php_compat = version_compare( $php_version, $required_php_version, '>=' ); 1455 1456 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { 1457 $mysql_compat = true; 1458 } else { 1459 $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); 1460 } 1461 1462 if ( ! $mysql_compat || ! $php_compat ) { 1463 $wp_filesystem->delete( $from, true ); 1464 } 1465 1466 $php_update_message = ''; 1467 1468 if ( function_exists( 'wp_get_update_php_url' ) ) { 1469 $php_update_message = '</p><p>' . sprintf( 1470 /* translators: %s: URL to Update PHP page. */ 1471 __( '<a href="%s">Learn more about updating PHP</a>.' ), 1472 esc_url( wp_get_update_php_url() ) 1473 ); 1474 1475 if ( function_exists( 'wp_get_update_php_annotation' ) ) { 1476 $annotation = wp_get_update_php_annotation(); 1477 1478 if ( $annotation ) { 1479 $php_update_message .= '</p><p><em>' . $annotation . '</em>'; 1480 } 1481 } 1482 } 1483 1484 if ( ! $mysql_compat && ! $php_compat ) { 1485 return new WP_Error( 1486 'php_mysql_not_compatible', 1487 sprintf( 1488 /* 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. */ 1489 __( '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.' ), 1490 $wp_version, 1491 $required_php_version, 1492 $required_mysql_version, 1493 $php_version, 1494 $mysql_version 1495 ) . $php_update_message 1496 ); 1497 } elseif ( ! $php_compat ) { 1498 return new WP_Error( 1499 'php_not_compatible', 1500 sprintf( 1501 /* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number. */ 1502 __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ), 1503 $wp_version, 1504 $required_php_version, 1505 $php_version 1506 ) . $php_update_message 1507 ); 1508 } elseif ( ! $mysql_compat ) { 1509 return new WP_Error( 1510 'mysql_not_compatible', 1511 sprintf( 1512 /* translators: 1: WordPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number. */ 1513 __( 'The update cannot be installed because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.' ), 1514 $wp_version, 1515 $required_mysql_version, 1516 $mysql_version 1517 ) 1518 ); 1519 } 1520 1521 if ( isset( $required_php_extensions ) && is_array( $required_php_extensions ) ) { 1522 $missing_extensions = new WP_Error(); 1523 1524 foreach ( $required_php_extensions as $extension ) { 1525 if ( extension_loaded( $extension ) ) { 1526 continue; 1527 } 1528 1529 $missing_extensions->add( 1530 "php_not_compatible_{$extension}", 1531 sprintf( 1532 /* translators: 1: WordPress version number, 2: The PHP extension name needed. */ 1533 __( 'The update cannot be installed because WordPress %1$s requires the %2$s PHP extension.' ), 1534 $wp_version, 1535 $extension 1536 ) 1537 ); 1538 } 1539 1540 // Add a warning when required PHP extensions are missing. 1541 if ( ! empty( $missing_extensions->errors ) ) { 1542 return $missing_extensions; 1543 } 1544 } 1545 1546 /** This filter is documented in wp-admin/includes/update-core.php */ 1547 apply_filters( 'update_feedback', __( 'Preparing to install the latest version…' ) ); 1548 1549 /* 1550 * Don't copy wp-content, we'll deal with that below. 1551 * We also copy version.php last so failed updates report their old version. 1552 */ 1553 $skip = array( 'wp-content', 'wp-includes/version.php' ); 1554 $check_is_writable = array(); 1555 1556 // Check to see which files don't really need updating - only available for 3.7 and higher. 1557 if ( function_exists( 'get_core_checksums' ) ) { 1558 // Find the local version of the working directory. 1559 $working_dir_local = WP_CONTENT_DIR . '/upgrade/' . basename( $from ) . $distro; 1560 1561 $checksums = get_core_checksums( $wp_version, $wp_local_package ?? 'en_US' ); 1562 1563 if ( is_array( $checksums ) && isset( $checksums[ $wp_version ] ) ) { 1564 $checksums = $checksums[ $wp_version ]; // Compat code for 3.7-beta2. 1565 } 1566 1567 if ( is_array( $checksums ) ) { 1568 foreach ( $checksums as $file => $checksum ) { 1569 /* 1570 * Note: str_starts_with() is not used here, as this file is included 1571 * when updating from older WordPress versions, in which case 1572 * the polyfills from wp-includes/compat.php may not be available. 1573 */ 1574 if ( 'wp-content' === substr( $file, 0, 10 ) ) { 1575 continue; 1576 } 1577 1578 if ( ! file_exists( ABSPATH . $file ) ) { 1579 continue; 1580 } 1581 1582 if ( ! file_exists( $working_dir_local . $file ) ) { 1583 continue; 1584 } 1585 1586 if ( '.' === dirname( $file ) 1587 && in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ), true ) 1588 ) { 1589 continue; 1590 } 1591 1592 if ( md5_file( ABSPATH . $file ) === $checksum ) { 1593 $skip[] = $file; 1594 } else { 1595 $check_is_writable[ $file ] = ABSPATH . $file; 1596 } 1597 } 1598 } 1599 } 1600 1601 // If we're using the direct method, we can predict write failures that are due to permissions. 1602 if ( $check_is_writable && 'direct' === $wp_filesystem->method ) { 1603 $files_writable = array_filter( $check_is_writable, array( $wp_filesystem, 'is_writable' ) ); 1604 1605 if ( $files_writable !== $check_is_writable ) { 1606 $files_not_writable = array_diff_key( $check_is_writable, $files_writable ); 1607 1608 foreach ( $files_not_writable as $relative_file_not_writable => $file_not_writable ) { 1609 // If the writable check failed, chmod file to 0644 and try again, same as copy_dir(). 1610 $wp_filesystem->chmod( $file_not_writable, FS_CHMOD_FILE ); 1611 1612 if ( $wp_filesystem->is_writable( $file_not_writable ) ) { 1613 unset( $files_not_writable[ $relative_file_not_writable ] ); 1614 } 1615 } 1616 1617 // Store package-relative paths (the key) of non-writable files in the WP_Error object. 1618 $error_data = version_compare( $old_wp_version, '3.7-beta2', '>' ) ? array_keys( $files_not_writable ) : ''; 1619 1620 if ( $files_not_writable ) { 1621 return new WP_Error( 1622 'files_not_writable', 1623 __( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ), 1624 implode( ', ', $error_data ) 1625 ); 1626 } 1627 } 1628 } 1629 1630 /** This filter is documented in wp-admin/includes/update-core.php */ 1631 apply_filters( 'update_feedback', __( 'Enabling Maintenance mode…' ) ); 1632 1633 // Create maintenance file to signal that we are upgrading. 1634 $maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; 1635 $maintenance_file = $to . '.maintenance'; 1636 $wp_filesystem->delete( $maintenance_file ); 1637 $wp_filesystem->put_contents( $maintenance_file, $maintenance_string, FS_CHMOD_FILE ); 1638 1639 /** This filter is documented in wp-admin/includes/update-core.php */ 1640 apply_filters( 'update_feedback', __( 'Copying the required files…' ) ); 1641 1642 // Copy new versions of WP files into place. 1643 $result = copy_dir( $from . $distro, $to, $skip ); 1644 1645 if ( is_wp_error( $result ) ) { 1646 $result = new WP_Error( 1647 $result->get_error_code(), 1648 $result->get_error_message(), 1649 substr( $result->get_error_data(), strlen( $to ) ) 1650 ); 1651 } 1652 1653 // Since we know the core files have copied over, we can now copy the version file. 1654 if ( ! is_wp_error( $result ) ) { 1655 if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) { 1656 $wp_filesystem->delete( $from, true ); 1657 $result = new WP_Error( 1658 'copy_failed_for_version_file', 1659 __( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ), 1660 'wp-includes/version.php' 1661 ); 1662 } 1663 1664 $wp_filesystem->chmod( $to . 'wp-includes/version.php', FS_CHMOD_FILE ); 1665 1666 /* 1667 * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, 1668 * so don't run it when upgrading from older versions. 1669 */ 1670 if ( function_exists( 'wp_opcache_invalidate' ) ) { 1671 wp_opcache_invalidate( $to . 'wp-includes/version.php' ); 1672 } 1673 } 1674 1675 // Check to make sure everything copied correctly, ignoring the contents of wp-content. 1676 $skip = array( 'wp-content' ); 1677 $failed = array(); 1678 1679 if ( isset( $checksums ) && is_array( $checksums ) ) { 1680 foreach ( $checksums as $file => $checksum ) { 1681 /* 1682 * Note: str_starts_with() is not used here, as this file is included 1683 * when updating from older WordPress versions, in which case 1684 * the polyfills from wp-includes/compat.php may not be available. 1685 */ 1686 if ( 'wp-content' === substr( $file, 0, 10 ) ) { 1687 continue; 1688 } 1689 1690 if ( ! file_exists( $working_dir_local . $file ) ) { 1691 continue; 1692 } 1693 1694 if ( '.' === dirname( $file ) 1695 && in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ), true ) 1696 ) { 1697 $skip[] = $file; 1698 continue; 1699 } 1700 1701 if ( file_exists( ABSPATH . $file ) && md5_file( ABSPATH . $file ) === $checksum ) { 1702 $skip[] = $file; 1703 } else { 1704 $failed[] = $file; 1705 } 1706 } 1707 } 1708 1709 // Some files didn't copy properly. 1710 if ( ! empty( $failed ) ) { 1711 $total_size = 0; 1712 1713 foreach ( $failed as $file ) { 1714 if ( file_exists( $working_dir_local . $file ) ) { 1715 $total_size += filesize( $working_dir_local . $file ); 1716 } 1717 } 1718 1719 /* 1720 * If we don't have enough free space, it isn't worth trying again. 1721 * Unlikely to be hit due to the check in unzip_file(). 1722 */ 1723 $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( ABSPATH ) : false; 1724 1725 if ( $available_space && $total_size >= $available_space ) { 1726 $result = new WP_Error( 'disk_full', __( 'There is not enough free disk space to complete the update.' ) ); 1727 } else { 1728 $result = copy_dir( $from . $distro, $to, $skip ); 1729 1730 if ( is_wp_error( $result ) ) { 1731 $result = new WP_Error( 1732 $result->get_error_code() . '_retry', 1733 $result->get_error_message(), 1734 substr( $result->get_error_data(), strlen( $to ) ) 1735 ); 1736 } 1737 } 1738 } 1739 1740 /* 1741 * Custom content directory needs updating now. 1742 * Copy languages. 1743 */ 1744 if ( ! is_wp_error( $result ) && $wp_filesystem->is_dir( $from . $distro . 'wp-content/languages' ) ) { 1745 if ( WP_LANG_DIR !== ABSPATH . WPINC . '/languages' || @is_dir( WP_LANG_DIR ) ) { 1746 $lang_dir = WP_LANG_DIR; 1747 } else { 1748 $lang_dir = WP_CONTENT_DIR . '/languages'; 1749 } 1750 /* 1751 * Note: str_starts_with() is not used here, as this file is included 1752 * when updating from older WordPress versions, in which case 1753 * the polyfills from wp-includes/compat.php may not be available. 1754 */ 1755 // Check if the language directory exists first. 1756 if ( ! @is_dir( $lang_dir ) && 0 === strpos( $lang_dir, ABSPATH ) ) { 1757 // If it's within the ABSPATH we can handle it here, otherwise they're out of luck. 1758 $wp_filesystem->mkdir( $to . str_replace( ABSPATH, '', $lang_dir ), FS_CHMOD_DIR ); 1759 clearstatcache(); // For FTP, need to clear the stat cache. 1760 } 1761 1762 if ( @is_dir( $lang_dir ) ) { 1763 $wp_lang_dir = $wp_filesystem->find_folder( $lang_dir ); 1764 1765 if ( $wp_lang_dir ) { 1766 $result = copy_dir( $from . $distro . 'wp-content/languages/', $wp_lang_dir ); 1767 1768 if ( is_wp_error( $result ) ) { 1769 $result = new WP_Error( 1770 $result->get_error_code() . '_languages', 1771 $result->get_error_message(), 1772 substr( $result->get_error_data(), strlen( $wp_lang_dir ) ) 1773 ); 1774 } 1775 } 1776 } 1777 } 1778 1779 /** This filter is documented in wp-admin/includes/update-core.php */ 1780 apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) ); 1781 1782 // Remove maintenance file, we're done with potential site-breaking changes. 1783 $wp_filesystem->delete( $maintenance_file ); 1784 1785 /* 1786 * 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, 1787 * preventing installation of Twenty Twelve. 1788 */ 1789 if ( '3.5' === $old_wp_version ) { 1790 if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' ) 1791 && ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' ) 1792 ) { 1793 $wp_filesystem->delete( $wp_filesystem->wp_themes_dir() . 'twentytwelve/' ); 1794 } 1795 } 1796 1797 /* 1798 * Copy new bundled plugins & themes. 1799 * This gives us the ability to install new plugins & themes bundled with 1800 * future versions of WordPress whilst avoiding the re-install upon upgrade issue. 1801 * $development_build controls us overwriting bundled themes and plugins when a non-stable release is being updated. 1802 */ 1803 if ( ! is_wp_error( $result ) 1804 && ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || ! CORE_UPGRADE_SKIP_NEW_BUNDLED ) 1805 ) { 1806 foreach ( (array) $_new_bundled_files as $file => $introduced_version ) { 1807 // If a $development_build or if $introduced version is greater than what the site was previously running. 1808 if ( $development_build || version_compare( $introduced_version, $old_wp_version, '>' ) ) { 1809 $directory = ( '/' === $file[ strlen( $file ) - 1 ] ); 1810 1811 list( $type, $filename ) = explode( '/', $file, 2 ); 1812 1813 // Check to see if the bundled items exist before attempting to copy them. 1814 if ( ! $wp_filesystem->exists( $from . $distro . 'wp-content/' . $file ) ) { 1815 continue; 1816 } 1817 1818 if ( 'plugins' === $type ) { 1819 $dest = $wp_filesystem->wp_plugins_dir(); 1820 } elseif ( 'themes' === $type ) { 1821 // Back-compat, ::wp_themes_dir() did not return trailingslash'd pre-3.2. 1822 $dest = trailingslashit( $wp_filesystem->wp_themes_dir() ); 1823 } else { 1824 continue; 1825 } 1826 1827 if ( ! $directory ) { 1828 if ( ! $development_build && $wp_filesystem->exists( $dest . $filename ) ) { 1829 continue; 1830 } 1831 1832 if ( ! $wp_filesystem->copy( $from . $distro . 'wp-content/' . $file, $dest . $filename, FS_CHMOD_FILE ) ) { 1833 $result = new WP_Error( "copy_failed_for_new_bundled_$type", __( 'Could not copy file.' ), $dest . $filename ); 1834 } 1835 } else { 1836 if ( ! $development_build && $wp_filesystem->is_dir( $dest . $filename ) ) { 1837 continue; 1838 } 1839 1840 $wp_filesystem->mkdir( $dest . $filename, FS_CHMOD_DIR ); 1841 $_result = copy_dir( $from . $distro . 'wp-content/' . $file, $dest . $filename ); 1842 1843 /* 1844 * If an error occurs partway through this final step, 1845 * keep the error flowing through, but keep the process going. 1846 */ 1847 if ( is_wp_error( $_result ) ) { 1848 if ( ! is_wp_error( $result ) ) { 1849 $result = new WP_Error(); 1850 } 1851 1852 $result->add( 1853 $_result->get_error_code() . "_$type", 1854 $_result->get_error_message(), 1855 substr( $_result->get_error_data(), strlen( $dest ) ) 1856 ); 1857 } 1858 } 1859 } 1860 } // End foreach. 1861 } 1862 1863 // Handle $result error from the above blocks. 1864 if ( is_wp_error( $result ) ) { 1865 $wp_filesystem->delete( $from, true ); 1866 1867 return $result; 1868 } 1869 1870 // Remove old files. 1871 foreach ( $_old_files as $old_file ) { 1872 $old_file = $to . $old_file; 1873 1874 if ( ! $wp_filesystem->exists( $old_file ) ) { 1875 continue; 1876 } 1877 1878 // If the file isn't deleted, try writing an empty string to the file instead. 1879 if ( ! $wp_filesystem->delete( $old_file, true ) && $wp_filesystem->is_file( $old_file ) ) { 1880 $wp_filesystem->put_contents( $old_file, '' ); 1881 } 1882 } 1883 1884 // Remove any Genericons example.html's from the filesystem. 1885 _upgrade_422_remove_genericons(); 1886 1887 // Deactivate the REST API plugin if its version is 2.0 Beta 4 or lower. 1888 _upgrade_440_force_deactivate_incompatible_plugins(); 1889 1890 // Deactivate incompatible plugins. 1891 _upgrade_core_deactivate_incompatible_plugins(); 1892 1893 // Upgrade DB with separate request. 1894 /** This filter is documented in wp-admin/includes/update-core.php */ 1895 apply_filters( 'update_feedback', __( 'Upgrading database…' ) ); 1896 1897 $db_upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' ); 1898 wp_remote_post( $db_upgrade_url, array( 'timeout' => 60 ) ); 1899 1900 // Clear the cache to prevent an update_option() from saving a stale db_version to the cache. 1901 wp_cache_flush(); 1902 // Not all cache back ends listen to 'flush'. 1903 wp_cache_delete( 'alloptions', 'options' ); 1904 1905 // Remove working directory. 1906 $wp_filesystem->delete( $from, true ); 1907 1908 // Force refresh of update information. 1909 if ( function_exists( 'delete_site_transient' ) ) { 1910 delete_site_transient( 'update_core' ); 1911 } else { 1912 delete_option( 'update_core' ); 1913 } 1914 1915 /** 1916 * Fires after WordPress core has been successfully updated. 1917 * 1918 * @since 3.3.0 1919 * 1920 * @param string $wp_version The current WordPress version. 1921 */ 1922 do_action( '_core_updated_successfully', $wp_version ); 1923 1924 // Clear the option that blocks auto-updates after failures, now that we've been successful. 1925 if ( function_exists( 'delete_site_option' ) ) { 1926 delete_site_option( 'auto_core_update_failed' ); 1927 } 1928 1929 return $wp_version; 1930 } 1931 1932 /** 1933 * Preloads old Requests classes and interfaces. 1934 * 1935 * This function preloads the old Requests code into memory before the 1936 * upgrade process deletes the files. Why? Requests code is loaded into 1937 * memory via an autoloader, meaning when a class or interface is needed 1938 * If a request is in process, Requests could attempt to access code. If 1939 * the file is not there, a fatal error could occur. If the file was 1940 * replaced, the new code is not compatible with the old, resulting in 1941 * a fatal error. Preloading ensures the code is in memory before the 1942 * code is updated. 1943 * 1944 * @since 6.2.0 1945 * 1946 * @global string[] $_old_requests_files Requests files to be preloaded. 1947 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. 1948 * @global string $wp_version The WordPress version string. 1949 * 1950 * @param string $to Path to old WordPress installation. 1951 */ 1952 function _preload_old_requests_classes_and_interfaces( $to ) { 1953 global $_old_requests_files, $wp_filesystem, $wp_version; 1954 1955 /* 1956 * Requests was introduced in WordPress 4.6. 1957 * 1958 * Skip preloading if the website was previously using 1959 * an earlier version of WordPress. 1960 */ 1961 if ( version_compare( $wp_version, '4.6', '<' ) ) { 1962 return; 1963 } 1964 1965 if ( ! defined( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS' ) ) { 1966 define( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS', true ); 1967 } 1968 1969 foreach ( $_old_requests_files as $name => $file ) { 1970 // Skip files that aren't interfaces or classes. 1971 if ( is_int( $name ) ) { 1972 continue; 1973 } 1974 1975 // Skip if it's already loaded. 1976 if ( class_exists( $name ) || interface_exists( $name ) ) { 1977 continue; 1978 } 1979 1980 // Skip if the file is missing. 1981 if ( ! $wp_filesystem->is_file( $to . $file ) ) { 1982 continue; 1983 } 1984 1985 require_once $to . $file; 1986 } 1987 } 1988 1989 /** 1990 * Redirect to the About WordPress page after a successful upgrade. 1991 * 1992 * This function is only needed when the existing installation is older than 3.4.0. 1993 * 1994 * @since 3.3.0 1995 * 1996 * @global string $wp_version The WordPress version string. 1997 * @global string $pagenow The filename of the current screen. 1998 * @global string $action 1999 * 2000 * @param string $new_version 2001 */ 2002 function _redirect_to_about_wordpress( $new_version ) { 2003 global $wp_version, $pagenow, $action; 2004 2005 if ( version_compare( $wp_version, '3.4-RC1', '>=' ) ) { 2006 return; 2007 } 2008 2009 // Ensure we only run this on the update-core.php page. The Core_Upgrader may be used in other contexts. 2010 if ( 'update-core.php' !== $pagenow ) { 2011 return; 2012 } 2013 2014 if ( 'do-core-upgrade' !== $action && 'do-core-reinstall' !== $action ) { 2015 return; 2016 } 2017 2018 // Load the updated default text localization domain for new strings. 2019 load_default_textdomain(); 2020 2021 // See do_core_upgrade(). 2022 show_message( __( 'WordPress updated successfully.' ) ); 2023 2024 // self_admin_url() won't exist when upgrading from <= 3.0, so relative URLs are intentional. 2025 show_message( 2026 '<span class="hide-if-no-js">' . sprintf( 2027 /* translators: 1: WordPress version, 2: URL to About screen. */ 2028 __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%2$s">here</a>.' ), 2029 $new_version, 2030 'about.php?updated' 2031 ) . '</span>' 2032 ); 2033 show_message( 2034 '<span class="hide-if-js">' . sprintf( 2035 /* translators: 1: WordPress version, 2: URL to About screen. */ 2036 __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), 2037 $new_version, 2038 'about.php?updated' 2039 ) . '</span>' 2040 ); 2041 echo '</div>'; 2042 ?> 2043 <script> 2044 window.location = 'about.php?updated'; 2045 </script> 2046 <?php 2047 2048 // Include admin-footer.php and exit. 2049 require_once ABSPATH . 'wp-admin/admin-footer.php'; 2050 exit; 2051 } 2052 2053 /** 2054 * Cleans up Genericons example files. 2055 * 2056 * @since 4.2.2 2057 * 2058 * @global string[] $wp_theme_directories 2059 * @global WP_Filesystem_Base $wp_filesystem 2060 */ 2061 function _upgrade_422_remove_genericons() { 2062 global $wp_theme_directories, $wp_filesystem; 2063 2064 // A list of the affected files using the filesystem absolute paths. 2065 $affected_files = array(); 2066 2067 // Themes. 2068 foreach ( $wp_theme_directories as $directory ) { 2069 $affected_theme_files = _upgrade_422_find_genericons_files_in_folder( $directory ); 2070 $affected_files = array_merge( $affected_files, $affected_theme_files ); 2071 } 2072 2073 // Plugins. 2074 $affected_plugin_files = _upgrade_422_find_genericons_files_in_folder( WP_PLUGIN_DIR ); 2075 $affected_files = array_merge( $affected_files, $affected_plugin_files ); 2076 2077 foreach ( $affected_files as $file ) { 2078 $gen_dir = $wp_filesystem->find_folder( trailingslashit( dirname( $file ) ) ); 2079 2080 if ( empty( $gen_dir ) ) { 2081 continue; 2082 } 2083 2084 // The path when the file is accessed via WP_Filesystem may differ in the case of FTP. 2085 $remote_file = $gen_dir . basename( $file ); 2086 2087 if ( ! $wp_filesystem->exists( $remote_file ) ) { 2088 continue; 2089 } 2090 2091 if ( ! $wp_filesystem->delete( $remote_file, false, 'f' ) ) { 2092 $wp_filesystem->put_contents( $remote_file, '' ); 2093 } 2094 } 2095 } 2096 2097 /** 2098 * Recursively find Genericons example files in a given folder. 2099 * 2100 * @ignore 2101 * @since 4.2.2 2102 * 2103 * @param string $directory Directory path. Expects trailingslashed. 2104 * @return string[] 2105 */ 2106 function _upgrade_422_find_genericons_files_in_folder( $directory ) { 2107 $directory = trailingslashit( $directory ); 2108 $files = array(); 2109 2110 if ( file_exists( "{$directory}example.html" ) 2111 /* 2112 * Note: str_contains() is not used here, as this file is included 2113 * when updating from older WordPress versions, in which case 2114 * the polyfills from wp-includes/compat.php may not be available. 2115 */ 2116 && false !== strpos( file_get_contents( "{$directory}example.html" ), '<title>Genericons</title>' ) 2117 ) { 2118 $files[] = "{$directory}example.html"; 2119 } 2120 2121 $dirs = glob( $directory . '*', GLOB_ONLYDIR ); 2122 $dirs = array_filter( 2123 $dirs, 2124 static function ( $dir ) { 2125 /* 2126 * Skip any node_modules directories. 2127 * 2128 * Note: str_contains() is not used here, as this file is included 2129 * when updating from older WordPress versions, in which case 2130 * the polyfills from wp-includes/compat.php may not be available. 2131 */ 2132 return false === strpos( $dir, 'node_modules' ); 2133 } 2134 ); 2135 2136 if ( $dirs ) { 2137 foreach ( $dirs as $dir ) { 2138 $files = array_merge( $files, _upgrade_422_find_genericons_files_in_folder( $dir ) ); 2139 } 2140 } 2141 2142 return $files; 2143 } 2144 2145 /** 2146 * @ignore 2147 * @since 4.4.0 2148 */ 2149 function _upgrade_440_force_deactivate_incompatible_plugins() { 2150 if ( defined( 'REST_API_VERSION' ) && version_compare( REST_API_VERSION, '2.0-beta4', '<=' ) ) { 2151 deactivate_plugins( array( 'rest-api/plugin.php' ), true ); 2152 } 2153 } 2154 2155 /** 2156 * @access private 2157 * @ignore 2158 * @since 5.8.0 2159 * @since 5.9.0 The minimum compatible version of Gutenberg is 11.9. 2160 * @since 6.1.1 The minimum compatible version of Gutenberg is 14.1. 2161 * @since 6.4.0 The minimum compatible version of Gutenberg is 16.5. 2162 * @since 6.5.0 The minimum compatible version of Gutenberg is 17.6. 2163 */ 2164 function _upgrade_core_deactivate_incompatible_plugins() { 2165 if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '17.6', '<' ) ) { 2166 $deactivated_gutenberg['gutenberg'] = array( 2167 'plugin_name' => 'Gutenberg', 2168 'version_deactivated' => GUTENBERG_VERSION, 2169 'version_compatible' => '17.6', 2170 ); 2171 if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) { 2172 $deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins', array() ); 2173 $deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg ); 2174 update_site_option( 'wp_force_deactivated_plugins', $deactivated_plugins ); 2175 } else { 2176 $deactivated_plugins = get_option( 'wp_force_deactivated_plugins', array() ); 2177 $deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg ); 2178 update_option( 'wp_force_deactivated_plugins', $deactivated_plugins, false ); 2179 } 2180 deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true ); 2181 } 2182 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Fri Sep 4 08:20:24 2026 | Cross-referenced by PHPXref |