[wp-trac] [WordPress Trac] #36923: Create filter for $details_url in wp_theme_update_row()

WordPress Trac noreply at wordpress.org
Thu May 26 05:35:29 UTC 2016


#36923: Create filter for $details_url in wp_theme_update_row()
-----------------------------+------------------------------
 Reporter:  afragen          |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by dd32):

 Replying to [comment:5 afragen]:
 > > I'm not sure this filter is needed (unless I'm missing something
 obvious), as if you're filtering the update response to add non-w.org-
 hosted plugins, then you'll be able to set the url field (which this
 filter is filtering) to whatever you want.
 >
 > That's it exactly.

 I think you're missing the fact that `$current->response[ $theme_key
 ]['url']` can be set by your updater code.
 The only thing this filter achieves is filtering the width/height of the
 thickbox.

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


More information about the wp-trac mailing list