PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
← All changes | Inc/Admin/Options/CustomCSSJS.php +3 -29 4.1.174.0 View file →
@@ -67,33 +67,9 @@
67 67 'default' => $this->get_default_field('devtools_tabs')['custom_js'],
68 68 );
69 69 }
70 70
71 - /**
72 - * Maybe Trigger Reset
73 - *
74 - * @param [type] $data
75 - * @param [type] $class
76 - *
77 - * @return void
78 - */
79 - public function maybe_trigger_reset( $data, $class ) {
80 71
81 - if ( !empty( $_POST['adminify_transient']['reset'] ) ) {
82 -
83 - delete_option( '_wpadminify_custom_js_css' );
84 -
85 - } else if ( !empty( $_POST['adminify_transient']['reset_section'] ) && isset( $_POST['adminify_transient']['section'] ) ) {
86 -
87 - $section = $_POST['adminify_transient']['section'];
88 - if ( $class->pre_sections[ $section - 2 ]['id'] === 'custom_css_js' ) {
89 - delete_option( '_wpadminify_custom_js_css' );
90 - }
91 -
92 - }
93 - }
94 -
95 -
96 72 /**
97 73 * Tabs: Frontend & Backend
98 74 *
99 75 * @param [type] $fields
@@ -108,18 +84,15 @@
108 84
109 85 if ( !Utils::is_plugin_active( 'adminify-header-footer-scripts/adminify-header-footer-scripts.php' ) ) {
110 86 $frontend_custom_scripts[] = [
111 87 'type' => 'notice',
112 - 'title' => ' ',
88 + 'title' => __(' ', 'adminify'),
113 89 'class' => 'adminify-missing-plugins adminify-one-col',
114 90 'style' => 'warning',
115 91 'content' => Utils::missing_plugin_notice('Custom Header & Footer'),
116 92 ];
117 93 } else {
118 -
119 - add_action( "adminify__wpadminify_save_after", [ $this, 'maybe_trigger_reset' ], 10, 2 );
120 -
121 - if ( class_exists( '\WPAdminify\Modules\CustomHeaderFooter\Inc\CustomHeaderFooter\CustomHeaderFooterSettings' ) ) {
94 + if(class_exists('\WPAdminify\Modules\CustomHeaderFooter\Inc\CustomHeaderFooter\CustomHeaderFooterSettings')){
122 95 $customHeaderFooterSettings = new \WPAdminify\Modules\CustomHeaderFooter\Inc\CustomHeaderFooter\CustomHeaderFooterSettings();
123 96 $frontend_custom_scripts = $customHeaderFooterSettings->get_fields();
124 97 }
125 98 }
@@ -149,8 +122,9 @@
149 122 return;
150 123 }
151 124
152 125 $fields = array();
126 + // $this->devtools_admin_area_custom_css_js_fields( $fields );
153 127 $this->devtools_tabbed_settings( $fields );
154 128
155 129 // DevTools Section
156 130 \ADMINIFY::createSection(