WordPress.org

Make WordPress Core

Opened 19 months ago

Closed 19 months ago

Last modified 8 months ago

#42705 closed defect (bug) (fixed)

Theme editor nonce should be based on the relative file path

Reported by: dd32 Owned by: dd32
Milestone: 5.1 Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

Currently the theme editor nonce is based on the full file path of the files, for example:

edit-theme_/www/wordpress/src/wp-content/themes/twentyseventeen/style.csstwentyseventeen

It'll make much more sense when debugging code if it's based on the relative path, which is how we validate it in the rest of the code:

edit-theme_twentyseventeen_style.css
edit-theme_twentyseventeen_inc/back-compat.php

Noticed from #42609

Change History (2)

#1 @dd32
19 months ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 42246:

Theme Editior: Base the nonce on a simpler combination of fields, for easier debugging & reading.

See #42609.
Fixes #42705.

#2 @johnbillion
8 months ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.