Changeset 6421 for sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-time-shortcode.php
- Timestamp:
- 01/23/2018 11:36:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-time-shortcode.php
r5347 r6421 7 7 * Author URI: https://wordpress.org/ 8 8 * License: GPLv2 or later 9 * 10 * @package WordPressdotorg\TimeShortcode 9 11 */ 10 12 … … 50 52 // Try to parse the time, relative to the post time. Or current time, if an attr is set. 51 53 $timestamp = ! isset( $attr[0] ) ? get_the_date( 'U' ) : time(); 52 $time = strtotime( $gmtcontent, $timestamp );54 $time = strtotime( $gmtcontent, $timestamp ); 53 55 54 56 // If that didn't work, give up.
Note: See TracChangeset
for help on using the changeset viewer.