Changeset 5236
- Timestamp:
- 04/04/2017 08:44:06 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-api-update-updater.php
r5194 r5236 24 24 p.post_type = 'plugin' 25 25 AND ( 26 p.post_status IN( 'publish', ' approved', 'disabled', 'closed' ) OR26 p.post_status IN( 'publish', 'disabled', 'closed' ) OR 27 27 u.plugin_id IS NOT NULL 28 28 ) … … 56 56 $post = Plugin_Directory::get_plugin_post( $plugin_slug ); 57 57 58 if ( ! $post ) {58 if ( ! $post || ! in_array( $post->post_status, array( 'publish', 'disabled', 'closed' ) ) ) { 59 59 $wpdb->delete( $wpdb->prefix . 'update_source', compact( 'plugin_slug' ) ); 60 60 return true; … … 80 80 81 81 if ( 82 $wpdb->update( $wpdb->prefix . 'update_source', $data, array( 'plugin_slug' => $post->post_name ) ) &&82 ! $wpdb->update( $wpdb->prefix . 'update_source', $data, array( 'plugin_slug' => $post->post_name ) ) && 83 83 ! $wpdb->get_var( $wpdb->prepare( "SELECT `plugin_slug` FROM `{$wpdb->prefix}update_source` WHERE `plugin_slug` = %s", $post->post_name ) ) 84 84 ) {
Note: See TracChangeset
for help on using the changeset viewer.