-
Notifications
You must be signed in to change notification settings - Fork 0
/
RdCookieNotice.php
30 lines (23 loc) · 1002 Bytes
/
RdCookieNotice.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* @license http://opensource.org/licenses/MIT MIT
* @package rd-cookie-notice
* @since 0.2.6
* @deprecated since 0.2.6 This class will be removed in the future, please update your class called from `\RdCookieNotice` to `\RdCookieNotice\RdCookieNotice`.
*/
/**
* The mirror (extends) class of `\RdCookieNotice\RdCookieNotice()` for let some plugin/theme had a called to `RdCookieNotice()` still working.
*
* @deprecated since 0.2.6 This class will be removed in the future, please update your class called from `\RdCookieNotice` to `\RdCookieNotice\RdCookieNotice`.
*/
class RdCookieNotice extends \RdCookieNotice\RdCookieNotice
{
/**
* {@inheritDoc}
*/
public static function instance()
{
_doing_it_wrong(__CLASS__ . '::' . __FUNCTION__ . '()', 'The class RdCookieNotice() is now moved to \RdCookieNotice\RdCookieNotice(). Use \RdCookieNotice\RdCookieNotice::instance() instead.', '0.2.6');
return parent::instance();
}// instance
}