| @@ -95,9 +95,9 @@ | ||
| 95 | 95 | return $wpdb->get_row( $query ); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | public static function update( $data, $where, $data_formats ): void { |
| 99 | - if ( ! current_user_can( 'unfiltered_html' ) ) { | |
| 99 | + if ( ! current_user_can( 'manage_options' ) ) { | |
| 100 | 100 | return; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | global $wpdb; |
| @@ -105,9 +105,9 @@ | ||
| 105 | 105 | $result = $wpdb->update( $table, $data, $where, $data_formats ); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | public static function insert( $data, $data_formats ) { |
| 109 | - if ( ! current_user_can( 'unfiltered_html' ) ) { | |
| 109 | + if ( ! current_user_can( 'manage_options' ) ) { | |
| 110 | 110 | return false; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | global $wpdb; |