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

WordPress Trac noreply at wordpress.org
Sun Oct 18 15:25:44 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:                  |     Focuses:  coding-standards
----------------------------+-------------------------------
Changes (by jrf):

 * Attachment "50767-use-self-when-appropriate.patch" added.

 CS: use `self` when appropriate  * `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.

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


More information about the wp-trac mailing list