Plugin Directory

Changeset 2473336

Timestamp:
02/11/2021 08:36:38 PM (3 years ago)
Author:
derekspringer
Message:

Added deprication warning and removed depricated create_function call.

Location:
radcontrol/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • radcontrol/trunk/adcontrol.php

    r1831008 r2473336  
    66Description: Harness WordPress.com's advertising partners for your own website. Requires <a href="https://jetpack.com/" target="_blank">Jetpack</a> to be installed and connected.
    77Author: Automattic
    8 Version: 1.4
     8Version: 1.
    99Author URI: https://automattic.com
    1010Text Domain: adcontrol
     
    2828*/
    2929
    30 define( 'ADCONTROL_VERSION', '1.4' );
     30define( 'ADCONTROL_VERSION', '1.' );
    3131define( 'ADCONTROL_ROOT', dirname( __FILE__ ) );
    3232define( 'ADCONTROL_BASENAME', plugin_basename( __FILE__ ) );
     
    553553}
    554554
     555
     556
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
     567
     568
     569
     570
     571
    555572register_activation_hook( __FILE__, array( 'AdControl', 'activate' ) );
    556573register_activation_hook( __FILE__, array( 'AdControl_Cron', 'activate' ) );
  • radcontrol/trunk/php/no-jetpack.php

    r1763298 r2473336  
    1919        // Alert admins of missing steps on appropriate plugin pages
    2020        if ( current_user_can( 'manage_options' ) && 'plugins.php' == $pagenow ) {
    21             add_action( 'admin_notices', array( $this, 'alert_jetpack' ) );
     21            add_action( 'admin_notices', array( $this, 'alert_jetpack' ) );
    2222        }
    2323    }
  • radcontrol/trunk/php/widgets.php

    r1831008 r2473336  
    106106}
    107107
    108 add_action(
    109     'widgets_init',
    110     create_function(
    111         '',
    112         'return register_widget( "AdControl_Sidebar_Widget" );'
    113     )
    114 );
     108add_action( 'widgets_init', 'adcontrol_register_widgets' );
     109function adcontrol_register_widgets() {
     110    register_widget( "AdControl_Sidebar_Widget" );
     111}
  • radcontrol/trunk/readme.txt

    r1831008 r2473336  
    11=== AdControl ===
    2 Contributors: automattic, derekspringer, egill, jeherve, rclations
     2Contributors: automattic, derekspringer, jeherve, rclations
    33Tags: advertising, ad codes, ads
    44Requires at least: 3.4
    5 Tested up to: 4.9.2
    6 Stable tag: 1.4
     5Tested up to:
     6Stable tag: 1.
    77
    88Harness WordPress.com's advertising partners for your own website.
    99
    1010== Description ==
     11
     12
    1113
    1214With traditional advertising relationships a publisher or blogger has two relationships and platforms--one for publishing and the other for advertising. AdControl combines the two partnerships into one.
     
    3335
    3436== Changelog ==
     37
     38
     39
     40
    3541
    3642= 1.4 =
Note: See TracChangeset for help on using the changeset viewer.