Ticket #45247: 45247.3.diff
| File 45247.3.diff, 1.5 KB (added by , 7 years ago) |
|---|
-
src/wp-admin/includes/class-wp-posts-list-table.php
1237 1237 esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), 1238 1238 __( 'Edit' ) 1239 1239 ); 1240 $actions['inline hide-if-no-js'] = sprintf( 1241 '<a href="#" class="editinline" aria-label="%s">%s</a>', 1242 /* translators: %s: post title */ 1243 esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ), 1244 __( 'Quick Edit' ) 1245 ); 1240 1241 if ( 'wp_block' !== $post->post_type ) { 1242 $actions['inline hide-if-no-js'] = sprintf( 1243 '<a href="#" class="editinline" aria-label="%s">%s</a>', 1244 /* translators: %s: post title */ 1245 esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ), 1246 __( 'Quick Edit' ) 1247 ); 1248 } 1246 1249 } 1247 1250 1248 1251 if ( current_user_can( 'delete_post', $post->ID ) ) { … … 1297 1300 } 1298 1301 } 1299 1302 1303 if ( 'wp_block' === $post->post_type ) { 1304 $actions['export'] = sprintf( 1305 '<button type="button" class="wp-list-reusable-blocks__export button-link" data-id="%s" aria-label="%s">%s</button>', 1306 $post->ID, 1307 /* translators: %s: post title */ 1308 esc_attr( sprintf( __( 'Export “%s” as JSON' ), $title ) ), 1309 __( 'Export as JSON' ) 1310 ); 1311 } 1312 1300 1313 if ( is_post_type_hierarchical( $post->post_type ) ) { 1301 1314 1302 1315 /**