Changeset 48451
- Timestamp:
- 07/12/2020 01:20:58 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/updates.js
r48418 r48451 2139 2139 $bulkActionForm.on( 'click', '[data-plugin] a.delete', function( event ) { 2140 2140 var $pluginRow = $( event.target ).parents( 'tr' ), 2141 confirmMessage; 2142 2143 if ( $pluginRow.hasClass( 'is-uninstallable' ) ) { 2141 2144 confirmMessage = sprintf( 2142 2145 /* translators: %s: Plugin name. */ … … 2144 2147 $pluginRow.find( '.plugin-title strong' ).text() 2145 2148 ); 2149 } else { 2150 confirmMessage = sprintf( 2151 /* translators: %s: Plugin name. */ 2152 __( 'Are you sure you want to delete %s?' ), 2153 $pluginRow.find( '.plugin-title strong' ).text() 2154 ); 2155 } 2146 2156 2147 2157 event.preventDefault(); -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r48418 r48451 943 943 } 944 944 945 if ( is_uninstallable_plugin( $plugin_file ) ) { 946 $class .= ' is-uninstallable'; 947 } 948 945 949 printf( 946 950 '<tr class="%s" data-slug="%s" data-plugin="%s">',
Note: See TracChangeset
for help on using the changeset viewer.