Wp-Insert - Version 2.4.1

Version Description

Download this release

Release Info

Developer namith.jawahar
Plugin Icon 128x128 Wp-Insert
Version 2.4.1
Comparing to
See all releases

Code changes from version 2.4 to 2.4.1

includes/modules/core/adstxt/adsense.php CHANGED
@@ -4,6 +4,7 @@ add_action('init', 'wp_insert_adstxt_adsense_admin_notice_reactivate');
4
  function wp_insert_adstxt_adsense_admin_notice_reactivate() {
5
  if(isset($_GET['wp_insert_adstxt_adsense_reset'])) {
6
  wp_insert_adstxt_adsense_admin_notice_reset();
 
7
  }
8
  }
9
 
@@ -64,7 +65,7 @@ function wp_insert_adstxt_adsense_auto_update() {
64
  if($adstxtNewAdsenseEntries !== false) {
65
  $adstxtContent = wp_insert_adstxt_get_content();
66
  $adstxtContentData = array_filter(explode("\n", trim($adstxtContent)), 'trim');
67
- $adstxtUpdatedContent = array_merge($adstxtContentData, $adstxtNewAdsenseEntries);
68
  }
69
 
70
  if(isset($adstxtUpdatedContent) && is_array($adstxtUpdatedContent) && (count($adstxtUpdatedContent) > 0)) {
@@ -115,7 +116,7 @@ function wp_insert_adstxt_adsense_get_status() {
115
  }
116
  }
117
  }
118
- if(count($adstxtNewAdsenseEntries) > 0) {
119
  return $adstxtNewAdsenseEntries;
120
  }
121
  return false;
4
  function wp_insert_adstxt_adsense_admin_notice_reactivate() {
5
  if(isset($_GET['wp_insert_adstxt_adsense_reset'])) {
6
  wp_insert_adstxt_adsense_admin_notice_reset();
7
+ wp_redirect(esc_url(admin_url('/admin.php?page=wp-insert')));
8
  }
9
  }
10
 
65
  if($adstxtNewAdsenseEntries !== false) {
66
  $adstxtContent = wp_insert_adstxt_get_content();
67
  $adstxtContentData = array_filter(explode("\n", trim($adstxtContent)), 'trim');
68
+ $adstxtUpdatedContent = array_filter(array_merge($adstxtContentData, $adstxtNewAdsenseEntries), 'trim');
69
  }
70
 
71
  if(isset($adstxtUpdatedContent) && is_array($adstxtUpdatedContent) && (count($adstxtUpdatedContent) > 0)) {
116
  }
117
  }
118
  }
119
+ if(isset($adstxtNewAdsenseEntries) && count($adstxtNewAdsenseEntries) > 0) {
120
  return $adstxtNewAdsenseEntries;
121
  }
122
  return false;
includes/modules/general/pagelevel/module.php CHANGED
@@ -3,8 +3,8 @@
3
  add_action('wp_insert_plugin_card', 'wp_insert_pagelevelads_plugin_card', 60);
4
  function wp_insert_pagelevelads_plugin_card() {
5
  wp_insert_get_plugin_card(
6
- 'Page-level Ads',
7
- '<p>Adsense Page-level ads are shown on your site only at optimal times.<br />Google Provides a testing tool in adsense portal for webadmins to test your Adsense Page-Level Ads.</p>',
8
  'pagelevelads',
9
  'Page-Level Ad'
10
  );
3
  add_action('wp_insert_plugin_card', 'wp_insert_pagelevelads_plugin_card', 60);
4
  function wp_insert_pagelevelads_plugin_card() {
5
  wp_insert_get_plugin_card(
6
+ 'Adsense Auto Ads / Page Level Ads',
7
+ '<p>Auto ads use machine learning to make smart placement and monetization decisions on your behalf, saving you time. Place one piece of code just once to all of your pages, and let Adsense take care of the rest.</p>',
8
  'pagelevelads',
9
  'Page-Level Ad'
10
  );
includes/modules/general/videointelligence/api/vi.php CHANGED
@@ -405,14 +405,14 @@ function wp_insert_vi_api_set_vi_code($args = null) {
405
 
406
  function wp_insert_vi_api_get_vi_code($settingsKey = '') {
407
  $jsTag = get_transient('wp_insert_vi_api_jstag');
408
- if(($jsTag === false) || ($jsTag == '')) {
409
  if($settingsKey != '') {
410
  $vicodeSettings = get_option($settingsKey);
411
  $jsTag = wp_insert_vi_api_set_vi_code($vicodeSettings);
412
  } else {
413
  $jsTag = wp_insert_vi_api_set_vi_code();
414
  }
415
- if(($jsTag === false) || ($jsTag == '')) {
416
  return false;
417
  }
418
  }
405
 
406
  function wp_insert_vi_api_get_vi_code($settingsKey = '') {
407
  $jsTag = get_transient('wp_insert_vi_api_jstag');
408
+ if(($jsTag === false) || ($jsTag == '') || is_array($jsTag)) {
409
  if($settingsKey != '') {
410
  $vicodeSettings = get_option($settingsKey);
411
  $jsTag = wp_insert_vi_api_set_vi_code($vicodeSettings);
412
  } else {
413
  $jsTag = wp_insert_vi_api_set_vi_code();
414
  }
415
+ if(($jsTag === false) || ($jsTag == '') || is_array($jsTag)) {
416
  return false;
417
  }
418
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: google adsense, adsense, google ads, google analytics, privacy policy, bes
4
  Donate link: http://wpinsert.smartlogix.co.in/support/
5
  Requires at least: 4.1.0
6
  Tested up to: 4.9.4
7
- Stable tag: 2.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -19,6 +19,7 @@ Wp-Insert is the most powerful yet easiest to use wordpress ad management / ad i
19
 
20
  * Adsense Optimized
21
  * Builtin support for Google Page-Level Ads
 
22
  * Unlimited Adblocks (No restrictions placed on you)
23
  * Insert Ad Above, Below, To the Left and Right of Page or Post Content
24
  * Insert Ad in the Middle of Page/Post Content with intelligent midpoint detection algorithms
4
  Donate link: http://wpinsert.smartlogix.co.in/support/
5
  Requires at least: 4.1.0
6
  Tested up to: 4.9.4
7
+ Stable tag: 2.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
19
 
20
  * Adsense Optimized
21
  * Builtin support for Google Page-Level Ads
22
+ * Builtin support for Google Adsense Auto Ads
23
  * Unlimited Adblocks (No restrictions placed on you)
24
  * Insert Ad Above, Below, To the Left and Right of Page or Post Content
25
  * Insert Ad in the Middle of Page/Post Content with intelligent midpoint detection algorithms
wp-insert.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
  Description: WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
6
- Version: 2.4
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
  WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
  Description: WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
6
+ Version: 2.4.1
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
  WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress