Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#28870 closed defect (bug) (wontfix)

Remove unused function register_column_headers

Reported by: michalzuber's profile michalzuber Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: General Keywords: close
Focuses: administration Cc:


Function that is not used with no return statement.

function register_column_headers($screen, $columns) {
       $wp_list_table = new _WP_List_Table_Compat($screen, $columns);

Attachments (1)

28870.patch (858 bytes) - added by michalzuber 8 years ago.

Download all attachments as: .zip

Change History (4)

8 years ago

#1 @ocean90
8 years ago

  • Keywords close added

Maybe not used by core, but what about plugins? Take a look at what _WP_List_Table_Compat does, there is no need to return something.

#2 @michalzuber
8 years ago

Thank you ocean90, great point, I learned something. PHPDoc over that class says it's for backward compatibilty.

#3 @helen
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.