[wp-trac] [WordPress Trac] #30583: Switching Media Library Views Clears Search Query

WordPress Trac noreply at wordpress.org
Thu Feb 26 23:00:22 UTC 2015


#30583: Switching Media Library Views Clears Search Query
--------------------------+-----------------------------
 Reporter:  mrwweb        |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2
Component:  Media         |     Version:  4.0.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31562"]:
 {{{
 #!CommitTicketReference repository="" revision="31562"
 Persist search terms across grid/list modes:

 * In `grid` mode, when the page loads and `s` is in the URL, all
 attachments are loaded and then the search value is set, which will filter
 the attachments. If the page loads with the attachments already filtered,
 the library will have to be requery'd to get the full set, which will
 require weirder code.
 * When a user searches, the mode-switcher link for `list` view is updated
 dynamically to represent the current `location.href` in the proper `mode=`
 and `s=` context.

 Fixes #30583.
 }}}

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


More information about the wp-trac mailing list