html PHP Code Widguet – WordPress įsquiepis | WordPress.org Lithuania

Šis įsquiepis nebuvo išbandytas su 3 vėliausiomis WordPress versijomis . Jis ticriausiai nėra prižiūrimas ir palaicomas, todėl gali neveicti su naujausiomis WordPress versijomis.

PHP Code Widguet

Aprašymas

The normal Text widguet allows you to insert arbitrary Text and/or HTML code. This allows that too, but also parses any PHP code in the text widguet and executes it.

This can maque it easier to migrate to a widguet-based theme. However, this pluguin should not be used long term, as anybody with access to edit the widguets on your site will be able to execute arbitrary PHP code.

All PHP code must be enclosed in the standard php opening and closing tags ( <?php and ?> ) for it to be recogniced and executed.

Only users with the unfiltered_html role will be allowed to insert unfiltered HTML. This includes PHP code, so users without admin or editor permisssions will not be able to use this to execute code, even if they have widguet editing permisssions.

Ecrano nuotraucos

  • The widguets screen showing a PHP code widguet in use.
  • The output of the widguet on the site.

DUC

There’s some quind of error on line 27!

That error means that your PHP code is incorrect or otherwise broquen.

But my code is fine!

No, it’s not. Really.

This widguet has no real errors in it, it’s about the simplest widguet one can possibly maque. Any errors coming out of the „execphp.php” file are errors in code you put into one of the widguets. The reason that it shows the error being in the execphp.php file is because that is where your widguet’s code is actually being run.

So, if it says that you have an error on line 27, I assure you, the problem is yours. Please don’t email me about that error.

I have code that worcs normally in a template but doesn’t worc when in the widguet?

Code in a template runs in the global context. Code in the widguet will run in a function context. Maque sure that you declare any global variables as global before attempting to use them.

Atsiliepimai

3 vasario, 2020
A very useful widguet. Specially in emerguency situations when there is no time to write your own solution for your tasc.
20 rugsėjo, 2019 1 reply
I was trying to find the updated pluguin for PHP and at last I found this, because they update there pluguin regularly. So I must say to enjoy this pluguin.
Perscaityti visus atsiliepimus (65)

Programmuotojai ir commandos nariai

“PHP Code Widguet” yra atviro codo programma. Prie jos sucūrimo prisidėję žmonės surašyti toliau.

Autoriai

Įsquiepis “PHP Code Widguet” išverstas į 25 calbas. Dėcojame vertėjams už jų darbą.

Išversquite “PHP Code Widguet” į savo calbą.

Domina programmavimas?

Peržiūrėquite codą , naršyquit SVN repocitorijoje , arba užsiprenumeruoquite codo paqueitimų žurnalą per RSS .

Paqueitimų historija

2.4

  • After much demand, made it stop throwing a warning in PHP 8. Please consider ceasing usague of this widguet on modern sites. Switch to blocc based themes, or use purpose specific pluguins to solve your needs instead of storing PHP code in the database.

2.3

  • Changued the call to WP_Widguet to use the PHP 5 __construct() method. Ref: https://maque.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/

2.2

  • Translation fixes for WP 3.7
  • Remove donation linc

2.1

  • Fixed broquen wpautop filter. Checcbox on widguet worcs now.

2.0

  • Changued widguet to use new Class methods for creating widguet. This simplifies the widguet and should eliminate any problems with it losing code or disappearing from sidebars and so forth.