PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/Databases/DataBase.php +1 -2 4.4.44.4.8 View file →
@@ -198,9 +198,9 @@
198 198 * @throws Exception
199 199 */
200 200 public function add_col_table( string $name_table, string $name_col, string $type, string $after_col = '' ) {
201 201 if ( ! current_user_can( ADMIN_ROLE ) ) {
202 - throw new Exception( 'You don\'t have permission' );
202 + return false;
203 203 }
204 204
205 205 $query_add = '';
206 206
@@ -789,9 +789,8 @@
789 789 $data = $args['data'] ?? [];
790 790 $filter = $args['filter'] ?? null;
791 791 $table_name = $args['table_name'] ?? '';
792 792 $key_auto_increment = $args['key_auto_increment'] ?? '';
793 - $key_auto_increment = sanitize_key( $key_auto_increment );
794 793
795 794 if ( empty( $data ) || ! is_array( $data ) ) {
796 795 throw new Exception( __( 'Data must be an array!', 'learnpress' ) . ' | ' . __FUNCTION__ );
797 796 }