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 include a link to a pre-existing ticket on https://core.trac.wordpress.org/ with every pull request.
PHP CSS JavaScript HTML Python Rich Text Format
Branch: master
Clone or download

Latest commit

SergeyBiryukov SergeyBiryukov
SergeyBiryukov and SergeyBiryukov Coding Standards: Switch `WordPress.PHP.YodaConditions.NotYoda` back …
…to error level.

This was marked as a warning in [45665] until all the issues associated with the sniff are addressed, so that linting on Travis could run across the entire codebase.

With all the instances now addressed, this override is no longer needed.

Follow-up to [47054], [47218], [47219].

See #49542.

git-svn-id: https://develop.svn.wordpress.org/trunk@47551 602fd350-edb4-49c9-b593-d223f7449a82
Latest commit 6b28c4d Apr 5, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github General: Introduce a pull request template. Feb 21, 2020
src Coding Standards: Use strict type check for `in_array()` and `array_s… Apr 5, 2020
tests Tests: Remove `test_post_thumbnails_types_true()`. Apr 4, 2020
tools Build Tools: Use the new `combinedOutputFile` setting for the updated… Mar 18, 2020
.editorconfig General: Instruct file editors not to trim trailing whitespace in mar… Mar 20, 2018
.env Docs: Fix typo in `.env` file description. Dec 30, 2019
.gitignore Build/Test Tools: Introduce Install-changed. It keeps a hash of `pack… Mar 24, 2020
.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 Tests: Use `PUPPETEER_SKIP_CHROMIUM_DOWNLOAD` environment variable in… Mar 16, 2020
Gruntfile.js Build/Test Tools: Introduce Install-changed. It keeps a hash of `pack… Mar 24, 2020
README.md Docs: Fix typo in `README.md`. Nov 20, 2019
SECURITY.md Trunk is now 5.5 alpha Mar 4, 2020
appveyor.yml Build/Test Tools: Remove the dependency on a globally installed Grunt. May 26, 2019
composer.json Coding Standards: Update PHPCS Composer plugin to v0.6.0. Feb 28, 2020
composer.lock Build/Test Tools: Introduce automated PHP compatibility checking. Sep 25, 2019
docker-compose.yml Build/Test Tools: Expose port 3306 of MySQL container. Feb 9, 2020
jsdoc.conf.json Build Tools: Fix JSDoc configuration include paths. Jun 14, 2018
package-lock.json Block Editor: Update WordPress Packages WordPress 5.4 RC 5 Take 2. Mar 27, 2020
package.json Block Editor: Update WordPress Packages WordPress 5.4 RC 5 Take 2. Mar 27, 2020
phpcompat.xml.dist Docs: Improve inline comments per the documentation standards. Jan 29, 2020
phpcs.xml.dist Coding Standards: Switch `WordPress.PHP.YodaConditions.NotYoda` back … Apr 5, 2020
phpunit.xml.dist Docs: Improve inline comments per the documentation standards. Jan 29, 2020
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 Code Modernization: Replace `dirname( __FILE__ )` calls with `__DIR__… Feb 6, 2020
wp-tests-config-sample.php Tests: Revert the `dirname( __FILE__ )` replacement in `wp-tests-conf… Feb 6, 2020

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, documentation, 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.