Wordpress/src/wp-includes
Anton Timmermans d2d7243e80 Build tools: Allow building WordPress to `src`.
After the JavaScript reorganization in [43309], it was no longer possible to test WordPress from the `src` folder. That meant a build step was required to test PHP modifications. That is suboptimal as even a simple copy is slower than a web server just serving the new file.

We achieve building to `src` by setting a `WORKING_DIR` constant in the Gruntfile that is `build` by default, but changes to `src` when the `--dev` flag is present on any Grunt command. We provide sensible defaults so some commands, such as copying `version.php`, always build to `build`.

Because testing from `build` is no longer required, we change the messages present in `index.php` and `wp-admin/index.php` to be more broadly about building WordPress.

We also change the webpack config to have more straightforward behavior based on the `buildTarget` argument. It only determines the build target now and has no implicit behavior anymore. `grunt build` still works as it worked before, to make sure that the build server produces the same `wordpress.zip` we are used to.

We do all this instead of a symlink setup because symlinks don't work on every platform.

Props omarreiss, netweb, flixos90, SergeyBiryukov.
Fixes #44492.


git-svn-id: https://develop.svn.wordpress.org/trunk@44359 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-24 13:28:22 +00:00
..
ID3 Media: update the `getID3` library to version `1.9.14` to avoid fatal errors in PHP7. 2017-07-31 19:49:31 +00:00
IXR XML-RPC: Add default values to IXR_Message for PHP 7.2 compatibility to avoid PHP Warnings. 2018-02-06 02:55:38 +00:00
Requests HTTP: Update Requests to master (0048f3c) which fixes a number of outstanding issues. 2016-10-05 03:23:54 +00:00
SimplePie
Text External Libraries: Remove usage of `each()` from the `Text_Diff_Engine_native` class. 2017-10-26 12:51:51 +00:00
blocks Block Editor: Upgrade `@wordpress` packages to match version 4.7.1. 2018-12-18 21:56:06 +00:00
certificates
css Toolbar: Remove extra zero-width space in `wp-includes/css/admin-bar.css`. 2018-12-20 02:31:28 +00:00
customize Docs: Future-proof comments referencing 5.0 TODOs. 2018-12-16 04:47:41 +00:00
fonts
images Build: Update images following [43684]. 2018-12-19 00:33:59 +00:00
pomo Docs: Add missing `@return` notations to three `MO` method DocBlocks. 2018-12-19 17:03:27 +00:00
random_compat External Libraries: Update Random_Compat from 1.2.1 to 2.0.11. 2017-11-08 11:47:04 +00:00
rest-api REST API: Remove a duplicate `require_once()`. 2018-12-18 23:07:34 +00:00
theme-compat Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
widgets Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
admin-bar.php Multisite: Display registered `new_item` text for `post` post type in My Sites menu. 2018-08-29 15:50:00 +00:00
atomlib.php General: Remove most uses of create_function() 2016-12-13 01:48:41 +00:00
author-template.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
blocks.php Block Editor: Fix PHP warning when loading editor styles while in RTL. 2018-12-17 18:06:42 +00:00
bookmark-template.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
bookmark.php Code is Poetry. 2017-11-30 23:09:33 +00:00
cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
canonical.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
capabilities.php Blocks: Add the reusable block post type, `wp_block`. 2018-12-14 02:14:13 +00:00
category-template.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
category.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-IXR.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:30:48 +00:00
class-feed.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-http.php Docs: Update `@deprecated` tag for `WP_Http::_dispatch_request()`. See [42766]. 2018-12-20 01:58:13 +00:00
class-json.php Docs: Fix typo in `Services_JSON` DocBlocks. 2018-05-27 19:41:16 +00:00
class-oembed.php Docs: Remove erroneous pipe character usage in the `oembed_providers` filter DocBlock. 2018-12-19 16:35:30 +00:00
class-phpass.php
class-phpmailer.php Update PHPMailer to 5.2.22. 2017-01-11 01:22:46 +00:00
class-pop3.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:27:53 +00:00
class-requests.php HTTP: Update Requests to master (0048f3c) which fixes a number of outstanding issues. 2016-10-05 03:23:54 +00:00
class-simplepie.php
class-smtp.php Update PHPMailer to 5.2.22. 2017-01-11 01:22:46 +00:00
class-snoopy.php Docs: Use 3-digit, x.x.x-style semantic versioning for `_doing_it_wrong()`, `_deprecated_function()`, `_deprecated_argument()`, and `_deprecated_file()` throughout core. 2016-07-06 12:39:01 +00:00
class-walker-category-dropdown.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-walker-category.php Taxonomy: Make sure `wp_list_categories()` correctly outputs term name of `0`. 2018-09-02 22:08:05 +00:00
class-walker-comment.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-walker-nav-menu.php Docs: Correct and improve various inline documentation. 2018-03-25 19:34:31 +00:00
class-walker-page-dropdown.php Docs: Correctly specify the `$page` parameter of `list_pages` filter as a `WP_Post`. 2018-12-20 20:04:00 +00:00
class-walker-page.php Docs: Document more parameters and properties using typed array notation. 2018-03-25 18:09:56 +00:00
class-wp-admin-bar.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-ajax-response.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-block-parser.php Build tools: Allow building WordPress to `src`. 2018-12-24 13:28:22 +00:00
class-wp-block-type-registry.php Blocks: Introduce `WP_Block_Type` and `WP_Block_Type_Registry` classes. 2018-12-13 09:43:29 +00:00
class-wp-block-type.php REST API: Preserve unknown, respect `null` in server-side block rendering. 2018-12-17 17:59:44 +00:00
class-wp-comment-query.php PHP7.3 compatibility: Fix compact throwing notices. 2018-12-14 05:12:12 +00:00
class-wp-comment.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-customize-control.php Docs: Remove `@static` notations from property DocBlocks in `wp-admin/*` and `wp-includes/*` classes. 2018-02-25 20:31:33 +00:00
class-wp-customize-manager.php Docs: Future-proof comments referencing 5.0 TODOs. 2018-12-16 04:47:41 +00:00
class-wp-customize-nav-menus.php Customizer: Remove a line of commented-out code in `WP_Customize_Nav_Menus::customize_register()`. 2018-12-19 07:22:02 +00:00
class-wp-customize-panel.php Docs: Remove `@static` notations from property DocBlocks in `wp-admin/*` and `wp-includes/*` classes. 2018-02-25 20:31:33 +00:00
class-wp-customize-section.php Docs: Remove `@static` notations from property DocBlocks in `wp-admin/*` and `wp-includes/*` classes. 2018-02-25 20:31:33 +00:00
class-wp-customize-setting.php General: Introduce `WP_Error::has_errors()` method and use it where appropriate. 2018-02-27 02:30:46 +00:00
class-wp-customize-widgets.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-dependency.php I18N: Add JavaScript translation support. 2018-12-14 05:51:31 +00:00
class-wp-editor.php TinyMCE: Fix the keyboard shortcut (Alt+Shift+H) to not open the default Block Editor help modal and change the title of the help modal to "Classic Block Keyboard Shortcuts" in the Classic BLock. Also remove Alt+Shift+Z in the Classic Block as it conflicts with the Block Editor. 2018-12-17 01:48:05 +00:00
class-wp-embed.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-error.php General: Introduce `WP_Error::has_errors()` method and use it where appropriate. 2018-02-27 02:30:46 +00:00
class-wp-feed-cache-transient.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-feed-cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-hook.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-http-cookie.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-http-curl.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-http-encoding.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-http-ixr-client.php Docs: Document more parameters and properties using typed array notation. 2018-03-25 19:32:24 +00:00
class-wp-http-proxy.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-http-requests-hooks.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-http-requests-response.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-http-response.php HTTP API: Use `WP_HTTP_Response::set_data()` in `::__construct()` instead of directly accessing the `$data` property. 2017-10-03 15:17:09 +00:00
class-wp-http-streams.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-image-editor-gd.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-image-editor-imagick.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-image-editor.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-list-util.php General: Allow `wp_list_pluck()` to operate on arrays of references without overwriting the referenced items. 2018-01-18 05:17:23 +00:00
class-wp-locale-switcher.php REST API: Render response in user locale with `?_locale=user`. 2018-12-14 01:31:27 +00:00
class-wp-locale.php I18N: Remove unused `$start_of_week` property from `WP_Locale`. 2018-02-18 16:31:57 +00:00
class-wp-matchesmapregex.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-meta-query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-metadata-lazyloader.php Docs: Correct and improve various inline documentation. 2018-03-25 19:34:31 +00:00
class-wp-network-query.php PHP7.3 compatibility: Fix compact throwing notices. 2018-12-14 05:12:12 +00:00
class-wp-network.php Docs: Document more parameters and properties using typed array notation. 2018-03-25 19:32:24 +00:00
class-wp-oembed-controller.php Embeds: Filter HTML response in oEmbed proxy controller. 2018-12-14 03:19:48 +00:00
class-wp-post-type.php Docs: Remove `@access` notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-post.php Docs: Update and correct various inline documentation. 2018-05-07 17:19:48 +00:00
class-wp-query.php Query: Remove nextpage block delimiters when setting up global post data. 2018-12-17 19:28:49 +00:00
class-wp-rewrite.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-role.php Docs: Document more parameters and properties using typed array notation. 2018-03-25 19:32:24 +00:00
class-wp-roles.php Docs: Document `WP_Roles` properties with typed array notation. 2018-03-22 18:55:20 +00:00
class-wp-session-tokens.php Docs: Correct and improve docblocks for user session management functionality. 2018-09-14 13:44:50 +00:00
class-wp-simplepie-file.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-simplepie-sanitize-kses.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-site-query.php Networks and Sites: Fix incorrect variable location. 2018-12-14 17:05:58 +00:00
class-wp-site.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-tax-query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-taxonomy.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-term-query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-term.php Docs: Remove `@static` notations from method DocBlocks in `wp-includes/*` classes. 2018-02-25 20:21:37 +00:00
class-wp-text-diff-renderer-inline.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-text-diff-renderer-table.php Revisions: Improve performance of `WP_Text_Diff_Renderer_Table`. 2018-12-14 01:03:51 +00:00
class-wp-theme.php Bundled Themes: Make twentynineteen the default theme. 2018-12-14 02:48:14 +00:00
class-wp-user-meta-session-tokens.php Docs: Correct and improve docblocks for user session management functionality. 2018-09-14 13:44:50 +00:00
class-wp-user-query.php Docs: Update `@since` tag for the `WP_User_Query` instance added to `found_users_query` filter in [43660]. 2018-12-20 02:23:11 +00:00
class-wp-user.php Users: Add `LIMIT 1` to SQL query in `WP_User::get_data_by()`, as only one row is requested. 2018-09-23 15:32:48 +00:00
class-wp-walker.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-widget-factory.php Code is Poetry. 2017-11-30 23:09:33 +00:00
class-wp-widget.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
class-wp-xmlrpc-server.php PHP7.3 compatibility: Fix compact throwing notices. 2018-12-14 05:12:12 +00:00
class-wp.php Multisite: Validate activation links. 2018-12-13 01:25:03 +00:00
class.wp-dependencies.php Docs: Document that the `$src` parameter of `WP_Dependencies::add()` can be boolean. 2018-09-28 21:50:45 +00:00
class.wp-scripts.php I18N: Set translations for all WordPress packages scripts. 2018-12-16 22:23:34 +00:00
class.wp-styles.php Script/Style Dependencies: Simplify some logic in `WP_Styles::do_item()`. 2018-08-11 17:41:02 +00:00
comment-template.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
comment.php PHP7.3 compatibility: Fix compact throwing notices. 2018-12-14 05:12:12 +00:00
compat.php General: In the `is_countable()` polyfill, if the provided object implements `SimpleXMLElement` or `ResourceBundle`, consider it countable. 2018-05-10 17:57:38 +00:00
cron.php Docs: Correct inline documentation versions. 2018-12-19 03:40:18 +00:00
date.php Docs: Correct and improve various inline documentation. 2018-03-25 19:34:31 +00:00
default-constants.php Bundled Themes: Make twentynineteen the default theme. 2018-12-14 02:48:14 +00:00
default-filters.php Styles: Add helper functions for loading block styles. 2018-12-14 03:35:55 +00:00
default-widgets.php Widgets: Introduce Gallery widget for displaying image galleries. 2017-09-25 06:27:32 +00:00
deprecated.php Administration: Change all the occurrences of "(opens in a new window)" to "(opens in a new tab)". 2018-05-05 09:44:21 +00:00
embed-template.php Docs: Use 3-digit, x.x.x-style semantic versioning for `_doing_it_wrong()`, `_deprecated_function()`, `_deprecated_argument()`, and `_deprecated_file()` throughout core. 2016-07-06 12:39:01 +00:00
embed.php General: Fix some code formatting issues. 2018-12-14 03:24:35 +00:00
feed-atom-comments.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
feed-atom.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
feed-rdf.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
feed-rss.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
feed-rss2-comments.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
feed-rss2.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
feed.php Docs: Remove erroneous zero-width space before URL in `fetch_feed()` DocBlock. 2017-12-21 02:39:21 +00:00
formatting.php Block Editor: Update `@wordpress` dependencies. 2018-12-17 04:50:48 +00:00
functions.php Media: Improve verification of MIME file types. 2018-12-18 16:34:17 +00:00
functions.wp-scripts.php Docs: Fix typo in `wp_add_inline_script()` and `wp_add_inline_style()` description. 2018-12-20 02:41:47 +00:00
functions.wp-styles.php Docs: Fix typo in `wp_add_inline_script()` and `wp_add_inline_style()` description. 2018-12-20 02:41:47 +00:00
general-template.php Administration: Update default fallback color for SVG icons. 2018-12-20 19:00:39 +00:00
http.php HTTP: Don't treat `localhost` as same host by default. 2018-04-03 14:59:44 +00:00
kses.php PHPCS: Fix alignment issues. 2018-12-18 16:57:27 +00:00
l10n.php i18n: Remove the `script_loader_src` filter from `load_script_textdomain()`. 2018-12-19 00:17:25 +00:00
link-template.php Users: Remove unnecessary `is_null()` call in `get_avatar_data()`. 2018-12-20 02:48:28 +00:00
load.php Load: Disable PHP errors for JSON requests 2018-12-12 03:07:58 +00:00
locale.php Load: No-op `locale.php` 2016-12-03 04:15:33 +00:00
media-template.php PHPCS: Fix errors 2018-12-11 04:44:16 +00:00
media.php Docs: Ensure the optional `$width` and `$height` parameters are documented as such with defaults in the `add_image_size()` DocBlock. 2018-12-19 07:25:21 +00:00
meta.php REST API: Move object type-specific metadata integrations from the wrapper functions to the low-level Meta API functions. 2018-12-12 03:02:00 +00:00
ms-blogs.php Multisite: Fix coding standard errors after [43654]. 2018-09-24 15:22:01 +00:00
ms-default-constants.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ms-default-filters.php Multisite: Introduce a site initialization and uninitialization API. 2018-09-24 15:08:32 +00:00
ms-deprecated.php Multisite: Validate activation links. 2018-12-13 01:25:03 +00:00
ms-files.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ms-functions.php Multisite: Introduce a site initialization and uninitialization API. 2018-09-24 15:08:32 +00:00
ms-load.php Networks and Sites: In `get_site_by_path()`, use single `domain` and `path` parameters if there's only one item to look for. 2018-02-11 17:08:58 +00:00
ms-settings.php Code is Poetry. 2017-11-30 23:09:33 +00:00
nav-menu-template.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
nav-menu.php Nav Menus: Fix a PHP 7.3 error when switching themes. 2018-12-14 05:15:54 +00:00
option.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
pluggable-deprecated.php Docs: Use 3-digit, x.x.x-style semantic versioning for `_doing_it_wrong()`, `_deprecated_function()`, `_deprecated_argument()`, and `_deprecated_file()` throughout core. 2016-07-06 12:39:01 +00:00
pluggable.php i18n: Improve consistency of translator comments. 2018-10-02 19:50:48 +00:00
plugin.php Code is Poetry. 2017-11-30 23:09:33 +00:00
post-formats.php Post Formats: Don't assign a variable inside `if` statement in `get_post_format()`. 2018-08-30 09:00:42 +00:00
post-template.php Themes: Introduce responsive embeds support. 2018-12-14 01:49:46 +00:00
post-thumbnail-template.php Pinking shears. 2018-03-18 14:22:09 +00:00
post.php Docs: Update `@since` tag for `edit_post_{$post->post_type}` hook introduced in [43535]. 2018-12-20 02:18:43 +00:00
query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
registration-functions.php Code is Poetry. 2017-11-30 23:09:33 +00:00
registration.php Code is Poetry. 2017-11-30 23:09:33 +00:00
rest-api.php REST API: Improve performance by avoiding `call_user_func()`. 2018-12-14 06:03:35 +00:00
revision.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
rewrite.php Code is Poetry. 2017-11-30 23:09:33 +00:00
rss-functions.php Code is Poetry. 2017-11-30 23:09:33 +00:00
rss.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:27:53 +00:00
script-loader.php Block Editor: Upgrade @WordPress packages to the latest version (4.7.1) 2018-12-19 00:26:52 +00:00
session.php Code is Poetry. 2017-11-30 23:09:33 +00:00
shortcodes.php Docs: Correct parameter name in `strip_shortcodes_tagnames` filter DocBlock. 2018-08-02 15:12:56 +00:00
spl-autoload-compat.php General: Move the `__autoload()` compat function into its own file to prevent deprecated notices being thrown by the compiler in PHP 7.2. 2017-07-28 01:14:03 +00:00
taxonomy.php Ensure that taxonomy name passed to `get_term()` filters is non-empty. 2018-12-19 03:47:59 +00:00
template-loader.php Code is Poetry. 2017-11-30 23:09:33 +00:00
template.php Docs: Add missing code formatting to various `@since` entries. 2018-02-09 16:54:58 +00:00
theme.php Themes: Document the new theme features being added. 2018-12-14 03:40:37 +00:00
update.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
user.php Privacy: When clicking a confirmation link for a privacy request, return a `WP_Error` object if the link has expired. 2018-09-03 21:43:13 +00:00
vars.php Code is Poetry. 2017-11-30 23:09:33 +00:00
version.php Upgrade/Install: Deactivate Gutenberg plugin on update to 5.0. 2018-12-13 21:11:22 +00:00
widgets.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wlwmanifest.xml
wp-db.php Docs: Update `@since` tag for the addition of query start time to logged query data. 2018-12-20 00:58:53 +00:00
wp-diff.php Code is Poetry. 2017-11-30 23:09:33 +00:00