PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.5.2
WP Coder – Insert & Manage Code Snippets v4.5.2
4.5.2 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 All 40 releases
← All changes | includes/pages/3.snippets.php +13 -12 3.5 → 4.5.2 View file →
@@ -1,28 +1,29 @@
1 1 <?php
2 2
3 -
4 3 use WPCoder\Dashboard\DashboardInitializer;
5 4 use WPCoder\Snippets\SnippetManager;
6 5
7 6 defined( 'ABSPATH' ) || exit;
8 7
9 -if ( ! current_user_can( 'unfiltered_html' ) ) {
10 - wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpcoder' ) );
8 +if ( ! \WPCoder\WPCoder::user_can_manage() ) {
9 + wp_die( esc_attr__( 'You do not have sufficient permissions to access this page.', 'wp-coder' ) );
11 10 }
12 11
13 12
14 13 ?>
15 14
16 -<div class="wowp-header-wrapper">
17 - <?php
18 - DashboardInitializer::header(); ?>
15 + <div class="wowp">
16 + <?php DashboardInitializer::header(); ?>
19 17
20 - <div class="wowp-header-title">
21 - <h2><?php
22 - esc_html_e( 'Snippets Manager', 'wpcoder' ); ?></h2>
18 + <div class="wowp-page-header">
19 + <h2 class="wowp-page-header__title">
20 + <?php esc_html_e( 'Snippets Manager', 'wp-coder' ); ?>
21 + </h2>
22 + </div>
23 +
24 + <?php SnippetManager::init(); ?>
25 +
23 26 </div>
24 27
25 -</div>
26 -
27 -<?php SnippetManager::init();
28 +<?php
28 29