Making WordPress.org


Ignore:
Timestamp:
01/25/2022 10:08:28 PM (5 years ago)
Author:
Otto42
Message:

Themes: Uploader requires the has_reserved_slug to run before get_theme_post, as it says in one of the comments. Not sure when this got moved around, but it broke the uploader quite badly for default theme uploads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r11306 r11474  
    424424                }
    425425
    426                 // Populate the theme post.
    427                 if ( ! $this->theme_post ) {
    428                         $this->theme_post = $this->get_theme_post();
    429                 }
    430 
    431426                // Populate author.
    432427                if ( ! $this->author ) {
     
    450445                                )
    451446                        );
     447                }
     448
     449                // Populate the theme post.
     450                // Like it says above, the has_reserved_slug() function *must* run before this.
     451                if ( ! $this->theme_post ) {
     452                        $this->theme_post = $this->get_theme_post();
    452453                }
    453454
Note: See TracChangeset for help on using the changeset viewer.