[wp-trac] [WordPress Trac] #20228: Image options can't be changed

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 19 17:36:23 UTC 2012


#20228: Image options can't be changed
--------------------------+------------------------------
 Reporter:  koke          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  mobile        |
--------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:4 koke]:

 It is per user. The way that API works is by setting a cookie from JS when
 the user changes something. On the next page load that cookie is stored in
 the DB as "user option". Then the same data is accessible both from PHP
 and JS even if the user switches to another browser. In that case the
 cookie is also synced from the DB to the new browser.

 That makes it possible to always use the right "UI states" when generating
 the page from PHP regardless of whether the user is in the same browser,
 has disabled JS, etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20228#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list