eightshift-libs icon indicating copy to clipboard operation
eightshift-libs copied to clipboard

Text domain slug escaped when using admin menu creation command

Open dingo-d opened this issue 2 years ago • 0 comments

Describe your bug

Never had this happen before, so I'm not sure what changed

image

The dash seems to be escaped 👀

Steps to Reproduce

  1. Have a plugin with name that has a dash in it (eightshift-sso for instance 😅)
  2. Create admin menu
  3. Inspect the text domain

Expected behavior

There shouldn't be a \ in front of the dash.

Screenshots, screen recording, code snippet

No response

Environment info

  • PHP Version: 7.4
  • WSL 2
  • Nginx server
  • Windows 11
  • Latest libs

Please confirm that you have searched existing issues in this repo.

Yes

Please confirm that you have searched in our documentation and couldn't find the answer.

Yes

Please confirm that your bug occurs with all plugins uninstalled and with the default WordPress theme active.

Yes

dingo-d avatar Jan 06 '23 12:01 dingo-d