Plugin Directory

Changeset 707994


Ignore:
Timestamp:
05/04/2013 09:12:59 PM (13 years ago)
Author:
KenMorico
Message:

changed add_action function to work with versions of PHP less that 5.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • professional-share/trunk/Widget.php

    r706770 r707994  
    7575}
    7676
    77 add_action( 'widgets_init', function(){
     77/*add_action( 'widgets_init', function(){
    7878     register_widget( 'professional_share_widget' );
    79 });
     79});*/
     80
     81add_action( 'widgets_init', create_function( '', 'register_widget( "professional_share_widget" );' ) );
    8082
    8183?>
Note: See TracChangeset for help on using the changeset viewer.