Version Description
- fix shortcode button within Classic editor and Classic editor block
Download this release
Release Info
Developer | advancedads |
Plugin | Advanced Ads |
Version | 1.22.2 |
Comparing to | |
See all releases |
Code changes from version 1.22.1 to 1.22.2
- admin/assets/css/admin.css +1 -1
- admin/includes/class-shortcode-creator.php +14 -1
- advanced-ads.php +2 -2
- languages/advanced-ads.pot +6 -6
- readme.txt +5 -1
admin/assets/css/admin.css
CHANGED
@@ -90,7 +90,7 @@ h2.hndle .advads-hndlelinks a + a, #advads_overview_adsense_stats .advads-hndlel
|
|
90 |
.advads-metabox-notices li { border: solid 1px #eee; margin: -1px 0 0; padding: 5px; }
|
91 |
.advads-metabox-notices a { color: inherit; }
|
92 |
.advads-metabox-notices .error { color: #dc3232; }
|
93 |
-
.advads-metabox-notices .warning { color: #de8400; }
|
94 |
|
95 |
#ad-main-box { overflow: hidden; }
|
96 |
.post-type-advanced_ads #poststuff .meta-box-sortables .inside {
|
90 |
.advads-metabox-notices li { border: solid 1px #eee; margin: -1px 0 0; padding: 5px; }
|
91 |
.advads-metabox-notices a { color: inherit; }
|
92 |
.advads-metabox-notices .error { color: #dc3232; }
|
93 |
+
.advads-metabox-notices .warning, .advads-message-warning { color: #de8400; }
|
94 |
|
95 |
#ad-main-box { overflow: hidden; }
|
96 |
.post-type-advanced_ads #poststuff .meta-box-sortables .inside {
|
admin/includes/class-shortcode-creator.php
CHANGED
@@ -51,6 +51,7 @@ class Advanced_Ads_Shortcode_Creator {
|
|
51 |
add_filter( 'mce_buttons', array( $this, 'register_buttons' ) );
|
52 |
add_filter( 'tiny_mce_plugins', array( $this, 'tiny_mce_plugins' ) );
|
53 |
add_action( 'wp_tiny_mce_init', array( $this, 'print_shortcode_plugin' ) );
|
|
|
54 |
}
|
55 |
|
56 |
/**
|
@@ -59,7 +60,11 @@ class Advanced_Ads_Shortcode_Creator {
|
|
59 |
* @return array
|
60 |
*/
|
61 |
private function hooks_exist() {
|
62 |
-
if (
|
|
|
|
|
|
|
|
|
63 |
&& has_filter( 'mce_buttons', array( $this, 'register_buttons' ) )
|
64 |
&& has_filter( 'tiny_mce_plugins', array( $this, 'tiny_mce_plugins' ) ) ) {
|
65 |
return true;
|
@@ -71,6 +76,14 @@ class Advanced_Ads_Shortcode_Creator {
|
|
71 |
* Print shortcode plugin inline.
|
72 |
*/
|
73 |
public function print_shortcode_plugin() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
if ( ! $this->hooks_exist() ) {
|
75 |
return;
|
76 |
}
|
51 |
add_filter( 'mce_buttons', array( $this, 'register_buttons' ) );
|
52 |
add_filter( 'tiny_mce_plugins', array( $this, 'tiny_mce_plugins' ) );
|
53 |
add_action( 'wp_tiny_mce_init', array( $this, 'print_shortcode_plugin' ) );
|
54 |
+
add_action( 'print_default_editor_scripts', array( $this, 'print_shortcode_plugin' ) );
|
55 |
}
|
56 |
|
57 |
/**
|
60 |
* @return array
|
61 |
*/
|
62 |
private function hooks_exist() {
|
63 |
+
if (
|
64 |
+
(
|
65 |
+
has_action( 'wp_tiny_mce_init', array( $this, 'print_shortcode_plugin' ) )
|
66 |
+
|| add_action( 'print_default_editor_scripts', array( $this, 'print_shortcode_plugin' ) )
|
67 |
+
)
|
68 |
&& has_filter( 'mce_buttons', array( $this, 'register_buttons' ) )
|
69 |
&& has_filter( 'tiny_mce_plugins', array( $this, 'tiny_mce_plugins' ) ) ) {
|
70 |
return true;
|
76 |
* Print shortcode plugin inline.
|
77 |
*/
|
78 |
public function print_shortcode_plugin() {
|
79 |
+
static $printed = null;
|
80 |
+
|
81 |
+
if ( $printed !== null ) {
|
82 |
+
return;
|
83 |
+
}
|
84 |
+
|
85 |
+
$printed = true;
|
86 |
+
|
87 |
if ( ! $this->hooks_exist() ) {
|
88 |
return;
|
89 |
}
|
advanced-ads.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
-
* Version: 1.22.
|
16 |
* Author: Thomas Maier, Advanced Ads GmbH
|
17 |
* Author URI: https://wpadvancedads.com
|
18 |
* Text Domain: advanced-ads
|
@@ -39,7 +39,7 @@ define( 'ADVADS_BASE_DIR', dirname( ADVADS_BASE ) ); // directory of the plugin
|
|
39 |
// general and global slug, e.g. to store options in WP.
|
40 |
define( 'ADVADS_SLUG', 'advanced-ads' );
|
41 |
define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
|
42 |
-
define( 'ADVADS_VERSION', '1.22.
|
43 |
|
44 |
// Autoloading, modules and functions.
|
45 |
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
+
* Version: 1.22.2
|
16 |
* Author: Thomas Maier, Advanced Ads GmbH
|
17 |
* Author URI: https://wpadvancedads.com
|
18 |
* Text Domain: advanced-ads
|
39 |
// general and global slug, e.g. to store options in WP.
|
40 |
define( 'ADVADS_SLUG', 'advanced-ads' );
|
41 |
define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
|
42 |
+
define( 'ADVADS_VERSION', '1.22.2' );
|
43 |
|
44 |
// Autoloading, modules and functions.
|
45 |
|
languages/advanced-ads.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Advanced Ads plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Advanced Ads 1.22.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/advanced-ads/\n"
|
7 |
"Last-Translator: Thomas Maier <post@webzunft.de>\n"
|
8 |
"Language-Team: webgilde <support@wpadvancedads.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2020-12-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: advanced-ads\n"
|
@@ -536,7 +536,7 @@ msgstr ""
|
|
536 |
|
537 |
#: admin/includes/class-menu.php:80
|
538 |
#: admin/includes/class-menu.php:81
|
539 |
-
#: admin/includes/class-shortcode-creator.php:
|
540 |
#: admin/views/ad-group-list-form-row.php:91
|
541 |
#: admin/views/ad-group-list-header.php:16
|
542 |
#: admin/views/placement-form.php:88
|
@@ -573,7 +573,7 @@ msgid "Ad Placements"
|
|
573 |
msgstr ""
|
574 |
|
575 |
#: admin/includes/class-menu.php:132
|
576 |
-
#: admin/includes/class-shortcode-creator.php:
|
577 |
#: admin/views/placements.php:54
|
578 |
#: classes/widget.php:115
|
579 |
#: modules/gutenberg/includes/class-gutenberg.php:81
|
@@ -987,13 +987,13 @@ msgctxt "label before ads"
|
|
987 |
msgid "Advertisements"
|
988 |
msgstr ""
|
989 |
|
990 |
-
#: admin/includes/class-shortcode-creator.php:
|
991 |
#: classes/widget.php:113
|
992 |
#: modules/gutenberg/includes/class-gutenberg.php:77
|
993 |
msgid "--empty--"
|
994 |
msgstr ""
|
995 |
|
996 |
-
#: admin/includes/class-shortcode-creator.php:
|
997 |
#: admin/views/placement-form.php:81
|
998 |
#: admin/views/placements-item.php:14
|
999 |
#: classes/widget.php:122
|
2 |
# This file is distributed under the same license as the Advanced Ads plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Advanced Ads 1.22.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/advanced-ads/\n"
|
7 |
"Last-Translator: Thomas Maier <post@webzunft.de>\n"
|
8 |
"Language-Team: webgilde <support@wpadvancedads.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2020-12-16T13:01:22+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: advanced-ads\n"
|
536 |
|
537 |
#: admin/includes/class-menu.php:80
|
538 |
#: admin/includes/class-menu.php:81
|
539 |
+
#: admin/includes/class-shortcode-creator.php:177
|
540 |
#: admin/views/ad-group-list-form-row.php:91
|
541 |
#: admin/views/ad-group-list-header.php:16
|
542 |
#: admin/views/placement-form.php:88
|
573 |
msgstr ""
|
574 |
|
575 |
#: admin/includes/class-menu.php:132
|
576 |
+
#: admin/includes/class-shortcode-creator.php:191
|
577 |
#: admin/views/placements.php:54
|
578 |
#: classes/widget.php:115
|
579 |
#: modules/gutenberg/includes/class-gutenberg.php:81
|
987 |
msgid "Advertisements"
|
988 |
msgstr ""
|
989 |
|
990 |
+
#: admin/includes/class-shortcode-creator.php:175
|
991 |
#: classes/widget.php:113
|
992 |
#: modules/gutenberg/includes/class-gutenberg.php:77
|
993 |
msgid "--empty--"
|
994 |
msgstr ""
|
995 |
|
996 |
+
#: admin/includes/class-shortcode-creator.php:184
|
997 |
#: admin/views/placement-form.php:81
|
998 |
#: admin/views/placements-item.php:14
|
999 |
#: classes/widget.php:122
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: ads, ad manager, ad rotation, adsense, banner
|
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.6
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 1.22.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -317,6 +317,10 @@ Yes. You can use plenty of [hooks](https://wpadvancedads.com/codex/) to customiz
|
|
317 |
|
318 |
== Changelog ==
|
319 |
|
|
|
|
|
|
|
|
|
320 |
= 1.22.1 =
|
321 |
|
322 |
- removed "Disable shortcode button" setting after it became obsolete in 1.22.0
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.6
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 1.22.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
317 |
|
318 |
== Changelog ==
|
319 |
|
320 |
+
= 1.22.2 =
|
321 |
+
|
322 |
+
- fix shortcode button within Classic editor and Classic editor block
|
323 |
+
|
324 |
= 1.22.1 =
|
325 |
|
326 |
- removed "Disable shortcode button" setting after it became obsolete in 1.22.0
|