Make WordPress Core

Changes between Initial Version and Version 6 of Ticket #16502


Ignore:
Timestamp:
04/05/2022 06:59:02 PM (4 years ago)
Author:
sabernhardt
Comment:

Also, Core disables quick edit for (reusable) blocks.

Sample filter to use for testing other post types:

add_filter( 'post_row_actions', 'list_row_actions_remove_quick_edit', 10, 1 );
function list_row_actions_remove_quick_edit( $actions ) {
	unset( $actions['inline hide-if-no-js'] );

	return $actions;
}

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16502

    • Property Status changed from new to reviewing
    • Property Severity changed from minor to normal
    • Property Owner set to chriscct7
    • Property Milestone changed from Awaiting Review to Future Release
    • Property Keywords has-patch needs-testing added; quick edit filters removed
    • Property Type changed from defect (bug) to enhancement
  • Ticket #16502 – Description

    initial v6  
    1 _the_post() has a static call to get_inline_data() to generate the quick_edit content. This happens even if after running the (undocumented) 'post_row_actions' filters the Quick-Edit link ($actions['inline hide-if-no-js']) is not amongst the actions anymore.
     1`_the_post()` has a static call to `get_inline_data()` to generate the `quick_edit` content. This happens even if after running the (undocumented) `post_row_actions` filters the Quick-Edit link (`$actions['inline hide-if-no-js']`) is not amongst the actions anymore.
    22
    3 Prefixing the get_inline_data() call with
     3Prefixing the `get_inline_data()` call with
    44{{{
    55if (isset($actions['inline hide-if-no-js'])