[wp-trac] [WordPress Trac] #30220: Make single responsibility function for outputting Revisions JS templates

WordPress Trac noreply at wordpress.org
Thu Dec 11 10:12:31 UTC 2014


#30220: Make single responsibility function for outputting Revisions JS templates
------------------------------+-----------------------------
 Reporter:  ericlewis         |       Owner:  wonderboymusic
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.1
Component:  Revisions         |     Version:  3.6
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+-----------------------------

Comment (by ocean90):

 Replying to [comment:5 nacin]:
 > If we are going to do something like this, we should probably pass the
 post object in, rather than relying on global state.

 That. Or use `get_post()`. Or both. Or pass the post lock state in `data`
 so we don't even need the post object?

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


More information about the wp-trac mailing list