[wp-trac] [WordPress Trac] #50767: Coding Standards fixes for WP 5.6

WordPress Trac noreply at wordpress.org
Sun Oct 18 17:16:47 UTC 2020


#50767: Coding Standards fixes for WP 5.6
--------------------------------------+-------------------------------
 Reporter:  SergeyBiryukov            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  5.6
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  coding-standards
--------------------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"49192" 49192]:
 {{{
 #!CommitTicketReference repository="" revision="49192"
 Coding Standards: Use `self` when appropriate.

 * `WP_List_Table::get_default_primary_column_name()` is a protected
 method, so calling it statically with the class name is bad practice.
 * Similarly, this applies when calling a private constructor in
 `WP_Screen::get()`.

 Props jrf.
 See #50767.
 }}}

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


More information about the wp-trac mailing list