| @@ 51-55 (lines=5) @@ | ||
| 48 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
| 49 | } |
|
| 50 | ||
| 51 | if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) { |
|
| 52 | // we have a sharing page but not the global options area |
|
| 53 | add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 ); |
|
| 54 | add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 ); |
|
| 55 | } |
|
| 56 | ||
| 57 | if( ! in_array( 'sharedaddy', $active ) ) { |
|
| 58 | add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) ); |
|
| @@ 67-71 (lines=5) @@ | ||
| 64 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
| 65 | } |
|
| 66 | ||
| 67 | if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) { |
|
| 68 | // we have a sharing page but not the global options area |
|
| 69 | add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 ); |
|
| 70 | add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 ); |
|
| 71 | } |
|
| 72 | ||
| 73 | if( ! in_array( 'sharedaddy', $active ) ) { |
|
| 74 | add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) ); |
|