WordPress.org

Make WordPress Core

Ticket #47465: 100644.patch

File 100644.patch, 790 bytes (added by madeinua, 2 years ago)

Solution patch

  • wp-admin/includes/class-wp-list-table.php

    diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php
    index 53ef0bc8b8..ecbe70a142 100644
    a b class WP_List_Table { 
    490490                }
    491491
    492492                if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
    493                         return $_REQUEST['action'];
     493                        $action = $_REQUEST['action'];
     494                } elseif ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
     495                        $action = $_REQUEST['action2'];
     496                } else {
     497                        return false;
    494498                }
    495 
    496                 if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
    497                         return $_REQUEST['action2'];
     499               
     500                if (is_array($action)) {
     501                        $action = end($action);
    498502                }
    499503
    500                 return false;
     504                return $action;
    501505        }
    502506
    503507        /**