mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-06-05 15:08:20 +09:00
Move display setting to an earlier function
Images were not resetting to last valid value.
This commit is contained in:
@@ -40,6 +40,8 @@ class Display_Featured_Image_Genesis_Settings {
|
||||
add_action( 'admin_init', array( $this, 'register_settings' ) );
|
||||
add_action( 'load-appearance_page_displayfeaturedimagegenesis', array( $this, 'help' ) );
|
||||
|
||||
$this->displaysetting = $this->get_display_setting();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,8 +54,6 @@ class Display_Featured_Image_Genesis_Settings {
|
||||
$page_title = get_admin_page_title();
|
||||
$heading = $GLOBALS['wp_version'] >= '4.3' ? 'h1' : 'h2';
|
||||
|
||||
$this->displaysetting = $this->get_display_setting();
|
||||
|
||||
echo '<div class="wrap">';
|
||||
printf( '<%1$s>%2$s</%1$s>', esc_attr( $heading ), esc_attr( $page_title ) );
|
||||
echo '<form action="options.php" method="post">';
|
||||
|
||||
Reference in New Issue
Block a user