Opened 5 years ago
Closed 5 years ago
#5940 closed defect (bug) (fixed)
Plugin Directory: Editing plugin has errant %s
| Reported by: | Ipstenu | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin Directory | Keywords: | |
| Cc: |
Description
While editing plugins, the name of the page becomes:
Editing Plugin: %s "Plugin Name"
That appears to be from https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php#L173
I honestly only noticed it this week. I can't find a recent change that tweaked that.
Other similar code lines look like this:
'edit_item' => sprintf( __( 'Edit %s', 'wporg-forums' ), $this->singular ),
So I think the attached diff is the right fix as there's no need for a singular like that...
Attachments (3)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It looks like this is a result of a WP core change in [WP51969], which aims to include the title of the post being edited in the
<title>tag.I haven't tested 5940.diff yet. At a glance, I think it would fix the page title, but break the
<h1>heading on the screen:Editing Plugin: Gutenbergwould become justEditing Plugin:, as the replace_title_global() method would no longer have the placeholder to replace.So I think this needs some more work. Maybe adjusting
replace_title_global()to match the core change would be enough. See 5940.2.diff.