PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.5.1
WP Coder – Insert & Manage Code Snippets v3.5.1
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | classes/Dashboard/DBManager.php +2 -2 3.33.5.1 View file →
@@ -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;