| @@ -466,20 +466,8 @@ | ||
| 466 | 466 | } |
| 467 | 467 | |
| 468 | 468 | return false; |
| 469 | 469 | } |
| 470 | - public static function remove_old_notice(){ | |
| 471 | - global $wp_filter; | |
| 472 | - if( isset( $wp_filter['admin_notices']->callbacks[10] ) && is_array( $wp_filter['admin_notices']->callbacks[10] ) ) { | |
| 473 | - foreach( $wp_filter['admin_notices']->callbacks[10] as $hash => $callbacks ) { | |
| 474 | - if( is_array( $callbacks['function'] ) && ! empty( $callbacks['function'][0] ) && is_object( $callbacks['function'][0] ) && $callbacks['function'][0] instanceof \NotificationX_Licensing ) { | |
| 475 | - remove_action( 'admin_notices', $hash ); | |
| 476 | - break; | |
| 477 | - } | |
| 478 | - } | |
| 479 | - } | |
| 480 | - } | |
| 481 | - | |
| 482 | 470 | public static function remote_get($url, $args = array(), $raw = false, $assoc = null) { |
| 483 | 471 | $defaults = array( |
| 484 | 472 | 'timeout' => 20, |
| 485 | 473 | 'redirection' => 5, |