Make WordPress Core

Changes between Version 5 and Version 6 of Ticket #16502, comment 16


Ignore:
Timestamp:
01/30/2023 03:54:52 PM (3 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16502, comment 16

    v5 v6  
    3535
    3636function test_16502_hide_quick_edit( $actions ) {
    37         unset( $actions['inline hide-if-no-js'] );
     37        if ( isset( $_GET['hide_quick_edit'] ) && '1' === $_GET['hide_quick_edit'] ) unset( $actions['inline hide-if-no-js'] );
    3838        return $actions;
    3939}
    4040
    4141function test_16502_hide_quick_edit_comments( $actions ) {
    42         unset( $actions['quickedit'] );
     42        if ( isset( $_GET['hide_quick_edit'] ) && '1' === $_GET['hide_quick_edit'] ) unset( $actions['quickedit'] );
    4343        return $actions;
    4444}
    45 
    4645}}}
    47462. Navigate to `Plugins > Installed Plugins` and activate **Test #16502**.