Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit 535a3e1

Browse files
authored
Merge pull request #38 from Codeinwp/development
Fixed issue with popup showing on the footer
2 parents 3476def + 2e45cde commit 535a3e1

File tree

7 files changed

+32
-10
lines changed

7 files changed

+32
-10
lines changed

README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ If you don't have any caching/minify plugin, it is mostly due to your theme whic
128128

129129
== Changelog ==
130130

131+
= 2.0.12 =
132+
133+
* Fixed issue with modal showing on the footer
134+
131135
= 2.0.11 =
132136

133137
* Fixed upgrade issue which was recreating js and css files

adblock-notify-files.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Generate random selector or file name
1414
***************************************************************/
1515
function an_random_slug() {
16-
$alphabet = 'abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789';
16+
$alphabet = 'abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ';
1717
$prefix = array();
1818
$alphaLength = strlen( $alphabet ) - 1;
1919
for ( $i = 0; $i < 12; $i ++ ) {

adblock-notify-functions.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ function an_check_key( $key ) {
383383
'adblocker_upgrade_200',
384384
'adblocker_upgrade_205',
385385
'adblocker_upgrade_2010',
386+
'adblocker_upgrade_2012',
386387
);
387388

388389
return in_array( $key, $all_keys );
@@ -540,3 +541,20 @@ function an_upgrade_routine_2010() {
540541
}
541542
}
542543
}
544+
545+
add_action( 'an_upgrade_routine','an_upgrade_routine_2012' );
546+
547+
/**
548+
* Upgrade routine from version <= 2.0.12
549+
*/
550+
function an_upgrade_routine_2012() {
551+
$upgrade = an_get_option( 'adblocker_upgrade_2012','no' );
552+
if ( $upgrade != 'yes' ) {
553+
$anTempDir = unserialize( an_get_option( 'adblocker_notify_selectors' ) );
554+
if ( isset( $anTempDir['temp-path'] ) ) {
555+
an_delete_temp_folder( $anTempDir['temp-path'] );
556+
an_save_setting_random_selectors( true );
557+
an_update_option( 'adblocker_upgrade_2012','yes' );
558+
}
559+
}
560+
}

adblock-notify.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Plugin Name: Adblock Notify Lite
88
* Plugin URI: http://themeisle.com/plugins/adblock-notify-lite/
99
* Description: An Adblock detection and nofitication plugin with get around options and a lot of settings. Dashboard widget with adblock counter included!
10-
* Version: 2.0.11
10+
* Version: 2.0.12
1111
* Author: Themeisle
1212
* Author URI: http://themeisle.com
1313
* Text Domain: an-translate
@@ -47,7 +47,7 @@
4747
define( 'AN_COOKIE', 'anCookie' );
4848
}
4949
if ( ! defined( 'AN_VERSION' ) ) {
50-
define( 'AN_VERSION', '2.0.11' );
50+
define( 'AN_VERSION', '2.0.12' );
5151
}
5252
if ( ! defined( 'AN_TEMP_DEVELOPMENT' ) ) {
5353
define( 'AN_TEMP_DEVELOPMENT', false );

css/an-style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
an_style.css
33
AdBlock Notify
44
Copyright: (c) 2016 Themeisle, themeisle.com
5-
Version: 2.0.11
5+
Version: 2.0.12
66
*/
77
.reveal-modal-bg {
88
display: none;

languages/an-translate.pot

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgstr ""
55
"Project-Id-Version: Adblock Notify Lite 2.0.11\n"
66
"Report-Msgid-Bugs-To: "
77
"https://github.com/Codeinwp/adblock-notify-by-bweb/issues\n"
8-
"POT-Creation-Date: 2016-11-23 12:35:47+00:00\n"
8+
"POT-Creation-Date: 2016-12-06 04:17:40+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
@@ -39,19 +39,19 @@ msgid ""
3939
"change your uploads directory CHMOD."
4040
msgstr ""
4141

42-
#: adblock-notify-functions.php:430
42+
#: adblock-notify-functions.php:431
4343
msgid "Show your love"
4444
msgstr ""
4545

46-
#: adblock-notify-functions.php:433
46+
#: adblock-notify-functions.php:434
4747
msgid "Leave A Review"
4848
msgstr ""
4949

50-
#: adblock-notify-functions.php:439
50+
#: adblock-notify-functions.php:440
5151
msgid "Buy now"
5252
msgstr ""
5353

54-
#: adblock-notify-functions.php:442
54+
#: adblock-notify-functions.php:443
5555
msgid "Multi-Site Support"
5656
msgstr ""
5757

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adblock-notify-by-bweb",
3-
"version": "2.0.11",
3+
"version": "2.0.12",
44
"description": "Adblock Notify plugin",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)