Skip to content

Commit 414e305

Browse files
committed
Added fix for settings page.
1 parent 365401e commit 414e305

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

plugins/hwp-previews/hwp-previews.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ function hwp_previews_constants(): void {
8080
function hwp_previews_init(): void {
8181
hwp_previews_constants();
8282

83-
8483
if ( defined( 'HWP_PREVIEWS_PLUGIN_DIR' ) ) {
8584
require_once HWP_PREVIEWS_PLUGIN_DIR . 'src/Plugin.php';
8685
Plugin::instance();

plugins/hwp-previews/src/Admin/Settings_Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function init_class_properties(): void {
5555
public static function register_settings_pages(): void {
5656
add_action( 'admin_menu', static function (): void {
5757

58-
$post_types = ( null === self::$types_config ) ? [] : self::$types_config->get_post_types();
58+
$post_types = ( null === self::$types_config ) ? [] : self::$types_config->get_public_post_types();
5959

6060
/**
6161
* Array of post types where key is the post type slug and value is the label.

0 commit comments

Comments
 (0)