[wp-trac] [WordPress Trac] #14179: Theme asking to update (theme with same name on WordPress.org)

WordPress Trac noreply at wordpress.org
Thu Nov 4 08:22:35 UTC 2021


#14179: Theme asking to update (theme with same name on WordPress.org)
-------------------------------------+---------------------
 Reporter:  design_dolphin           |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.9
Component:  Upgrade/Install          |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+---------------------

Comment (by dd32):

 Support for this has been added to api.wordpress.org, I haven't worked on
 implementing it within themes or tested it with a WordPress installation
 yet. Someone else will need to pick up the Core side of this.

 For example: (These just have the absolute minimum properties set to get a
 response)
 {{{
 # No UpdateURI header set:
 $ curl 'https://api.wordpress.org/themes/update-check/1.1/' -s --data-raw
 'themes={"active":"twentytwenty","themes":{"twentytwenty":{"Version":0.1}}}'
 | jq

 {
   "themes": {
     "twentytwenty": {
       "theme": "twentytwenty",
       "new_version": "1.8",
       "url": "https://wordpress.org/themes/twentytwenty/",
       "package":
 "https://downloads.wordpress.org/theme/twentytwenty.1.8.zip",
       "requires": "4.7",
       "requires_php": "5.2.4"
     }
   },
   "no_update": [],
   "translations": []
 }

 # With UpdateURI set:
 $ curl 'https://api.wordpress.org/themes/update-check/1.1/' -s --data-raw
 'themes={"active":"twentytwenty","themes":{"twentytwenty":{"Version":0.1,"UpdateURI":"https://example.com/2020/"}}}'
 | jq

 {
   "themes": [],
   "no_update": [],
   "translations": []
 }
 }}}

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


More information about the wp-trac mailing list