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 Code Modernization: Remove conditional use of `stream_get_contents()`…
… PHP function.

The function was introduced in PHP 5.0.0. Now that the minimum version of PHP required by WordPress is 5.6.20, these conditions are no longer needed.

Props jrf.
Fixes #48091.

git-svn-id: https://develop.svn.wordpress.org/trunk@47584 602fd350-edb4-49c9-b593-d223f7449a82
Latest commit 90b0f49 Apr 15, 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 Code Modernization: Remove conditional use of `stream_get_contents()`… Apr 15, 2020
tests REST API: Handle parameter types consistently within set_param(). Apr 9, 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: Pass API key to distributed test reporter. Apr 9, 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.