Wordpress/src/wp-admin
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
..
css Plugins: Colorize plugin card compatibility icons on Add Plugins screen. 2018-12-20 18:14:42 +00:00
images Build: Update images following [43684]. 2018-12-19 00:33:59 +00:00
includes Administration: Update default fallback color for SVG icons. 2018-12-20 19:00:39 +00:00
maint Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
network Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
user Code is Poetry. 2017-11-30 23:09:33 +00:00
_index.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
about.php Help/About: WordPress 5.0 About Page. 2018-12-17 16:35:32 +00:00
admin-ajax.php Privacy: add means to erase personal data by username or email address. First run. 2018-04-18 22:29:59 +00:00
admin-footer.php Code is Poetry. 2017-11-30 23:09:33 +00:00
admin-functions.php Code is Poetry. 2017-11-30 23:09:33 +00:00
admin-header.php Block Editor: Add extra body classes when the block editor is loaded. 2018-12-14 01:20:12 +00:00
admin-post.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:41:41 +00:00
admin.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
async-upload.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:41:41 +00:00
comment.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
credits.php Help/About: WordPress 5.0 About Page. 2018-12-17 16:35:32 +00:00
custom-background.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:41:41 +00:00
custom-header.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
customize.php General: Further improve error messages following [42648]. 2018-02-19 02:12:41 +00:00
edit-comments.php I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders. 2018-03-11 16:43:59 +00:00
edit-form-advanced.php Block Editor: Fix meta boxes not showing. 2018-12-16 01:18:22 +00:00
edit-form-blocks.php Block Editor: Update `@wordpress` package dependencies. 2018-12-17 19:05:30 +00:00
edit-form-comment.php Block Editor: Fix meta boxes not showing. 2018-12-16 01:18:22 +00:00
edit-link-form.php Block Editor: Fix meta boxes not showing. 2018-12-16 01:18:22 +00:00
edit-tag-form.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
edit-tags.php Taxonomies: Improve description of default category behaviour. 2018-10-02 19:18:58 +00:00
edit.php Block Editor: Fix the WordPress packages and vendor script registration. 2018-12-17 19:33:09 +00:00
export.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
freedoms.php Help/About: WordPress 5.0 About Page. 2018-12-17 16:35:32 +00:00
import.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
index.php Build tools: Allow building WordPress to `src`. 2018-12-24 13:28:22 +00:00
install-helper.php Code is Poetry. 2017-11-30 23:09:33 +00:00
install.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
link-add.php Code is Poetry. 2017-11-30 23:09:33 +00:00
link-manager.php Code is Poetry. 2017-11-30 23:09:33 +00:00
link-parse-opml.php Code is Poetry. 2017-11-30 23:09:33 +00:00
link.php Code is Poetry. 2017-11-30 23:09:33 +00:00
load-scripts.php Script Loader: Ensure default packages are registered when loaded via load-scripts.php. 2018-12-16 20:37:30 +00:00
load-styles.php Script loader: remove (PHP based) compression from `load-styles.php` and `load-scripts.php`. WIth the amount of scripts and stylesheets grown a lot over the years, it has become pretty slow and consumes a lot of server resources. Also, most servers are set to compress PHP output anyway. 2018-08-20 13:50:49 +00:00
media-new.php Code is Poetry. 2017-11-30 23:09:33 +00:00
media-upload.php General: Further improve error messages following [42648]. 2018-02-19 02:12:41 +00:00
media.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
menu-header.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:41:41 +00:00
menu.php Privacy: Replace intrusive policy update notice with menu bubbles. 2018-05-10 19:51:58 +00:00
moderation.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ms-admin.php Don't rely on include_path to include files. 2013-09-25 00:17:40 +00:00
ms-delete-site.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
ms-edit.php Don't rely on include_path to include files. 2013-09-25 00:17:40 +00:00
ms-options.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ms-sites.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ms-themes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ms-upgrade-network.php Code is Poetry. 2017-11-30 23:09:33 +00:00
ms-users.php Code is Poetry. 2017-11-30 23:09:33 +00:00
my-sites.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
nav-menus.php Bundled Themes: Make twentynineteen the default theme. 2018-12-14 02:48:14 +00:00
network.php Code is Poetry. 2017-11-30 23:09:33 +00:00
options-discussion.php Privacy: Revert [43525]. 2018-07-24 17:05:56 +00:00
options-general.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
options-head.php Code is Poetry. 2017-11-30 23:09:33 +00:00
options-media.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
options-permalink.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
options-reading.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
options-writing.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
options.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
plugin-editor.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:41:41 +00:00
plugin-install.php Code is Poetry. 2017-11-30 23:09:33 +00:00
plugins.php Plugins: Pluralise the "unexpected output during activation" message. 2018-10-02 19:29:18 +00:00
post-new.php Editor: Merge some minor bug fixes. 2018-12-14 05:11:14 +00:00
post.php Editor: Remove unwanted fields before saving posts. 2018-12-18 21:31:14 +00:00
press-this.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
privacy.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
profile.php Code is Poetry. 2017-11-30 23:09:33 +00:00
revision.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
setup-config.php Upgrade/Install: Adjust table prefix string check in `setup-config.php` for the coding standards change in [42343]. 2018-09-20 05:14:21 +00:00
term.php General: Further improve error messages following [42648]. 2018-02-19 02:12:41 +00:00
theme-editor.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
theme-install.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
themes.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
tools.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
update-core.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
update.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
upgrade-functions.php Code is Poetry. 2017-11-30 23:09:33 +00:00
upgrade.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
upload.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
user-edit.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
user-new.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
users.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
widgets.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00