diff --git a/admin/class-wp-hide-post-admin.php b/admin/class-wp-hide-post-admin.php index 6579d5e..e86e3a2 100644 --- a/admin/class-wp-hide-post-admin.php +++ b/admin/class-wp-hide-post-admin.php @@ -186,8 +186,8 @@ public function activate_lowprofiler() $return_url = admin_url('plugins.php'); $html = <<${err2_cleanup}
${err3_return} - +{$err1_sorry}
{$err2_cleanup}
{$err3_return} + HTML; // show the error page with the message... wp_die($html, 'WP low Profiler Activation Not Allowed', array('response' => '200')); diff --git a/admin/class-wp-hide-post-dbupdate.php b/admin/class-wp-hide-post-dbupdate.php index 28912c3..06b872b 100644 --- a/admin/class-wp-hide-post-dbupdate.php +++ b/admin/class-wp-hide-post-dbupdate.php @@ -114,7 +114,7 @@ public function update_to_ver_1() return; } - $legacy_table_name = "${table_prefix}lowprofiler_posts"; + $legacy_table_name = "{$table_prefix}lowprofiler_posts"; $legacy_table_exists = $wpdb->get_var("SELECT COUNT(*) AS count FROM information_schema.tables WHERE table_schema = '$dbname' AND table_name = '$legacy_table_name';"); if ($legacy_table_exists) { diff --git a/admin/settings/class_settings.php b/admin/settings/class_settings.php index 84ed392..5cc0594 100644 --- a/admin/settings/class_settings.php +++ b/admin/settings/class_settings.php @@ -298,7 +298,7 @@ public function get_settings_fields() $this->settings[$this->core_sections['license']['id']] = $this->license_fields; // $this->settings[$this->core_sections['info']['id']] = $this->info_fields; - $this->settings[$this->asignment_section['id']] = $this->asignment_fields; + // $this->settings[$this->asignment_section['id']] = $this->asignment_fields; return $this->settings; } diff --git a/wp-hide-post.php b/wp-hide-post.php index 5b0914e..a332d4f 100644 --- a/wp-hide-post.php +++ b/wp-hide-post.php @@ -40,9 +40,9 @@ define('WPHP_PLUGIN_FILE', ltrim(str_replace(str_Replace("/", DIRECTORY_SEPARATOR, WP_PLUGIN_DIR), "", __FILE__), DIRECTORY_SEPARATOR)); define('WPHP_PLUGIN_URL', plugin_dir_url(WPHP_PLUGIN_FILE)); - define('WPHP_TABLE_NAME', "${table_prefix}postmeta"); + define('WPHP_TABLE_NAME', "{$table_prefix}postmeta"); - define('WP_POSTS_TABLE_NAME', "${table_prefix}posts"); + define('WP_POSTS_TABLE_NAME', "{$table_prefix}posts"); define('WPHP_DEBUG', defined('WP_DEBUG') && WP_DEBUG ? 1 : 0);