Changeset 1387 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
- Timestamp:
- 03/09/2015 06:26:28 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r1382 r1387 276 276 */ 277 277 function wporg_themes_update_version_status( $post_id, $current_version, $new_status ) { 278 $meta = get_post_meta( $post_id, '_status', true );279 $old_status = $meta[ $current_version ];278 $meta = (array) get_post_meta( $post_id, '_status', true ); 279 $old_status = isset( $meta[ $current_version ] ) ? $meta[ $current_version ] : false; 280 280 281 281 // Don't do anything when the status hasn't changed.
Note: See TracChangeset
for help on using the changeset viewer.