mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
Fix block/widget ID base defaults
This commit is contained in:
@@ -34,10 +34,10 @@ class DisplayFeaturedImageGenesisOutputAuthor {
|
|||||||
* @param $args
|
* @param $args
|
||||||
* @param string $id_base
|
* @param string $id_base
|
||||||
*/
|
*/
|
||||||
public function __construct( $instance, $args, $id_base = '' ) {
|
public function __construct( $instance, $args, $id_base = 'display-featured-image-genesis-author' ) {
|
||||||
$this->instance = $instance;
|
$this->instance = $instance;
|
||||||
$this->args = $this->update_args( $args );
|
$this->args = $this->update_args( $args );
|
||||||
$this->id_base = $id_base ? $id_base : 'display-featured-image-genesis-author';
|
$this->id_base = $id_base;
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ class DisplayFeaturedImageGenesisOutputCPT {
|
|||||||
* @param $post_type
|
* @param $post_type
|
||||||
* @param string $id_base
|
* @param string $id_base
|
||||||
*/
|
*/
|
||||||
public function __construct( $instance, $args, $post_type, $id_base = '' ) {
|
public function __construct( $instance, $args, $post_type, $id_base = 'display-featured-image-genesis-cpt' ) {
|
||||||
$this->instance = $instance;
|
$this->instance = $instance;
|
||||||
$this->args = $this->update_args( $args );
|
$this->args = $this->update_args( $args );
|
||||||
$this->post_type = $post_type;
|
$this->post_type = $post_type;
|
||||||
$this->id_base = $id_base ? $id_base : 'display-featured-image-genesis-cpt';
|
$this->id_base = $id_base;
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ class DisplayFeaturedImageGenesisOutputTerm {
|
|||||||
* @param $term
|
* @param $term
|
||||||
* @param string $id_base
|
* @param string $id_base
|
||||||
*/
|
*/
|
||||||
public function __construct( $instance, $args, $term, $id_base = '' ) {
|
public function __construct( $instance, $args, $term, $id_base = 'display-featured-image-genesis-term' ) {
|
||||||
$this->instance = $instance;
|
$this->instance = $instance;
|
||||||
$this->args = $this->update_args( $args );
|
$this->args = $this->update_args( $args );
|
||||||
$this->term = $term;
|
$this->term = $term;
|
||||||
$this->id_base = $id_base ? $id_base : 'display-featured-image-genesis-term';
|
$this->id_base = $id_base;
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user