[wp-trac] [WordPress Trac] #44051: Improve `WP_Privacy_Policy_Content::get_default_content()` readability

WordPress Trac noreply at wordpress.org
Sat May 12 14:31:29 UTC 2018


#44051: Improve `WP_Privacy_Policy_Content::get_default_content()` readability
----------------------------+-------------------------------
 Reporter:  desrosj         |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  4.9.7
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch gdpr  |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by ovann86):

 I would like to suggest going one step further by changing the variable
 name from 'descr' to 'include_descriptions' to make its role easier to
 understand.

 Whilst I'm not seeing this in the WordPress PHP coding standards, using
 full words (instead of abbreviations) that properly describe the variable
 is seen more often than not in the rest of core.

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


More information about the wp-trac mailing list