#15922 closed defect (bug) (fixed)
WP_MS_Themes_List_Table plural
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Security | Version: | |
| Severity: | minor | Keywords: | needs-patch |
| Cc: |
Description
Currently, the plural is set to 'plugins'. This is a hack to avoid duplicating CSS.
The problem is that the plural is used for generating the nonce too.
The attached patch limits the hack to only the CSS class, allowing the correct nonce to be generated and checked.
Attachments (2)
Change History (15)
15922.css1.patch is the first pass.
I hesitated to add the styles, since I think it would be better if we had a single, generic 'themesorplugins' class (with a better name obviously).
Decision from scribu, JohnONolan and me. Keep the .plugins class and add instead of the .themes class a more generic class name, which we will use for the plugins and themes list. Proposals for a name?
(Sitenote: We need to find a way to deprecate CSS.)
Replying to ocean90:
Decision from scribu, JohnONolan and me. Keep the .plugins class and add instead of the .themes class a more generic class name, which wil will use for the plugins and themes list. Suggestions?
Fine by me.
Per IRC discussion, we're going with the simple, conservative 15922.diff patch and whatever nonce fixes that requires.
The 'bulk-themes' nonce is already set in /network/themes.php but it doesn't seem to be checked anywhere. If it were, there would be some errors, without this patch.
comment:10
ryan — 2 years ago
- Resolution set to fixed
- Status changed from assigned to closed
comment:11
scribu — 2 years ago
- Keywords needs-patch added; has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
As stated above, the nonce check is missing.
comment:12
ryan — 2 years ago
- Resolution set to fixed
- Status changed from reopened to closed
comment:13
ryan — 2 years ago
There are other places that need nonces. We can audit them in a dedicated ticket.

Can we not just add themes to the CSS file in the relevant places too?