[wp-trac] [WordPress Trac] #53729: $title never used, Replaced with text

WordPress Trac noreply at wordpress.org
Wed Jul 21 23:01:17 UTC 2021


#53729: $title never used, Replaced with text
-------------------------------------------------+-------------------------
 Reporter:  ravipatel                            |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Help/About                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-refresh close 2nd-   |     Focuses:  coding-
  opinion                                        |  standards
-------------------------------------------------+-------------------------
Changes (by sabernhardt):

 * type:  defect (bug) => enhancement


Comment:

 The About page includes a translator comment that helps give context when
 reading the file, too.
 {{{
 /* translators: Page title of the About WordPress page in the admin. */
 $title = _x( 'About', 'page title' );
 }}}

 To explain the variable in each of the three related files, perhaps we
 could add a regular comment as simple as:
 {{{
 // Used in HTML title tag.
 $title = __( 'Privacy' );
 }}}

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


More information about the wp-trac mailing list