- Timestamp:
- 09/10/2020 02:20:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r48820 r48968 388 388 $b = $plugin_b[ $orderby ]; 389 389 390 if ( $a == $b ) {390 if ( $a === $b ) { 391 391 return 0; 392 392 } … … 746 746 $dropins = _get_dropins(); 747 747 $plugin_name = $plugin_file; 748 if ( $plugin_file != $plugin_data['Name'] ) { 748 749 if ( $plugin_file !== $plugin_data['Name'] ) { 749 750 $plugin_name .= '<br/>' . $plugin_data['Name']; 750 751 } 752 751 753 if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant. 752 754 $is_active = true; … … 765 767 ) . '</p>'; 766 768 } 769 767 770 if ( $plugin_data['Description'] ) { 768 771 $description .= '<p>' . $plugin_data['Description'] . '</p>'; … … 948 951 $class = $is_active ? 'active' : 'inactive'; 949 952 $checkbox_id = 'checkbox_' . md5( $plugin_data['Name'] ); 953 950 954 if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ), true ) || ! $compatible_php ) { 951 955 $checkbox = ''; … … 960 964 ); 961 965 } 966 962 967 if ( 'dropins' !== $context ) { 963 968 $description = '<p>' . ( $plugin_data['Description'] ? $plugin_data['Description'] : ' ' ) . '</p>'; … … 1125 1130 $url = add_query_arg( $query_args, 'plugins.php' ); 1126 1131 1127 if ( 'unavailable' == $action ) {1132 if ( 'unavailable' === $action ) { 1128 1133 $html[] = '<span class="label">' . $text . '</span>'; 1129 1134 } else {
Note: See TracChangeset
for help on using the changeset viewer.