PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 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 All 142 releases
← All changes | inc/TemplateHooks/Admin/AdminTemplate.php +10 -3 4.4.8 → 4.4.10 View file →
@@ -285,11 +285,12 @@
285 285 if ( empty( $active_tab ) || ! isset( $tabs[ $active_tab ] ) ) {
286 286 $tab_keys = array_keys( $tabs );
287 287 $active_tab = reset( $tab_keys );
288 288 }
289 - $content = $data['content'] ?? '';
290 - $title = $data['title'] ?? '';
291 - $id = $data['id'] ?? '';
289 + $content = $data['content'] ?? '';
290 + $title = $data['title'] ?? '';
291 + $id = $data['id'] ?? '';
292 + $hide_notices_wp = $data['hide_notices_wp'] ?? false;
292 293
293 294 $classes = array( 'wrap' );
294 295 if ( $id ) {
295 296 $classes[] = $id;
@@ -329,8 +330,14 @@
329 330 'tabs' => $tabs ? sprintf(
330 331 '<h2 class="nav-tab-wrapper">%s</h2>',
331 332 $html_tabs
332 333 ) : '',
334 + 'wrap-wp-header-end' => sprintf(
335 + '<div class="%s">',
336 + $hide_notices_wp ? 'lp-hidden' : ''
337 + ), // Hide notices of WP insert after wp-header-end
338 + 'wp-header-end' => '<hr class="wp-header-end">',
339 + 'wrap-wp-header-end-close' => '</div>',
333 340 'wrap-content' => '<div class="lp-admin-tabs">',
334 341 'content' => $content,
335 342 'wrap-content-end' => '</div>',
336 343 'wrap-end' => '</div>',