Changeset 9303
- Timestamp:
- 11/28/2019 02:19:33 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php
r8913 r9303 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 … … 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;
Note: See TracChangeset
for help on using the changeset viewer.