Changeset 1219 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php
- Timestamp:
- 02/04/2015 06:37:01 PM (10 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
r1111 r1219 31 31 */ 32 32 public function latest_version() { 33 // If we're looking at themes awaiting approval, use the corresponding version.34 if ( current_user_can( 'approve_themes' ) && isset( $_REQUEST['meta_key'] ) && '_has_pending_version' == $_REQUEST['meta_key'] ) {35 return get_post_meta( $this->wp_post->ID, '_has_pending_version', true );36 }37 38 33 $status = get_post_meta( $this->wp_post->ID, '_status', true ); 39 34 uksort( $status, 'version_compare' );
Note: See TracChangeset
for help on using the changeset viewer.