Changeset 2456 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
- Timestamp:
- 02/03/2016 10:52:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r2189 r2456 268 268 */ 269 269 function wporg_themes_update_version_status( $post_id, $current_version, $new_status ) { 270 $meta = (array) get_post_meta( $post_id, '_status', true ); 271 $old_status = isset( $meta[ $current_version ] ) ? $meta[ $current_version ] : false; 270 $meta = get_post_meta( $post_id, '_status', true ); 271 272 if ( empty( $meta ) ) { 273 $meta = array(); 274 $old_status = false; 275 } else { 276 $old_status = $meta[ $current_version ]; 277 } 272 278 273 279 // Don't do anything when the status hasn't changed.
Note: See TracChangeset
for help on using the changeset viewer.