Plugin Directory

Changeset 1556510


Ignore:
Timestamp:
12/17/2016 01:56:50 AM (9 years ago)
Author:
allprowebtools
Message:

Update for WP 4.7 and specific PHP configurations

Location:
allprowebtools-leadboxes/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • allprowebtools-leadboxes/trunk/allprowebtools.php

    r1555815 r1556510  
    66Author: AllProWebTools
    77Author URI: http://www.AllProWebTools.com
    8 Version: 1.0.8
     8Version: 1.0.9
    99License: GPLv2
    1010*/
     
    1515    add_action('admin_menu','APWT_admin_menu');
    1616
    17     add_action( 'widgets_init', function(){
    18         register_widget( 'APWTLeadBox' );
    19     });
     17    add_action( 'widgets_init', 'APWTLeadBoxInit');
    2018
    2119    if ( (!get_site_option("APWTAPIKEY")) || (!get_site_option("APWTAPIAUTH")) ) {
     
    2725    register_activation_hook(__FILE__,'APWTLeadBoxActivate');
    2826    register_deactivation_hook( __FILE__, 'APWTLeadBoxDeactivate' );
     27
     28function APWTLeadBoxInit() {
     29    register_widget( 'APWTLeadBox' );
     30}
    2931
    3032function APWT_plugin_get_version() {
  • allprowebtools-leadboxes/trunk/includes/apwt.php

    r1555815 r1556510  
    107107class APWTLeadBox extends WP_Widget {
    108108    public function __construct() {
    109         add_action( 'wp_ajax_nopriv_APWTLeadBox', [&$this,'submit']);
    110         add_action( 'wp_ajax_APWTLeadBox', [&$this,'submit']);
     109        add_action( 'wp_ajax_nopriv_APWTLeadBox', array(&$this,'submit'));
     110        add_action( 'wp_ajax_APWTLeadBox', array(&$this,'submit'));
    111111
    112112        $widget_ops = array(
  • allprowebtools-leadboxes/trunk/readme.txt

    r1555815 r1556510  
    44Requires at least: 3.4
    55Tested up to: 4.7
    6 Stable tag: 1.0.8
     6Stable tag: 1.0.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9191== Changelog ==
    9292
    93 = 1.0.1 - 11/25/16 =
     93= 1.0.8 - 11/25/16 =
    94941. Created standalone Lead box plugin
    9595
     96= 1.0.9 - 12/16/16 =
     971. Patched for better compatability with WP 4.7 and certain PHP versions
Note: See TracChangeset for help on using the changeset viewer.