Ticket #42394: 42394.3.diff
File 42394.3.diff, 763 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/customize/class-wp-customize-date-time-control.php
109 109 foreach ( array( 'j', 'd' ) as $day_token ) { 110 110 $date_format = preg_replace( '/(?<!\\\\)' . $day_token . '/', '%3$s', $date_format ); 111 111 } 112 foreach ( array( '%1$s', '%2$s', '%3$s' ) as $required_placeholder ) { 113 if ( false === strpos( $date_format, $required_placeholder ) ) { 114 $date_format = '%2$s %3$s, %1$s'; 115 break; 116 } 117 } 112 118 ?> 113 119 114 120 <# _.defaults( data, <?php echo wp_json_encode( $data ); ?> ); #>