mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Docs: Fix a typo in wp-includes/rss.php
inline comments.
This changeset replaces "wc3dtf" with "W3C date/time formats" to fix a typo and to provide a better description of the related code. Props lanacodes, sabernhardt, nithins53. Fixes #57467. Built from https://develop.svn.wordpress.org/trunk@55644 git-svn-id: http://core.svn.wordpress.org/trunk@55156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
537cf32fb4
commit
8bbfa10e2f
@ -836,7 +836,7 @@ class RSSCache {
|
|||||||
if ( !function_exists('parse_w3cdtf') ) :
|
if ( !function_exists('parse_w3cdtf') ) :
|
||||||
function parse_w3cdtf ( $date_str ) {
|
function parse_w3cdtf ( $date_str ) {
|
||||||
|
|
||||||
# regex to match wc3dtf
|
# regex to match W3C date/time formats
|
||||||
$pat = "/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(:(\d{2}))?(?:([-+])(\d{2}):?(\d{2})|(Z))?/";
|
$pat = "/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(:(\d{2}))?(?:([-+])(\d{2}):?(\d{2})|(Z))?/";
|
||||||
|
|
||||||
if ( preg_match( $pat, $date_str, $match ) ) {
|
if ( preg_match( $pat, $date_str, $match ) ) {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55643';
|
$wp_version = '6.3-alpha-55644';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user