[wp-trac] [WordPress Trac] #23783: Update strings to reflect the changes in wp_post_revision_title()

WordPress Trac noreply at wordpress.org
Fri Mar 15 10:40:17 UTC 2013


#23783: Update strings to reflect the changes in wp_post_revision_title()
----------------------------+--------------------------
 Reporter:  SergeyBiryukov  |       Type:  defect (bug)
   Status:  new             |   Priority:  normal
Milestone:  3.6             |  Component:  Revisions
  Version:  trunk           |   Severity:  normal
 Keywords:                  |
----------------------------+--------------------------
 Background: #23497

 `wp_post_revision_title()` got a backward-incompatible change in [23506].

 Previously, it used to return the revision date and time: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/post-
 template.php#L1294

 Now it returns the revision author name first: [[BR]]
 http://core.trac.wordpress.org/browser/trunk/wp-includes/post-
 template.php?rev=23653#L1319

 This creates three issues:
 1. The strings in `edit-form-advanced.php` still expect date and time
 first: [[BR]]
  http://core.trac.wordpress.org/browser/trunk/wp-admin/edit-form-
 advanced.php?rev=23683#L39
  Changing "from" to "by" and updating the translator comment would
 probably be enough. However, that still might be incompatible with custom
 strings (see "Customizing the messages" example): [[BR]]
  http://codex.wordpress.org/Function_Reference/register_post_type#Example.
 2. The "by (author name)" part in the list of revisions is redundant (see
 the screenshot).
 3. `wp_post_revision_title()` inline description should be updated.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23783>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list