diff --git wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php
index e59bd9dfe..b2d5f377b 100644
|
|
|
class WPORG_Themes_Repo_Package extends Repo_Package {
|
| 37 | 37 | */ |
| 38 | 38 | public function latest_version() { |
| 39 | 39 | $status = get_post_meta( $this->wp_post->ID, '_status', true ); |
| | 40 | |
| | 41 | if ( empty( $status ) ) { |
| | 42 | return ''; |
| | 43 | } |
| | 44 | |
| 40 | 45 | uksort( $status, 'version_compare' ); |
| 41 | 46 | |
| 42 | 47 | // Find if there is a live version, and use that one. |
| … |
… |
class WPORG_Themes_Repo_Package extends Repo_Package {
|
| 63 | 68 | case 'version' : |
| 64 | 69 | return $version; |
| 65 | 70 | case 'theme-url' : |
| 66 | | return $this->wp_post->_theme_url[ $version ]; |
| | 71 | return $this->wp_post->_theme_url[ $version ] ?? ''; |
| 67 | 72 | case 'author-url' : |
| 68 | | return $this->wp_post->_author_url[ $version ]; |
| | 73 | return $this->wp_post->_author_url[ $version ] ?? ''; |
| 69 | 74 | case 'ticket' : |
| 70 | | return $this->wp_post->_ticket_id[ $version ]; |
| | 75 | return $this->wp_post->_ticket_id[ $version ] ?? ''; |
| 71 | 76 | case 'requires': |
| 72 | 77 | $values = $this->wp_post->_requires; |
| 73 | 78 | if ( isset( $values[ $version ] ) ) { |