[wp-trac] [WordPress Trac] #40502: Add the check version and template attributes method for /themes/update-check/1.1/ API

WordPress Trac noreply at wordpress.org
Thu Apr 20 19:55:12 UTC 2017


#40502: Add the check version and template attributes method for /themes/update-
check/1.1/ API
--------------------------+-----------------------------
 Reporter:  mxp           |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:  4.7.4
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 I created a child theme for work, but WordPress noticed me that new theme
 has an update. That is so weird. So I traced the code and found that
 problem is API(api.wordpress.org/themes/update-check/1.1/) did not check
 the whole theme's info between local and WordPress DB.

 Here is my steps:

 1. install the base theme named `site`
 2. create a child theme named `royal`
 3. add theme info in royal/style.css and royal/functions.php

 style.css:
 /*
 Theme Name: Royal
 Author: Knockers
 Version: 1.0
 Template: site
 */

 functions.php:
 <?php
 ?>

 4. login to wp-admin/themes.php and the update notice shows up!

 I think the API must check the `Theme Name`, `Version`, `Author` and
 `Template` attributes at least and make sure the theme package is current
 belong to someone.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40502>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list