Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#55131 closed enhancement (duplicate)

Non static method 'get_default_primary_column_name' should not be called statically

Reported by: azouamauriac Owned by:
Priority: normal Milestone:
Component: Administration Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Some histories : [33266] [49192]


WP_List_Table::get_default_primary_column_name() is not a static method so it shouldn't be use as it.

I suggest that we instantiate the class before using the method

My proposal:

<?php

 $list_table = new self();
 $default = $list_table->get_default_primary_column_name();

Attachments (1)

55131.diff​ (575 bytes ) - added by azouamauriac 5 years ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
5 years ago

  • Component General → Administration
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Hi there, welcome back to WordPress Trac!

Thanks for the report, we're already tracking this issue in #53978.

Note: See TracTickets for help on using tickets.