EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
115 stars 17 forks source link

Shortcode for showcasing DELETE method renders in the frontend as PUT #344

Closed amouratoglou closed 2 years ago

amouratoglou commented 2 years ago

Hiya,

first of all thanks for the plugin.

Description and Screenshot

as the title says, the issue I have found is that for the Description Shortcode: the DELETE method is wrongly rendering as a PUT on the Frontend.

Screen Shot 2022-01-07 at 16 31 16

HTML in the dashboard:

[description method="DELETE"]
<div class="description">
<pre class="EnlighterJSRAW" data-enlighter-language="null">https://sandbox-api.com/v1/Customer/:id</pre>

Customer card delete
</div>
[header]headers[/header]

[header_row txt-bold="Authorization"]Bearer Token[/header_row]

[type]

[header]PATH VARIABLES[/header]

[header_row txt-bold="id"]ID[/header_row]

[/description]
AndiDittrich commented 2 years ago

hi @amouratoglou it doesn't look like an Enlighter issue...it's more like a problem with the nested shortcode/the related plugin.

did you checked the generated markup and the shortcode plugin code ?

amouratoglou commented 2 years ago

I was granted full access to the CMS today. I'll have a look and confirm thanks for your time.