[wp-trac] [WordPress Trac] #29933: Undefined index: hook_suffix on WP_List_Table

WordPress Trac noreply at wordpress.org
Tue Oct 8 04:56:24 UTC 2019


#29933: Undefined index: hook_suffix on WP_List_Table
----------------------------+-----------------------------
 Reporter:  z43 Studio      |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  4.0
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:  administration
----------------------------+-----------------------------

Comment (by samjco):

 @SergeyBiryukov @chriscct7 @z43-studio
 I was getting the same error when I move my Wp List table to the frontend
 **Notice: Undefined index: hook_suffix in ..../wp-admin/includes/class-wp-
 screen.php on line 213**

 I fixed it by replacing

 `$id = $GLOBALS['hook_suffix'];`

 with

 `$id = isset($GLOBALS['hook_suffix']) ? $GLOBALS['hook_suffix'] : "";`

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


More information about the wp-trac mailing list