[wp-trac] [WordPress Trac] #59427: Need to updated image-edit.php file code for Crop.

WordPress Trac noreply at wordpress.org
Fri Sep 22 14:22:34 UTC 2023


#59427: Need to updated image-edit.php file code for Crop.
-------------------------------+------------------------------
 Reporter:  upadalavipul       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by TobiasBg):

 * keywords:   => reporter-feedback


Comment:

 Hi @upadalavipul, thanks for opening this ticket!

 Can you please clarify what exactly is breaking in this file for you? Are
 you getting error messages? Is this with a stock installation of WordPress
 6.3.1, with all plugins deactivated?

 Removing the quotation marks as in your patch (especially the the `'`)
 will not work. The value of the `$nonce` variable needs to be passed as a
 string in that JavaScript call, whereas it will be treated as a variable
 name itself with your proposed change.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59427#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list