Skip to content
Welcome to wp_date! This is the initiative to fix up and improve Date/Time component of WordPress core.
PHP JavaScript CSS HTML Python Rich Text Format
Branch: master
Clone or download
Pull request Compare This branch is 476 commits behind WordPress:master.
SergeyBiryukov Date/Time: Simplify the date comparing logic in `WP_Community_Events:…
…:trim_events()`.

The Events API returns event date without timezone information, so trying to parse it into a timestamp and compare to a WP timestamp is pointless.

Props Rarst.
Fixes #47463.

git-svn-id: https://develop.svn.wordpress.org/trunk@45886 602fd350-edb4-49c9-b593-d223f7449a82
Latest commit b975a25 Aug 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Date/Time: Simplify the date comparing logic in `WP_Community_Events:… Aug 23, 2019
tests Date/Time: Rewrite and simplify `date_i18n()` using `wp_timezone()` t… Aug 23, 2019
tools
.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
.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: Add an xdebug group for tests that require xdebug. Aug 19, 2019
Gruntfile.js Emoji: Upgrade Twemoji to 12.1.2. Aug 8, 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 Coding Standards: Move the remaining PHPCS errors to report as warnin… Jul 19, 2019
composer.lock Coding Standards: Upgrade WPCS to 2.1.1. Jul 5, 2019
docker-compose.yml Build Tools: Pass the LOCAL_DIR environment variable through to the p… Aug 23, 2019
jsdoc.conf.json Build Tools: Fix JSDoc configuration include paths. Jun 14, 2018
package-lock.json Build Tools: Don't use git for package installs. Aug 22, 2019
package.json
phpcs.xml.dist Coding Standards: Move the remaining PHPCS errors to report as warnin… Jul 19, 2019
phpunit.xml.dist
webpack.config.js Build tools: Allow building WordPress to `src`. Dec 24, 2018
wp-cli.yml
wp-config-sample.php
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.