Removing PHP4 Compatibility in WordPress Custom Widgets | WebDevStudios.com

There I was. Working on adding PHP docblocks to widgets.php in /wp-includes, , when I came across this: /** * PHP4 constructor */ public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) { WP_Widget::__construct( $id_base, $name, $widget_options, $control_options ); } So I set about trying to figure out the appropriate @since parameter to use.

visit Webdevstudios

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: