Plugin Directory

Changeset 2702095 for php-code-widget


Ignore:
Timestamp:
03/30/2022 04:53:51 PM (4 years ago)
Author:
Otto42
Message:

Update to support PHP 8.

Location:
php-code-widget
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • php-code-widget/tags/2.4/execphp.php

    r1195545 r2702095  
    55Description: Like the Text widget, but it will take PHP code as well. Heavily derived from the Text widget code in WordPress.
    66Author: Otto
    7 Version: 2.3
     7Version: 2.4
    88Text Domain: php-code-widget
    99Author URI: http://ottodestruct.com
     
    6060}
    6161
    62 add_action('widgets_init', create_function('', 'return register_widget("PHP_Code_Widget");'));
     62add_action('widgets_init', 'php_code_widget_register');
     63function php_code_widget_register() {
     64    register_widget('PHP_Code_Widget');
     65}
  • php-code-widget/tags/2.4/readme.txt

    r2118426 r2702095  
    44Requires at least: 2.8
    55Tested up to: 5.2
    6 Stable tag: 2.3
     6Stable tag: 2.4
    77License: GPLv2
    88License URI: http://www.opensource.org/licenses/GPL-2.0
     
    4545== Changelog ==
    4646
     47= 2.4 =
     48* After much demand, made it stop throwing a warning in PHP 8. Please consider ceasing usage of this widget on modern sites. Switch to block based themes, or use purpose specific plugins to solve your needs instead of storing PHP code in the database.
     49
    4750= 2.3 =
    4851* Changed the call to WP_Widget to use the PHP 5 __construct() method. Ref: https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/
  • php-code-widget/trunk/execphp.php

    r1195545 r2702095  
    55Description: Like the Text widget, but it will take PHP code as well. Heavily derived from the Text widget code in WordPress.
    66Author: Otto
    7 Version: 2.3
     7Version: 2.4
    88Text Domain: php-code-widget
    99Author URI: http://ottodestruct.com
     
    6060}
    6161
    62 add_action('widgets_init', create_function('', 'return register_widget("PHP_Code_Widget");'));
     62add_action('widgets_init', 'php_code_widget_register');
     63function php_code_widget_register() {
     64    register_widget('PHP_Code_Widget');
     65}
  • php-code-widget/trunk/readme.txt

    r2118426 r2702095  
    44Requires at least: 2.8
    55Tested up to: 5.2
    6 Stable tag: 2.3
     6Stable tag: 2.4
    77License: GPLv2
    88License URI: http://www.opensource.org/licenses/GPL-2.0
     
    4545== Changelog ==
    4646
     47= 2.4 =
     48* After much demand, made it stop throwing a warning in PHP 8. Please consider ceasing usage of this widget on modern sites. Switch to block based themes, or use purpose specific plugins to solve your needs instead of storing PHP code in the database.
     49
    4750= 2.3 =
    4851* Changed the call to WP_Widget to use the PHP 5 __construct() method. Ref: https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/
Note: See TracChangeset for help on using the changeset viewer.