Flexible Shipping for WooCommerce - Version 3.1.9

Version Description

  • 2019-02-21 =
  • Fixed fatal error on wp-notice library
Download this release

Release Info

Developer jablonowski
Plugin Icon 128x128 Flexible Shipping for WooCommerce
Version 3.1.9
Comparing to
See all releases

Code changes from version 3.1.8 to 3.1.9

flexible-shipping.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Flexible Shipping
4
  Plugin URI: https://wordpress.org/plugins/flexible-shipping/
5
  Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
6
- Version: 3.1.8
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
@@ -11,7 +11,7 @@
11
  Requires at least: 4.5
12
  Tested up to: 5.1.0
13
  WC requires at least: 3.1.0
14
- WC tested up to: 3.5.4
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
@@ -44,7 +44,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
44
 
45
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
46
 
47
- $plugin_version = '3.1.8';
48
  $plugin_release_timestamp = '2019-02-06';
49
 
50
  $plugin_name = 'Flexible Shipping';
3
  Plugin Name: Flexible Shipping
4
  Plugin URI: https://wordpress.org/plugins/flexible-shipping/
5
  Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
6
+ Version: 3.1.9
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
11
  Requires at least: 4.5
12
  Tested up to: 5.1.0
13
  WC requires at least: 3.1.0
14
+ WC tested up to: 3.5.5
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
44
 
45
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
46
 
47
+ $plugin_version = '3.1.9';
48
  $plugin_release_timestamp = '2019-02-06';
49
 
50
  $plugin_name = 'Flexible Shipping';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flexibleshipping.com/table-rate/
4
  Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
5
  Requires at least: 4.5
6
  Tested up to: 5.1.0
7
- Stable tag: 3.1.8
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -175,7 +175,10 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
175
 
176
  == Changelog ==
177
 
178
- = 3.1.8 - 2019-02-12 =
 
 
 
179
  * Fixed error handling on bulk labels generation
180
  * Fixed polish translation for Create
181
 
4
  Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
5
  Requires at least: 4.5
6
  Tested up to: 5.1.0
7
+ Stable tag: 3.1.9
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
175
 
176
  == Changelog ==
177
 
178
+ = 3.1.9 - 2019-02-21 =
179
+ * Fixed fatal error on wp-notice library
180
+
181
+ = 3.1.8 - 2019-02-19 =
182
  * Fixed error handling on bulk labels generation
183
  * Fixed polish translation for Create
