PluginProbe
WebberZone Top 10 — Popular Posts / 4.5.2
WebberZone Top 10 — Popular Posts v4.5.2
4.5.2 4.5.1 4.5.0 4.4.3 4.4.2 4.4.1 4.4.0 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 trunk 1.0 1.0.1 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 All 118 releases
← All changes | includes/admin/class-admin-notices-api.php +4 -4 4.3.4 → 4.5.2 View file →
@@ -23,9 +23,9 @@
23 23 * Plugin prefix used for AJAX actions, nonces, and storage keys.
24 24 *
25 25 * @var string
26 26 */
27 - private string $prefix;
27 + protected string $prefix;
28 28
29 29 /**
30 30 * Array of registered notices.
31 31 *
@@ -30,14 +30,14 @@
30 30 * Array of registered notices.
31 31 *
32 32 * @var array Registered notices.
33 33 */
34 - private array $notices = array();
34 + protected array $notices = array();
35 35
36 36 /**
37 37 * Constructor class.
38 38 *
39 - * @param string $prefix Plugin prefix for AJAX actions, nonces, and storage keys. Default 'wzkb'.
39 + * @param string $prefix Plugin prefix for AJAX actions, nonces, and storage keys. Default 'tptn'.
40 40 */
41 41 public function __construct( string $prefix = 'tptn' ) {
42 42 $this->prefix = $prefix;
43 43
@@ -197,9 +197,9 @@
197 197 *
198 198 * @param string $notice_id Notice ID.
199 199 * @return bool Whether the notice has been dismissed.
200 200 */
201 - private function is_notice_dismissed( $notice_id ) {
201 + protected function is_notice_dismissed( $notice_id ) {
202 202 $notice = $this->notices[ $notice_id ] ?? null;
203 203
204 204 if ( ! $notice ) {
205 205 return false;