WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #14179, comment 39


Ignore:
Timestamp:
07/21/2017 08:12:05 PM (3 years ago)
Author:
dingdang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14179, comment 39

    initial v1  
    33May be I had to give some examples. The raised cases are handled by the method very well. There is no problems to change the author and author URI infinitely trough the new versions at wordpress.org.
    44
    5 Example 1:
     5'''Example 1:'''
     6
    67Let say there is a theme uploaded at wordpress.org that is named "ABC", by author "XYZ" with author URL "http://xyz.com". That theme has UID: abc|fff8d626c2e8cd611f66827a55028d7a
    78
     
    1516
    1617- the API gets a request to update a theme with UID abc|gfkshjg41765jg2j53nghg3ghf76323
    17 - it checks against the list of native themes' UIDs and it founds it (as it is an old version from the SVN) and continues (as in the workflow I described in the proposal) otherwise it would stop here
     18- it checks against the list of native themes' UIDs and it '''founds it''' (as it is an old version from the SVN) and continues (as in the workflow I described in the proposal) otherwise it would stop here
    1819- it extracts the actual theme slug which is "abc" just from the UID (getting the part before the delimiter)
    1920- continue with the algorithm and return back to the site a reply with the current version of the theme "abc"
    2021Voila!
    2122
    22 Example 2:
     23'''Example 2:'''
     24
    2325Same happens with those cases of developers that have distributed their theme some time before their upload at wordpress.org. Their initial uploaded at wordpress.org will have the same UID that would be generated for their prior-upload installations. And so automatically all of them will get "native" to wordpress.org. Later if they upload updates, the new versions will have either the same UID, or linked to the same theme (as in the example 1) so all of their installations (even those installed before their upload to wordpress.org) will get an authoritative update.
    2426