[wp-trac] [WordPress Trac] #46922: Atom feeds should not have extra white space in date constructs

WordPress Trac noreply at wordpress.org
Mon Apr 15 11:47:28 UTC 2019


#46922: Atom feeds should not have extra white space in date constructs
--------------------------+-----------------------------
 Reporter:  josephwa      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Feeds         |     Version:  5.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------------

Comment (by josephwa):

 Changing the generic wpcs sounds like a major change; as a fairly blunt
 instrument, I've attached a patch that uses `phpcs:ignore` to allow those
 lines through.

 Another option is to write those elements on a single line:

 {{{
         <updated><?php echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z',
 get_last_build_date(), false ) : date( 'Y-m-d\TH:i:s\Z' ); ?></updated>
 }}}

 If those are the only files with that issue, a local fix may be
 acceptable.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46922#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list