Changes between Initial Version and Version 6 of Ticket #53729
- Timestamp:
- 07/21/2021 11:25:06 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #53729
- Property Component Administration → Help/About
- Property Keywords needs-patch added; has-patch removed
- Property Type defect (bug) → enhancement
- Property Milestone Awaiting Review → 5.9
- Property Owner set to
- Property Status new → accepted
- Property Summary $title never used, Replaced with text → Add readability comment to $title variable used in admin-header
-
Ticket #53729 – Description
initial v6 1 [[Image(https://prnt.sc/1e3ulze)]] 1 Add a readability comment above each instance of `$title = __( '' )` in each admin panel's file. This `$title` is used to populate the `<title>` element which is built in the reusable `wp-admin/admin-header.php` file. 2 2 3 We have fixed in patch please review. Code re-usability. 3 The comment will avoid confusion on panel file's where the translated content reads the same for the `<title>` and `<h1>`. For example, the confusion can occur in the `wp-admin/privacy.php`: 4 5 {{{#!php 6 $title = __( 'Privacy' ); 7 ... 8 require_once ABSPATH . 'wp-admin/admin-header.php'; 9 ... 10 <div class="about__header-title"> 11 <h1> 12 <?php _e( 'Privacy' ); ?> 13 </h1> 14 </div> 15 }}}
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)