Add auto update logging - #565
Conversation
| $this->auto_update_log->add( '--------------------------------------------------' ); | ||
| $this->auto_update_log->add( 'WP Core auto update settings' ); | ||
|
|
||
| if ( isset( $wpcs['all'] ) && $wpcs['all'] ) { |
There was a problem hiding this comment.
isset( $wpcs['all'] && $wpcs['all'] could be simplified as ! empty( $wpcs['all']
This goes for the other statements as well. such as $dev = ! empty( $wpcs['dev'] ) ? 'true' : 'false'
| $item_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $offer ); | ||
| $item_name = $item_data['Name']; | ||
| } else { | ||
| $item_data = get_plugin_data( get_template_directory() . '/../' . $offer . '/style.css' ); |
There was a problem hiding this comment.
$item_data doesn't seem to be used here.... Instead you're setting $item_name = $offer
This line could probably go away.... Especially since I don't think it's actually doing anything, since you would use wp_get_theme() for this
| $type = isset( $options['type'] ) ? $options['type'] : 'WP Core'; | ||
|
|
||
| $update_item = ''; | ||
| if ( isset( $options['temp_backup'] ) && ! empty( $options['temp_backup'] ) ) { |
There was a problem hiding this comment.
isset( $options['temp_backup'] ) && ! empty( $options['temp_backup']
can be simplified to ! empty( $options['temp_backup']
|
Status update (Aug 2026 triage): Still open — auto-update logging ( |
No description provided.