Skip to content

Commit

Permalink
https://github.com/ThemeFuse/Unyson/issues/1995
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Sep 12, 2016
1 parent dcf0d9c commit 42746e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-fw-extension-sidebars.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ protected function _init() {

$this->backend->init_sidebars();

add_filter( 'fw_post_options', array( $this, '_admin_filter_render_sidebar_picker' ), 10, 2 );

if ( is_admin() ) {
$this->add_admin_actions();
} else {
Expand Down Expand Up @@ -91,8 +93,6 @@ private function add_admin_actions() {
add_action( 'admin_enqueue_scripts', array( $this, '_admin_action_enqueue_scripts' ) );
add_action( 'sidebar_admin_page', array( $this, '_admin_action_render_partial' ) );

add_filter( 'fw_post_options', array( $this, '_admin_filter_render_sidebar_picker' ), 10, 2 );

if ( current_user_can( 'edit_theme_options' ) ) {
add_action( 'wp_ajax_add_new_sidebar_ajax', array( $this, '_admin_action_add_new_sidebar_ajax' ) );
add_action( 'wp_ajax_sidebar_autocomplete_ajax', array($this, '_admin_action_sidebar_autocomplete_ajax') );
Expand Down

0 comments on commit 42746e5

Please sign in to comment.