[wp-trac] [WordPress Trac] #30219: Revisions modules should not rely on global settings

WordPress Trac noreply at wordpress.org
Fri Oct 31 22:14:36 UTC 2014


#30219: Revisions modules should not rely on global settings
--------------------------+-----------------------------
 Reporter:  ericlewis     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Revisions     |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 Some revisions Backbone modules currently depend on the global settings
 object (_wpRevisionsSettings).

 [https://core.trac.wordpress.org/browser/tags/4.0/src/wp-
 admin/js/revisions.js#L383 Here's an example].

 This is an anti-pattern and tends to make these modules non-reusable.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30219>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list