WordPress/wp-includes
Peter Wilson 6ce6abd8c0 Upgrade/Install: Prevent possible type errors during installation.
Prevent a `TypeError` from occurring during installation if `wp-config.php` is not writable. In PHP 8.0 this can cause a fatal error, in earlier versions of PHP a warning would be thrown.

Account for a change in type returned by `fopen()` coming in a future version of PHP. Minor coding standards fixes in the `/wp-admin/setup-config.php` file.

Props xknown, hellofromTonya, jrf, peterwilsoncc.
See #51423.


Built from https://develop.svn.wordpress.org/trunk@50775


git-svn-id: http://core.svn.wordpress.org/trunk@50384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-21 01:33:03 +00:00
..
assets Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
block-patterns
block-supports Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
blocks Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
certificates
css Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
customize Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
fonts
ID3 External libraries: Include upstream GetID3 fix for PHP 8. 2021-04-14 23:10:04 +00:00
images
IXR
js Build/Test Tools: Update several dependencies. 2021-04-20 20:02:47 +00:00
PHPMailer External Libraries: Upgrade PHPMailer from 6.3.0 to 6.4.0. 2021-03-31 21:30:03 +00:00
pomo
random_compat
Requests
rest-api REST API: Allow authors to read their own password protected posts. 2021-04-14 23:24:04 +00:00
SimplePie
sitemaps Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
sodium_compat
Text
theme-compat
widgets Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
admin-bar.php Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
atomlib.php
author-template.php
block-patterns.php
blocks.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
bookmark-template.php
bookmark.php Coding Standards: Use strict comparison for return type checks in a few functions: 2021-03-21 12:41:04 +00:00
cache-compat.php
cache.php
canonical.php Canonical: Prevent ID enumeration of private post slugs. 2021-02-02 00:40:01 +00:00
capabilities.php Roles/Caps: Return same result from current_user_can and user_can(). 2021-03-04 00:14:04 +00:00
category-template.php
category.php
class-feed.php
class-http.php
class-IXR.php
class-json.php
class-oembed.php
class-phpass.php
class-phpmailer.php
class-pop3.php
class-requests.php
class-simplepie.php
class-smtp.php
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php
class-walker-comment.php Comments: Revert the introduction of the opt-in comment approval notification feature. 2021-02-17 13:08:05 +00:00
class-walker-nav-menu.php
class-walker-page-dropdown.php
class-walker-page.php
class-wp-admin-bar.php
class-wp-ajax-response.php Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML". 2020-06-28 14:02:06 +00:00
class-wp-application-passwords.php Docs: Update documentation for WP_Application_Passwords::application_name_exists_for_user() per the documentation standards. 2021-01-28 13:10:57 +00:00
class-wp-block-list.php
class-wp-block-parser.php Editor: Update @wordpress npm packages 2021-02-02 05:17:13 +00:00
class-wp-block-pattern-categories-registry.php Docs: Synchronize $category_name description in WP_Block_Pattern_Categories_Registry methods. 2021-03-13 11:17:03 +00:00
class-wp-block-patterns-registry.php Docs: Synchronize $category_name description in WP_Block_Pattern_Categories_Registry methods. 2021-03-13 11:17:03 +00:00
class-wp-block-styles-registry.php Blocks: Add is_default handling to server side block styles registry 2021-04-13 08:04:13 +00:00
class-wp-block-supports.php Editor: Update @wordpress npm packages 2021-01-28 02:04:13 +00:00
class-wp-block-type-registry.php Docs: Improve documentation for WP_Block_Type properties. 2021-02-23 19:18:02 +00:00
class-wp-block-type.php Docs: Add missing @since tags for item_link and item_link_description post type and taxonomy labels. 2021-03-13 10:25:06 +00:00
class-wp-block.php Editor: Introduce a dynamic filter for the content of a single block: 2021-02-01 18:06:03 +00:00
class-wp-comment-query.php Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names. 2021-01-08 14:30:14 +00:00
class-wp-comment.php
class-wp-customize-control.php Docs: Miscellaneous docblock fixes. 2020-10-17 14:54:05 +00:00
class-wp-customize-manager.php
class-wp-customize-nav-menus.php
class-wp-customize-panel.php
class-wp-customize-section.php
class-wp-customize-setting.php
class-wp-customize-widgets.php
class-wp-date-query.php
class-wp-dependency.php
class-wp-editor.php
class-wp-embed.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-error.php
class-wp-fatal-error-handler.php Site Health: Link to the support article on troubleshooting in "There has been a critical error" message. 2021-02-09 16:59:04 +00:00
class-wp-feed-cache-transient.php
class-wp-feed-cache.php
class-wp-hook.php
class-wp-http-cookie.php
class-wp-http-curl.php
class-wp-http-encoding.php
class-wp-http-ixr-client.php
class-wp-http-proxy.php
class-wp-http-requests-hooks.php Docs: Add missing @since tags. 2020-11-19 17:54:05 +00:00
class-wp-http-requests-response.php
class-wp-http-response.php
class-wp-http-streams.php
class-wp-image-editor-gd.php Media: Avoid suppressing errors when using getimagesize(). 2021-02-02 16:53:04 +00:00
class-wp-image-editor-imagick.php
class-wp-image-editor.php
class-wp-list-util.php Coding Standards: Use strict comparison in WP_List_Util::filter(). 2020-07-10 12:46:09 +00:00
class-wp-locale-switcher.php
class-wp-locale.php
class-wp-matchesmapregex.php
class-wp-meta-query.php Query: Consistently include a space in parentheses in WP_Meta_Query::get_sql_for_clause(). 2021-03-25 12:39:07 +00:00
class-wp-metadata-lazyloader.php Docs: Various docblock corrections particularly relating to boolean types. 2021-01-03 21:57:09 +00:00
class-wp-network-query.php
class-wp-network.php
class-wp-object-cache.php
class-wp-oembed-controller.php
class-wp-oembed.php
class-wp-paused-extensions-storage.php
class-wp-post-type.php
class-wp-post.php
class-wp-query.php Query: Consistently include a space in parentheses in WP_Meta_Query::get_sql_for_clause(). 2021-03-25 12:39:07 +00:00
class-wp-recovery-mode-cookie-service.php
class-wp-recovery-mode-email-service.php Coding Standards: Move some translator comments to the correct place. 2021-04-04 18:30:05 +00:00
class-wp-recovery-mode-key-service.php
class-wp-recovery-mode-link-service.php Docs: Document the usage of $pagenow global in a few functions. 2021-02-22 19:18:12 +00:00
class-wp-recovery-mode.php
class-wp-rewrite.php
class-wp-role.php
class-wp-roles.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-session-tokens.php
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php
class-wp-site.php Docs: Various docblock corrections and improvements. 2021-02-20 17:10:11 +00:00
class-wp-tax-query.php
class-wp-taxonomy.php Taxonomy: Reorder some WP_Taxonomy properties for consistency. 2021-02-01 11:55:00 +00:00
class-wp-term-query.php Docs: Fix indentation for wp_term_query->construct method parameters. 2021-03-29 21:35:07 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php
class-wp-theme.php Docs: Add examples of possible names for various hooks whose name contains a dynamic portion. 2021-03-07 12:32:09 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php
class-wp-user-request.php
class-wp-user.php Roles/Caps: Return same result from current_user_can and user_can(). 2021-03-04 00:14:04 +00:00
class-wp-walker.php
class-wp-widget-factory.php
class-wp-widget.php
class-wp-xmlrpc-server.php XML-RPC: Pass an empty array to the xmlrpc_call action in methods that have no arguments. 2021-03-05 11:03:06 +00:00
class-wp.php Comments: Extend the duration of the window within which unapproved comments are visible by their author. 2021-02-09 16:57:04 +00:00
class.wp-dependencies.php
class.wp-scripts.php Script Loader: Prevent wp_localize_script() warnings. 2021-02-22 23:23:07 +00:00
class.wp-styles.php Docs: Use correct variable in the style_loader_tag filter DocBlock. 2021-02-27 17:59:03 +00:00
comment-template.php
comment.php Docs: Clarify return results for a non-existing ID in metadata functions. 2021-04-02 15:49:05 +00:00
compat.php
cron.php Cron API: Add a missing $wp_error parameter to the pre_reschedule_event filter. 2021-02-20 12:11:03 +00:00
date.php
default-constants.php
default-filters.php Editor: Consolidate enqueueing block editor assets in wp-includes/default-filters.php. 2021-04-01 11:46:09 +00:00
default-widgets.php
deprecated.php Media: Avoid suppressing errors when using getimagesize(). 2021-02-02 16:53:04 +00:00
embed-template.php
embed.php Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
error-protection.php
feed-atom-comments.php
feed-atom.php Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php
formatting.php
functions.php Docs: Add examples of possible names for various hooks whose name contains a dynamic portion. 2021-03-07 12:32:09 +00:00
functions.wp-scripts.php Script Loader: Explicitly declare the $pagenow global in wp_deregister_script(). 2021-02-20 09:56:04 +00:00
functions.wp-styles.php
general-template.php Options, Meta APIs: Update default color scheme swatch to match CSS changes. 2021-04-06 05:44:07 +00:00
http.php
https-detection.php Security, Site Health: Do not store HTTPS request error messages in an option. 2021-03-02 15:08:09 +00:00
https-migration.php Security, Site Health: Make migrating a site to HTTPS a one-click interaction. 2021-02-02 00:10:01 +00:00
kses.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
l10n.php
link-template.php Docs: Add examples of possible names for various hooks whose name contains a dynamic portion. 2021-03-07 12:32:09 +00:00
load.php Docs: Document the usage of $pagenow global in a few functions. 2021-02-22 19:18:12 +00:00
locale.php
media-template.php Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
media.php Media: Do not lazy load hidden images or embeds. 2021-04-07 01:01:05 +00:00
meta.php Docs: Clarify return results for a non-existing ID in metadata functions. 2021-04-02 15:49:05 +00:00
ms-blogs.php
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php
ms-files.php
ms-functions.php
ms-load.php
ms-network.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:27:06 +00:00
ms-settings.php
ms-site.php Docs: Clarify return results for a non-existing ID in metadata functions. 2021-04-02 15:49:05 +00:00
nav-menu-template.php
nav-menu.php Coding Standards: Use strict comparison for return type checks in a few functions: 2021-03-21 12:41:04 +00:00
option.php
pluggable-deprecated.php
pluggable.php
plugin.php
post-formats.php
post-template.php Posts, Post Types: Rename the new post parent conditional tag functions for clarity. 2021-02-20 17:45:04 +00:00
post-thumbnail-template.php Docs: Clarify the @return value for wp_get_attachment_image_url() and get_the_post_thumbnail_url(). 2021-02-08 14:14:08 +00:00
post.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
query.php
registration-functions.php
registration.php
rest-api.php Coding Standards: Move some translator comments to the correct place. 2021-04-04 18:30:05 +00:00
revision.php Coding Standards: Use strict comparison for return type checks in a few functions: 2021-03-21 12:41:04 +00:00
rewrite.php
robots-template.php Robots: Remove contradictory directive check in wp_robots(). 2021-03-23 23:02:05 +00:00
rss-functions.php
rss.php
script-loader.php External Libraries: Update Moment.js to the latest version. 2021-04-20 19:15:21 +00:00
session.php
shortcodes.php Docs: In various @return tags, list the expected type first, instead of false. 2021-01-15 20:08:07 +00:00
sitemaps.php
spl-autoload-compat.php
taxonomy.php Docs: Clarify return results for a non-existing ID in metadata functions. 2021-04-02 15:49:05 +00:00
template-loader.php
template.php Docs: Add examples of possible names for various hooks whose name contains a dynamic portion. 2021-03-07 12:32:09 +00:00
theme.php Docs: Various docblock corrections and improvements. 2021-02-20 17:10:11 +00:00
update.php Upgrade/Install: Allow WordPress sites to opt-in to development releases. 2021-01-30 10:34:02 +00:00
user.php Docs: Clarify return results for a non-existing ID in metadata functions. 2021-04-02 15:49:05 +00:00
vars.php
version.php Upgrade/Install: Prevent possible type errors during installation. 2021-04-21 01:33:03 +00:00
widgets.php Docs: Correct the type of $widget_id argument in is_active_widget(). 2021-02-17 11:48:12 +00:00
wlwmanifest.xml
wp-db.php
wp-diff.php