184
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit147321ceed019f0eeb430825940030d8::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit147321ceed019f0eeb430825940030d8
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit147321ceed019f0eeb430825940030d8
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit147321ceed019f0eeb430825940030d8', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit147321ceed019f0eeb430825940030d8', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit147321ceed019f0eeb430825940030d8::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit147321ceed019f0eeb430825940030d8
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit147321ceed019f0eeb430825940030d8::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire147321ceed019f0eeb430825940030d8($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire147321ceed019f0eeb430825940030d8($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire37cbe5f8e1940c704c2b8f9580a2af1f($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire37cbe5f8e1940c704c2b8f9580a2af1f($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit147321ceed019f0eeb430825940030d8
8
  {
9
  public static $files = array (
10
  '46ae4ad8c3479aabff48f598a0e4b93f' => __DIR__ . '/..' . '/wpdesk/wp-mutex/src/WPDesk/functions.php',
@@ -620,9 +620,9 @@ class ComposerStaticInit147321ceed019f0eeb430825940030d8
620
  public static function getInitializer(ClassLoader $loader)
621
  {
622
  return \Closure::bind(function () use ($loader) {
623
- $loader->prefixLengthsPsr4 = ComposerStaticInit147321ceed019f0eeb430825940030d8::$prefixLengthsPsr4;
624
- $loader->prefixDirsPsr4 = ComposerStaticInit147321ceed019f0eeb430825940030d8::$prefixDirsPsr4;
625
- $loader->classMap = ComposerStaticInit147321ceed019f0eeb430825940030d8::$classMap;
626
 
627
  }, null, ClassLoader::class);
628
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f
8
  {
9
  public static $files = array (
10
  '46ae4ad8c3479aabff48f598a0e4b93f' => __DIR__ . '/..' . '/wpdesk/wp-mutex/src/WPDesk/functions.php',
620
  public static function getInitializer(ClassLoader $loader)
621
  {
622
  return \Closure::bind(function () use ($loader) {
623
+ $loader->prefixLengthsPsr4 = ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::$prefixLengthsPsr4;
624
+ $loader->prefixDirsPsr4 = ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::$prefixDirsPsr4;
625
+ $loader->classMap = ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::$classMap;
626
 
627
  }, null, ClassLoader::class);
628
  }
vendor/composer/installed.json CHANGED
@@ -648,17 +648,17 @@
648
  },
649
  {
650
  "name": "wpdesk/wp-notice",
651
- "version": "2.3",
652
- "version_normalized": "2.3.0.0",
653
  "source": {
654
  "type": "git",
655
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
656
- "reference": "48aa5fae4a276fcf8ac71ef55f7729bfd983987d"
657
  },
658
  "dist": {
659
  "type": "zip",
660
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=48aa5fae4a276fcf8ac71ef55f7729bfd983987d",
661
- "reference": "48aa5fae4a276fcf8ac71ef55f7729bfd983987d",
662
  "shasum": ""
663
  },
664
  "require": {
@@ -673,7 +673,7 @@
673
  "wimg/php-compatibility": "^8",
674
  "wp-coding-standards/wpcs": "^0.14.1"
675
  },
676
- "time": "2019-01-14T11:10:59+00:00",
677
  "type": "library",
678
  "installation-source": "dist",
679
  "autoload": {
648
  },
649
  {
650
  "name": "wpdesk/wp-notice",
651
+ "version": "3.0",
652
+ "version_normalized": "3.0.0.0",
653
  "source": {
654
  "type": "git",
655
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
656
+ "reference": "49b651f53fa0a64295bdeaa2e427e8add7114a62"
657
  },
658
  "dist": {
659
  "type": "zip",
660
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=49b651f53fa0a64295bdeaa2e427e8add7114a62",
661
+ "reference": "49b651f53fa0a64295bdeaa2e427e8add7114a62",
662
  "shasum": ""
663
  },
664
  "require": {
673
  "wimg/php-compatibility": "^8",
674
  "wp-coding-standards/wpcs": "^0.14.1"
675
  },
676
+ "time": "2019-02-21T11:12:53+00:00",
677
  "type": "library",
678
  "installation-source": "dist",
679
  "autoload": {
vendor/wpdesk/wp-notice/README.md CHANGED
@@ -45,10 +45,10 @@ require_once('/path/to/wp-desk/wp-notice/init.php');
45
  Simple usage looks like:
46
 
47
  ```php
48
- $notice = wpdesk_notice('Notice text goes here');
49
 
50
  // Is equivalent to:
51
- $notice = WPDeskNotice('Notice text goes here');
52
 
53
  // Is equivalent to:
54
  $notice = \WPDesk\Notice\Factory::notice('Notice text goes here');
45
  Simple usage looks like:
46
 
47
  ```php
48
+ $notice = wpdesk_wp_notice('Notice text goes here');
49
 
50
  // Is equivalent to:
51
+ $notice = WPDeskWpNotice('Notice text goes here');
52
 
53
  // Is equivalent to:
54
  $notice = \WPDesk\Notice\Factory::notice('Notice text goes here');
vendor/wpdesk/wp-notice/src/WPDesk/notice-functions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- if (!function_exists('WPDeskInitNoticeAjaxHandler')) {
4
  /**
5
  * Init notices AJAX Handler.
6
  *
@@ -8,7 +8,7 @@ if (!function_exists('WPDeskInitNoticeAjaxHandler')) {
8
  *
9
  * @return \WPDesk\Notice\AjaxHandler
10
  */
11
- function WPDeskInitNoticeAjaxHandler($assetsUrl = null)
12
  {
13
  $ajax_handler = new \WPDesk\Notice\AjaxHandler($assetsUrl);
14
  $ajax_handler->hooks();
@@ -16,7 +16,7 @@ if (!function_exists('WPDeskInitNoticeAjaxHandler')) {
16
  }
17
  }
18
 
19
- if (!function_exists('wpdesk_init_notice_ajax_handler')) {
20
  /**
21
  * Alias for {@see WPDeskInitNoticeAjaxHandler()} function.
22
  *
@@ -24,13 +24,13 @@ if (!function_exists('wpdesk_init_notice_ajax_handler')) {
24
  *
25
  * @return \WPDesk\Notice\AjaxHandler
26
  */
27
- function wpdesk_init_notice_ajax_handler($assetsUrl = null)
28
  {
29
- return WPDeskInitNoticeAjaxHandler($assetsUrl);
30
  }
31
  }
32
 
33
- if (!function_exists('WPDeskNotice')) {
34
  /**
35
  * Creates Notice.
36
  *
@@ -41,13 +41,13 @@ if (!function_exists('WPDeskNotice')) {
41
  *
42
  * @return \WPDesk\Notice\Notice
43
  */
44
- function WPDeskNotice($noticeContent, $noticeType = 'info', $dismissible = false, $priority = 10)
45
  {
46
  return \WPDesk\Notice\Factory::notice($noticeContent, $noticeType, $dismissible, $priority);
47
  }
48
  }
49
 
50
- if (!function_exists('wpdesk_notice')) {
51
  /**
52
  * Creates Notice.
53
  *
@@ -60,13 +60,13 @@ if (!function_exists('wpdesk_notice')) {
60
  *
61
  * @return \WPDesk\Notice\Notice
62
  */
63
- function wpdesk_notice($noticeContent, $noticeType = 'info', $dismissible = false, $priority = 10)
64
  {
65
- return WPDeskNotice($noticeContent, $noticeType, $dismissible, $priority);
66
  }
67
  }
68
 
69
- if (!function_exists('WPDeskNoticeInfo')) {
70
  /**
71
  * Creates Notice Info.
72
  *
@@ -76,7 +76,7 @@ if (!function_exists('WPDeskNoticeInfo')) {
76
  *
77
  * @return \WPDesk\Notice\Notice
78
  */
79
- function WPDeskNoticeInfo($noticeContent, $dismissible = false, $priority = 10)
80
  {
81
  return \WPDesk\Notice\Factory::notice(
82
  $noticeContent,
@@ -87,7 +87,7 @@ if (!function_exists('WPDeskNoticeInfo')) {
87
  }
88
  }
89
 
90
- if (!function_exists('wpdesk_notice_info')) {
91
  /**
92
  * Creates Notice Info.
93
  *
@@ -99,13 +99,13 @@ if (!function_exists('wpdesk_notice_info')) {
99
  *
100
  * @return \WPDesk\Notice\Notice
101
  */
102
- function wpdesk_notice_info($noticeContent, $dismissible = false, $priority = 10)
103
  {
104
- return WPDeskNoticeInfo($noticeContent, $dismissible, $priority);
105
  }
106
  }
107
 
108
- if (!function_exists('WPDeskNoticeError')) {
109
  /**
110
  * Creates Notice Error.
111
  *
@@ -115,7 +115,7 @@ if (!function_exists('WPDeskNoticeError')) {
115
  *
116
  * @return \WPDesk\Notice\Notice
117
  */
118
- function WPDeskNoticeError($noticeContent, $dismissible = false, $priority = 10)
119
  {
120
  return \WPDesk\Notice\Factory::notice(
121
  $noticeContent,
@@ -126,7 +126,7 @@ if (!function_exists('WPDeskNoticeError')) {
126
  }
127
  }
128
 
129
- if (!function_exists('wpdesk_notice_error')) {
130
  /**
131
  * Creates Notice Error.
132
  *
@@ -138,13 +138,13 @@ if (!function_exists('wpdesk_notice_error')) {
138
  *
139
  * @return \WPDesk\Notice\Notice
140
  */
141
- function wpdesk_notice_error($noticeContent, $dismissible = false, $priority = 10)
142
  {
143
- return WPDeskNoticeError($noticeContent, $dismissible, $priority);
144
  }
145
  }
146
 
147
- if (!function_exists('WPDeskNoticeWarning')) {
148
  /**
149
  * Creates Notice Warning.
150
  *
@@ -154,7 +154,7 @@ if (!function_exists('WPDeskNoticeWarning')) {
154
  *
155
  * @return \WPDesk\Notice\Notice
156
  */
157
- function WPDeskNoticeWarning($noticeContent, $dismissible = false, $priority = 10)
158
  {
159
  return \WPDesk\Notice\Factory::notice(
160
  $noticeContent,
@@ -165,7 +165,7 @@ if (!function_exists('WPDeskNoticeWarning')) {
165
  }
166
  }
167
 
168
- if (!function_exists('wpdesk_notice_warning')) {
169
  /**
170
  * Creates Notice Warning.
171
  *
@@ -177,13 +177,13 @@ if (!function_exists('wpdesk_notice_warning')) {
177
  *
178
  * @return \WPDesk\Notice\Notice
179
  */
180
- function wpdesk_notice_warning($noticeContent, $dismissible = false, $priority = 10)
181
  {
182
- return WPDeskNoticeWarning($noticeContent, $dismissible, $priority);
183
  }
184
  }
185
 
186
- if (!function_exists('WPDeskNoticeSuccess')) {
187
  /**
188
  * Creates Notice Success.
189
  *
@@ -193,7 +193,7 @@ if (!function_exists('WPDeskNoticeSuccess')) {
193
  *
194
  * @return \WPDesk\Notice\Notice
195
  */
196
- function WPDeskNoticeSuccess($noticeContent, $dismissible = false, $priority = 10)
197
  {
198
  return \WPDesk\Notice\Factory::notice(
199
  $noticeContent,
@@ -204,7 +204,7 @@ if (!function_exists('WPDeskNoticeSuccess')) {
204
  }
205
  }
206
 
207
- if (!function_exists('wpdesk_notice_success')) {
208
  /**
209
  * Creates Notice Success.
210
  *
@@ -216,13 +216,13 @@ if (!function_exists('wpdesk_notice_success')) {
216
  *
217
  * @return \WPDesk\Notice\Notice
218
  */
219
- function wpdesk_notice_success($noticeContent, $dismissible = false, $priority = 10)
220
  {
221
- return WPDeskNoticeSuccess($noticeContent, $dismissible, $priority);
222
  }
223
  }
224
 
225
- if (!function_exists('WPDeskPermanentDismissibleNotice')) {
226
  /**
227
  * Creates Permanent Dismissible Notice.
228
  *
@@ -233,7 +233,7 @@ if (!function_exists('WPDeskPermanentDismissibleNotice')) {
233
  *
234
  * @return \WPDesk\Notice\Notice
235
  */
236
- function WPDeskPermanentDismissibleNotice($noticeContent, $noticeName, $noticeType = 'info', $priority = 10)
237
  {
238
  return \WPDesk\Notice\Factory::permanentDismissibleNotice(
239
  $noticeContent,
@@ -244,7 +244,7 @@ if (!function_exists('WPDeskPermanentDismissibleNotice')) {
244
  }
245
  }
246
 
247
- if (!function_exists('wpdesk_permanent_dismissible_notice')) {
248
  /**
249
  * Creates Permanent Dismissible Notice.
250
  *
@@ -257,8 +257,8 @@ if (!function_exists('wpdesk_permanent_dismissible_notice')) {
257
  *
258
  * @return \WPDesk\Notice\Notice
259
  */
260
- function wpdesk_permanent_dismissible_notice($noticeContent, $noticeName, $noticeType = 'info', $priority = 10)
261
  {
262
- return WPDeskPermanentDismissibleNotice($noticeContent, $noticeName, $noticeType, $priority);
263
  }
264
  }
1
  <?php
2
 
3
+ if (!function_exists('WPDeskInitWpNoticeAjaxHandler')) {
4
  /**
5
  * Init notices AJAX Handler.
6
  *
8
  *
9
  * @return \WPDesk\Notice\AjaxHandler
10
  */
11
+ function WPDeskInitWpNoticeAjaxHandler($assetsUrl = null)
12
  {
13
  $ajax_handler = new \WPDesk\Notice\AjaxHandler($assetsUrl);
14
  $ajax_handler->hooks();
16
  }
17
  }
18
 
19
+ if (!function_exists('wpdesk_init_wp_notice_ajax_handler')) {
20
  /**
21
  * Alias for {@see WPDeskInitNoticeAjaxHandler()} function.
22
  *
24
  *
25
  * @return \WPDesk\Notice\AjaxHandler
26
  */
27
+ function wpdesk_init_wp_notice_ajax_handler($assetsUrl = null)
28
  {
29
+ return WPDeskInitWpNoticeAjaxHandler($assetsUrl);
30
  }
31
  }
32
 
33
+ if (!function_exists('WPDeskWpNotice')) {
34
  /**
35
  * Creates Notice.
36
  *
41
  *
42
  * @return \WPDesk\Notice\Notice
43
  */
44
+ function WPDeskWpNotice($noticeContent, $noticeType = 'info', $dismissible = false, $priority = 10)
45
  {
46
  return \WPDesk\Notice\Factory::notice($noticeContent, $noticeType, $dismissible, $priority);
47
  }
48
  }
49
 
50
+ if (!function_exists('wpdesk_wp_notice')) {
51
  /**
52
  * Creates Notice.
53
  *
60
  *
61
  * @return \WPDesk\Notice\Notice
62
  */
63
+ function wpdesk_wp_notice($noticeContent, $noticeType = 'info', $dismissible = false, $priority = 10)
64
  {
65
+ return WPDeskWpNotice($noticeContent, $noticeType, $dismissible, $priority);
66
  }
67
  }
68
 
69
+ if (!function_exists('WPDeskWpNoticeInfo')) {
70
  /**
71
  * Creates Notice Info.
72
  *
76
  *
77
  * @return \WPDesk\Notice\Notice
78
  */
79
+ function WPDeskWpNoticeInfo($noticeContent, $dismissible = false, $priority = 10)
80
  {
81
  return \WPDesk\Notice\Factory::notice(
82
  $noticeContent,
87
  }
88
  }
89
 
90
+ if (!function_exists('wpdesk_wp_notice_info')) {
91
  /**
92
  * Creates Notice Info.
93
  *
99
  *
100
  * @return \WPDesk\Notice\Notice
101
  */
102
+ function wpdesk_wp_notice_info($noticeContent, $dismissible = false, $priority = 10)
103
  {
104
+ return WPDeskWpNoticeInfo($noticeContent, $dismissible, $priority);
105
  }
106
  }
107
 
108
+ if (!function_exists('WPDeskWpNoticeError')) {
109
  /**
110
  * Creates Notice Error.
111
  *
115
  *
116
  * @return \WPDesk\Notice\Notice
117
  */
118
+ function WPDeskWpNoticeError($noticeContent, $dismissible = false, $priority = 10)
119
  {
120
  return \WPDesk\Notice\Factory::notice(
121
  $noticeContent,
126
  }
127
  }
128
 
129
+ if (!function_exists('wpdesk_wp_notice_error')) {
130
  /**
131
  * Creates Notice Error.
132
  *
138
  *
139
  * @return \WPDesk\Notice\Notice
140
  */
141
+ function wpdesk_wp_notice_error($noticeContent, $dismissible = false, $priority = 10)
142
  {
143
+ return WPDeskWpNoticeError($noticeContent, $dismissible, $priority);
144
  }
145
  }
146
 
147
+ if (!function_exists('WPDeskWpNoticeWarning')) {
148
  /**
149
  * Creates Notice Warning.
150
  *
154
  *
155
  * @return \WPDesk\Notice\Notice
156
  */
157
+ function WPDeskWpNoticeWarning($noticeContent, $dismissible = false, $priority = 10)
158
  {
159
  return \WPDesk\Notice\Factory::notice(
160
  $noticeContent,
165
  }
166
  }
167
 
168
+ if (!function_exists('wpdesk_wp_notice_warning')) {
169
  /**
170
  * Creates Notice Warning.
171
  *
177
  *
178
  * @return \WPDesk\Notice\Notice
179
  */
180
+ function wpdesk_wp_notice_warning($noticeContent, $dismissible = false, $priority = 10)
181
  {
182
+ return WPDeskWpNoticeWarning($noticeContent, $dismissible, $priority);
183
  }
184
  }
185
 
186
+ if (!function_exists('WPDeskWpNoticeSuccess')) {
187
  /**
188
  * Creates Notice Success.
189
  *
193
  *
194
  * @return \WPDesk\Notice\Notice
195
  */
196
+ function WPDeskWpNoticeSuccess($noticeContent, $dismissible = false, $priority = 10)
197
  {
198
  return \WPDesk\Notice\Factory::notice(
199
  $noticeContent,
204
  }
205
  }
206
 
207
+ if (!function_exists('wpdesk_wp_notice_success')) {
208
  /**
209
  * Creates Notice Success.
210
  *
216
  *
217
  * @return \WPDesk\Notice\Notice
218
  */
219
+ function wpdesk_wp_notice_success($noticeContent, $dismissible = false, $priority = 10)
220
  {
221
+ return WPDeskWpNoticeSuccess($noticeContent, $dismissible, $priority);
222
  }
223
  }
224
 
225
+ if (!function_exists('WPDeskPermanentDismissibleWpNotice')) {
226
  /**
227
  * Creates Permanent Dismissible Notice.
228
  *
233
  *
234
  * @return \WPDesk\Notice\Notice
235
  */
236
+ function WPDeskPermanentDismissibleWpNotice($noticeContent, $noticeName, $noticeType = 'info', $priority = 10)
237
  {
238
  return \WPDesk\Notice\Factory::permanentDismissibleNotice(
239
  $noticeContent,
244
  }
245
  }
246
 
247
+ if (!function_exists('wpdesk_permanent_dismissible_wp_notice')) {
248
  /**
249
  * Creates Permanent Dismissible Notice.
250
  *
257
  *
258
  * @return \WPDesk\Notice\Notice
259
  */
260
+ function wpdesk_permanent_dismissible_wp_notice($noticeContent, $noticeName, $noticeType = 'info', $priority = 10)
261
  {
262
+ return WPDeskPermanentDismissibleWpNotice($noticeContent, $noticeName, $noticeType, $priority);
263
  }
264
  }