Version Description
- possible hotfix for update issue
- cleared unneeded sessions for better performance
Download this release
Release Info
Developer | webzunft |
Plugin | Advanced Ads |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.4
- admin/class-advanced-ads-admin.php +1 -3
- admin/includes/class-overview-widgets.php +2 -2
- advanced-ads.php +6 -3
- modules/gadsense/main.php +2 -5
- readme.txt +6 -1
admin/class-advanced-ads-admin.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @author Thomas Maier <thomas.maier@webgilde.com>
|
8 |
* @license GPL-2.0+
|
9 |
* @link http://webgilde.com
|
10 |
-
* @copyright 2013 Thomas Maier, webgilde GmbH
|
11 |
*/
|
12 |
|
13 |
/**
|
@@ -229,8 +229,6 @@ class Advanced_Ads_Admin {
|
|
229 |
|
230 |
$screen = get_current_screen();
|
231 |
|
232 |
-
require_once('includes/class-overview-widgets.php');
|
233 |
-
|
234 |
// set up overview widgets
|
235 |
AdvAds_Overview_Widgets_Callbacks::setup_overview_widgets($screen);
|
236 |
|
7 |
* @author Thomas Maier <thomas.maier@webgilde.com>
|
8 |
* @license GPL-2.0+
|
9 |
* @link http://webgilde.com
|
10 |
+
* @copyright 2013-2015 Thomas Maier, webgilde GmbH
|
11 |
*/
|
12 |
|
13 |
/**
|
229 |
|
230 |
$screen = get_current_screen();
|
231 |
|
|
|
|
|
232 |
// set up overview widgets
|
233 |
AdvAds_Overview_Widgets_Callbacks::setup_overview_widgets($screen);
|
234 |
|
admin/includes/class-overview-widgets.php
CHANGED
@@ -89,7 +89,7 @@ class AdvAds_Overview_Widgets_Callbacks {
|
|
89 |
|
90 |
$next_steps = array();
|
91 |
|
92 |
-
if(count($recent_ads)
|
93 |
$next_steps[] = '<p><a class="button button-primary" href="' . admin_url('post-new.php?post_type=' . Advanced_Ads::POST_TYPE_SLUG) .
|
94 |
'">' . __('Create your first ad', ADVADS_SLUG) . '</a></p>';
|
95 |
endif;
|
@@ -98,7 +98,7 @@ class AdvAds_Overview_Widgets_Callbacks {
|
|
98 |
'<p><a class="button button-primary" href="' . admin_url('admin.php?action=edit&page=advanced-ads-groups') .
|
99 |
'">' . __('Create your first group', ADVADS_SLUG) . '</a></p>';
|
100 |
endif;
|
101 |
-
if(count($placements)
|
102 |
$next_steps[] = '<p class="description">' . __('Ad Placements are the best way to manage where to display ads and groups.', ADVADS_SLUG) . '</p>'
|
103 |
. '<p><a class="button button-primary" href="' . admin_url('admin.php?action=edit&page=advanced-ads-placements') .
|
104 |
'">' . __('Create your first placement', ADVADS_SLUG) . '</a></p>';
|
89 |
|
90 |
$next_steps = array();
|
91 |
|
92 |
+
if(count($recent_ads) == 0) :
|
93 |
$next_steps[] = '<p><a class="button button-primary" href="' . admin_url('post-new.php?post_type=' . Advanced_Ads::POST_TYPE_SLUG) .
|
94 |
'">' . __('Create your first ad', ADVADS_SLUG) . '</a></p>';
|
95 |
endif;
|
98 |
'<p><a class="button button-primary" href="' . admin_url('admin.php?action=edit&page=advanced-ads-groups') .
|
99 |
'">' . __('Create your first group', ADVADS_SLUG) . '</a></p>';
|
100 |
endif;
|
101 |
+
if(count($placements) == 0) :
|
102 |
$next_steps[] = '<p class="description">' . __('Ad Placements are the best way to manage where to display ads and groups.', ADVADS_SLUG) . '</p>'
|
103 |
. '<p><a class="button button-primary" href="' . admin_url('admin.php?action=edit&page=advanced-ads-placements') .
|
104 |
'">' . __('Create your first placement', ADVADS_SLUG) . '</a></p>';
|
advanced-ads.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: http://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
-
* Version: 1.4.
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
@@ -72,8 +72,11 @@ if( defined('DOING_AJAX') ) {
|
|
72 |
require_once( plugin_dir_path( __FILE__ ) . 'includes/array_ad_conditions.php' );
|
73 |
|
74 |
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
77 |
}
|
78 |
|
79 |
// load public functions
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: http://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
+
* Version: 1.4.4
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
72 |
require_once( plugin_dir_path( __FILE__ ) . 'includes/array_ad_conditions.php' );
|
73 |
|
74 |
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
|
75 |
+
// register all classes with callbacks and hooks here
|
76 |
+
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-advanced-ads-admin.php' );
|
77 |
+
require_once( plugin_dir_path( __FILE__ ) . 'admin/includes/class-overview-widgets.php' );
|
78 |
+
|
79 |
+
add_action( 'plugins_loaded', array( 'Advanced_Ads_Admin', 'get_instance' ) );
|
80 |
}
|
81 |
|
82 |
// load public functions
|
modules/gadsense/main.php
CHANGED
@@ -7,10 +7,6 @@ define('GADSENSE_BASE_PATH', plugin_dir_path(__FILE__));
|
|
7 |
define('GADSENSE_BASE_URL', plugins_url(basename(ADVADS_BASE_PATH) . '/modules/' . basename(GADSENSE_BASE_PATH) . '/'));
|
8 |
define('GADSENSE_OPT_NAME', 'gadsense_options');
|
9 |
|
10 |
-
if ('' == session_id()) {
|
11 |
-
session_start();
|
12 |
-
}
|
13 |
-
|
14 |
function gadsense_date_time($time) {
|
15 |
return date_i18n( get_option( 'date_format' ), $time) . __(' at ', ADVADS_SLUG) . date_i18n( get_option( 'time_format' ), $time);
|
16 |
}
|
@@ -22,6 +18,7 @@ Gadsense_Data::get_instance();
|
|
22 |
|
23 |
if (!defined('DOING_AJAX') || !DOING_AJAX) {
|
24 |
if (is_admin()) {
|
25 |
-
|
|
|
26 |
}
|
27 |
}
|
7 |
define('GADSENSE_BASE_URL', plugins_url(basename(ADVADS_BASE_PATH) . '/modules/' . basename(GADSENSE_BASE_PATH) . '/'));
|
8 |
define('GADSENSE_OPT_NAME', 'gadsense_options');
|
9 |
|
|
|
|
|
|
|
|
|
10 |
function gadsense_date_time($time) {
|
11 |
return date_i18n( get_option( 'date_format' ), $time) . __(' at ', ADVADS_SLUG) . date_i18n( get_option( 'time_format' ), $time);
|
12 |
}
|
18 |
|
19 |
if (!defined('DOING_AJAX') || !DOING_AJAX) {
|
20 |
if (is_admin()) {
|
21 |
+
if ('' === session_id()) session_start();
|
22 |
+
require_once GADSENSE_BASE_PATH . '/admin/class-gadsense-admin.php';
|
23 |
}
|
24 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id
|
|
4 |
Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
|
5 |
Requires at least: WP 3.5, PHP 5.3
|
6 |
Tested up to: 4.1.1
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -169,6 +169,11 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
|
|
|
|
172 |
= 1.4.3 =
|
173 |
|
174 |
* COOL: complete makeover of the plugin dashboard based on WP standards
|
4 |
Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
|
5 |
Requires at least: WP 3.5, PHP 5.3
|
6 |
Tested up to: 4.1.1
|
7 |
+
Stable tag: 1.4.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
169 |
|
170 |
== Changelog ==
|
171 |
|
172 |
+
= 1.4.4 =
|
173 |
+
|
174 |
+
* possible hotfix for update issue
|
175 |
+
* cleared unneeded sessions for better performance
|
176 |
+
|
177 |
= 1.4.3 =
|
178 |
|
179 |
* COOL: complete makeover of the plugin dashboard based on WP standards
|