PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 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 All 140 releases
← All changes | inc/settings/abstract-settings-page.php +8 -2 4.1.7.2 → 4.4.9 View file →
@@ -39,8 +39,9 @@
39 39 * @param string $tab
40 40 * @version 4.0.0
41 41 */
42 42 public function admin_page_settings( $section = null, $tab = '' ) {
43 + //wp_enqueue_style( 'select2' );
43 44 $settings = $this->get_settings( $section, $tab );
44 45 $settings = $this->sanitize_settings( $settings );
45 46
46 47 do_action( 'learn-press/settings-render' );
@@ -47,9 +48,9 @@
47 48
48 49 if ( $settings ) {
49 50 LP_Meta_Box_Helper::output_fields( $settings );
50 51 } else {
51 - echo esc_html__( 'No setting available.', 'learnpress' );
52 + echo esc_html__( 'No settings available.', 'learnpress' );
52 53 }
53 54 }
54 55
55 56 /**
@@ -63,9 +64,14 @@
63 64 $settings = apply_filters( 'learn-press/admin/get-settings/admin-options-' . $section, $this->get_settings( $section, $tab ) );
64 65 $settings = $this->sanitize_settings( $settings );
65 66
66 67 if ( $settings ) {
67 - LP_Meta_Box_Helper::save_fields( $settings );
68 + LP_Meta_Box_Helper::save_fields( $settings, $_POST );
69 + }
70 +
71 + if ( 'paypal' === $section ) {
72 + // Delete token for case switch live and sandbox
73 + delete_option( 'learn_press_' . LP_Gateway_Paypal::PAYPAL_TOKEN );
68 74 }
69 75 }
70 76
71 77 /**