Changeset 56611
- Timestamp:
- 09/18/2023 01:17:39 PM (13 months ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r56586 r56611 1169 1169 } 1170 1170 1171 get_inline_data( $post ); 1171 /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ 1172 $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type ); 1173 1174 if ( $quick_edit_enabled ) { 1175 get_inline_data( $post ); 1176 } 1172 1177 } 1173 1178 … … 1476 1481 ); 1477 1482 1478 if ( 'wp_block' !== $post->post_type ) { 1483 /** 1484 * Filters whether Quick Edit should be enabled for the given post type. 1485 * 1486 * @since 6.4.0 1487 * 1488 * @param bool $enable Whether to enable the Quick Edit functionality. Default true. 1489 * @param string $post_type Post type name. 1490 */ 1491 $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type ); 1492 1493 if ( $quick_edit_enabled && 'wp_block' !== $post->post_type ) { 1479 1494 $actions['inline hide-if-no-js'] = sprintf( 1480 1495 '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>', -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r56586 r56611 426 426 ); 427 427 428 $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; 429 $output .= '<div class="name">' . $qe_data->name . '</div>'; 430 431 /** This filter is documented in wp-admin/edit-tag-form.php */ 432 $output .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>'; 433 $output .= '<div class="parent">' . $qe_data->parent . '</div></div>'; 428 /** This filter is documented in wp-admin/includes/class-wp-terms-list-table.php */ 429 $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_taxonomy', true, $taxonomy ); 430 431 if ( $quick_edit_enabled ) { 432 $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; 433 $output .= '<div class="name">' . $qe_data->name . '</div>'; 434 435 /** This filter is documented in wp-admin/edit-tag-form.php */ 436 $output .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>'; 437 $output .= '<div class="parent">' . $qe_data->parent . '</div></div>'; 438 } 434 439 435 440 return $output; … … 486 491 __( 'Edit' ) 487 492 ); 488 $actions['inline hide-if-no-js'] = sprintf( 489 '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>', 490 /* translators: %s: Taxonomy term name. */ 491 esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ), 492 __( 'Quick Edit' ) 493 ); 493 494 /** 495 * Filters whether Quick Edit should be enabled for the given taxonomy. 496 * 497 * @since 6.4.0 498 * 499 * @param bool $enable Whether to enable the Quick Edit functionality. Default true. 500 * @param string $taxonomy Taxonomy name. 501 */ 502 $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_taxonomy', true, $taxonomy ); 503 504 if ( $quick_edit_enabled ) { 505 $actions['inline hide-if-no-js'] = sprintf( 506 '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>', 507 /* translators: %s: Taxonomy term name. */ 508 esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ), 509 __( 'Quick Edit' ) 510 ); 511 } 494 512 } 495 513
Note: See TracChangeset
for help on using the changeset viewer.