WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#40753 closed enhancement (invalid)

Allow PHP Code in CMS Blocks

Reported by: iqbal1486 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.4
Component: Plugins Keywords:
Focuses: Cc:

Description

I have enhanced CMS blocks WordPress Plugin to use PHP Script in Page or Post Editor.

Plugin uri: https://wordpress.org/plugins/cms-blocks/

Below is the code example to use with the Page Editor.

[php_start]
function test(){ return "Success";}
echo test();
[php_end]

The output of the above code will be "Success".

hope you will upgrade those changes to the plugin

Thanks

Attachments (1)

cms-blocks.zip (3.2 KB) - added by iqbal1486 4 years ago.
I have uploaded whole plugin here. You can check the code to use PHP in page/post editor.

Download all attachments as: .zip

Change History (2)

@iqbal1486
4 years ago

I have uploaded whole plugin here. You can check the code to use PHP in page/post editor.

#1 @swissspidy
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hey iqbal1486,

Welcome to Trac! Please note that this bug tracker is for working on WordPress core itself, not individual plugins.

If you want to propose this enhancement to the plugin developer, I suggest you to create a new topic at https://wordpress.org/support/plugin/cms-blocks.

Please note that allowing arbitrary PHP code in the editor can be dangerous from a security point of view.

Note: See TracTickets for help on using tickets.