Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#55131 closed enhancement (duplicate)

Non static method 'get_default_primary_column_name' should not be called statically

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

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 3 years ago.

Download all attachments as: .zip

Change History (2)

@azouamauriac
3 years ago

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Administration
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to 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.