Skip to content
WordPress Develop, Git-ified. Synced from git://develop.git.wordpress.org/, including branches and tags! This repository is just a mirror of the WordPress subversion repository. Please do not send pull requests. Submit patches to https://core.trac.wordpress.org/ instead.
PHP CSS JavaScript HTML Python Rich Text Format
Branch: master
Clone or download
SergeyBiryukov Code Modernization: Pass an appropriate error level to `trigger_error…
…()` in `_doing_it_wrong()` and related functions:

* `_deprecated_function()`
* `_deprecated_argument()`
* `_deprecated_constructor()`
* `_deprecated_file()`

The error level passed is `E_USER_DEPRECATED` for the deprecated function group and `E_USER_NOTICE` for `_doing_it_wrong()`.

Props jrf.
Fixes #36561.

git-svn-id: https://develop.svn.wordpress.org/trunk@46625 602fd350-edb4-49c9-b593-d223f7449a82
Latest commit 8962187 Nov 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Code Modernization: Pass an appropriate error level to `trigger_error… Nov 1, 2019
tests Code Modernization: Pass an appropriate error level to `trigger_error… Nov 1, 2019
tools Block Editor: Remove experimental Social Links blocks Oct 15, 2019
.editorconfig General: Instruct file editors not to trim trailing whitespace in mar… Mar 20, 2018
.env Build Tools: Miscellaneous `local-env` improvements. Aug 12, 2019
.gitignore Build Tools: Miscellaneous `local-env` improvements. Aug 12, 2019
.jshintrc Build tools: Fix the `travis:js` build. Dec 24, 2018
.npmrc Once upon a midnight dreary, while I coded, weak and weary, May 23, 2018
.nvmrc Once upon a midnight dreary, while I coded, weak and weary, May 23, 2018
.travis.yml Build/Test Tools: Don't hardcode the directory name of the repo Oct 28, 2019
Gruntfile.js Build/Test Tools: Add banner to RTL CSS and minified JS files. Oct 26, 2019
README.md Build Tools: Add a WordPress Development Environment. Aug 5, 2019
appveyor.yml Build/Test Tools: Remove the dependency on a globally installed Grunt. May 26, 2019
composer.json Build/Test Tools: Move Composer script command line directives to the… Sep 25, 2019
composer.lock Build/Test Tools: Introduce automated PHP compatibility checking. Sep 25, 2019
docker-compose.yml Build Tools: Pass the current uid/gid to Docker containers. Sep 26, 2019
jsdoc.conf.json Build Tools: Fix JSDoc configuration include paths. Jun 14, 2018
package-lock.json Block Editor: Bug fixes targetted for WordPress 5.3 RC3. Oct 28, 2019
package.json Block Editor: Bug fixes targetted for WordPress 5.3 RC3. Oct 28, 2019
phpcompat.xml.dist Build/Test Tools: Introduce automated PHP compatibility checking. Sep 25, 2019
phpcs.xml.dist Build/Test Tools: Move Composer script command line directives to the… Sep 25, 2019
phpunit.xml.dist Ensure `svn:eol-style` is consistently set for all files (part 2). Oct 25, 2019
webpack.config.js Build tools: Allow building WordPress to `src`. Dec 24, 2018
wp-cli.yml Build/Tests: Default to running unit tests from `src`. Jan 9, 2019
wp-config-sample.php Ensure `svn:eol-style` is consistently set for all files. Oct 25, 2019
wp-tests-config-sample.php Tests: Revert [44509]. Jan 9, 2019

README.md

WordPress

Build Status

Welcome to the WordPress development repository! Please check out our contributor handbook for information about how to open bug reports, contribute patches, test, documention, or get involved in any way you can.

Getting Started

WordPress is a PHP/MySQL-based project. We have a basic development environment that you can quickly get up and running with a few commands. First off, you will need to download and install Docker, if you don't have it already. After that, there are a few commands to run:

Development Environment Commands

Running these commands will start the development environment:

npm install
npm run build:dev
npm run env:start
npm run env:install

Additionally, npm run env:stop will stop the environment.

npm run env:cli runs the WP-CLI tool. WP-CLI has a lot of useful commands you can use to work on your WordPress site. Where the documentation mentions running wp, run npm run env:cli instead. For example, npm run env:cli help.

npm run test:php and npm run test:e2e run the PHP and E2E test suites, respectively.

You can’t perform that action at this time.