Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
4.5 php support
In the history.txt it says: “Removed raw PHP support in pages and articles”.
Can somebody expand on that? Does it mean that we will not allowed to use <txp:php>
any more or does it actually say that we will not be able to use php’s enclosing tags (<?
)?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: 4.5 php support
colak wrote:
we will not be able to use php’s enclosing tags (
<?
)?
Correct. The use of raw <?php ..?>
tags is disallowed entirely from 4.5. The <txp:php>
is, however, supported and will remain so.
Hope that puts your mind at rest.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: 4.5 php support
Would be crazy if that referred to the whole PHP support, wouldn’t it ;)
Anyways, note all developer minds out there, that plugins that relay to evalString()
or $prefs['allow_page_php_scripting']
will need to update their code. Both of those will be gone in TXP 4.5, and trying to access those leads to errors. See r3706.
Offline
Re: 4.5 php support
Gocom wrote:
trying to access those leads to errors.
Yeah, the softly softly approach would be to keep the stub there and continue to throw the error. It’s been deprecated for so long that I figured plugins would be long gone from this arena. Hope that’s true.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: 4.5 php support
Bloke wrote:
Yeah, the softly softly approach would be to keep the stub there and continue to throw the error. It’s been deprecated for so long that I figured plugins would be long gone from this arena. Hope that’s true.
Anything that serve’s its own pages (e.g. rah_external_output) would have been using those even if deprecated, since you need to use those if you wish to support same markup as a page template.
I myself dropped those from rah_external_output’s source promptly after you did that change, and I’m planning on releasing a new version of the plugin in next few hours.
Last edited by Gocom (2012-07-13 21:11:22)
Offline
Re: 4.5 php support
Bloke wrote:
The
<txp:php>
is, however, supported and will remain so.Hope that puts your mind at rest.
Thanks Stef, It does indeed!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1