Make WordPress Core


Ignore:
Timestamp:
06/10/2023 05:28:02 AM (3 years ago)
Author:
audrasjb
Message:

Plugins: Display Auto-updates filters when the current view is "Must Use" or "Drop-in".

This changeset fixes a bug where the "Auto-updates Enabled/Disabled" filters were not showing when the current view is "Must Use" or "Drop-in".

Props NekoJonez, pbiron, costdev, audrasjb.
Fixes #54309.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r55732 r55903  
    6262                $this->show_autoupdates = wp_is_auto_update_enabled_for_type( 'plugin' )
    6363                        && current_user_can( 'update_plugins' )
    64                         && ( ! is_multisite() || $this->screen->in_admin( 'network' ) )
    65                         && ! in_array( $status, array( 'mustuse', 'dropins' ), true );
     64                        && ( ! is_multisite() || $this->screen->in_admin( 'network' ) );
    6665        }
    6766
    … …  
    464463                );
    465464
    466                 if ( $this->show_autoupdates ) {
     465                if ( $this->show_autoupdates && ! in_array( $status, array( 'mustuse', 'dropins' ), true ) ) {
    467466                        $columns['auto-updates'] = __( 'Automatic Updates' );
    468467                }
    … …  
    11551154                                        break;
    11561155                                case 'auto-updates':
    1157                                         if ( ! $this->show_autoupdates ) {
     1156                                        if ( ! $this->show_autoupdates || in_array( $status, array( 'mustuse', 'dropins' ), true ) ) {
    11581157                                                break;
    11591158                                        }
Note: See TracChangeset for help on using the changeset viewer.