[wp-trac] [WordPress Trac] #9757: Allow Plugin/Theme updates from a uploaded .zip file.

WordPress Trac noreply at wordpress.org
Sun Jul 12 21:17:57 UTC 2020


#9757: Allow Plugin/Theme updates from a uploaded .zip file.
-------------------------------------------------+-------------------------
 Reporter:  hakre                                |       Owner:  azaozz
     Type:  feature request                      |      Status:  closed
 Priority:  high                                 |   Milestone:  5.5
Component:  Upgrade/Install                      |     Version:  2.8
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  dev-feedback has-patch early needs-  |     Focuses:  ui, ui-
  dev-note commit                                |  copy
-------------------------------------------------+-------------------------

Comment (by afragen):

 Replying to [comment:172 SergeyBiryukov]:
 > In [changeset:"48448" 48448]:
 > {{{
 > #!CommitTicketReference repository="" revision="48448"
 > Upgrade/Install: Use `is_php_version_compatible()` and
 `is_wp_version_compatible()` in plugin and theme requirement checks.
 >
 > Follow-up to [48390].
 >
 > Props afragen.
 > See #9757.
 > }}}

 Both of the compatibility functions include a test for the parameter as
 empty. It should be sufficient to simply use the compatibility function in
 the conditional.

 If the parameter is empty the condition evaluates to true.

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


More information about the wp-trac mailing list