[wp-trac] [WordPress Trac] #46872: Bulk Actions underneath plugins list perform Update when Deactivate chosen

WordPress Trac noreply at wordpress.org
Mon Apr 15 07:10:40 UTC 2019


#46872: Bulk Actions underneath plugins list perform Update when Deactivate chosen
--------------------------------------+---------------------------------
 Reporter:  clayray                   |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Quick/Bulk Edit           |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:  ui, administration
--------------------------------------+---------------------------------

Comment (by subrataemfluence):

 Modified code:

 {{{#!php
 <?php
 public function current_action() {
      if ( isset( $_REQUEST['filter_action'] ) && ! empty(
 $_REQUEST['filter_action'] ) ) {
           return false;
      }

      if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
           if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2']
 ) {
                if( $_REQUEST['action'] === $_REQUEST['action2'] ) {
                     return $_REQUEST['action'];
                }

                return false;
           }

           return $_REQUEST['action'];
      }

      if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
           return $_REQUEST['action2'];
      }

      return false;
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46872#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list