| @@ 62-66 (lines=5) @@ | ||
| 59 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
| 60 | } |
|
| 61 | ||
| 62 | if ( in_array( 'publicize', $active, true ) && ! in_array( 'sharedaddy', $active, true ) ) { |
|
| 63 | // we have a sharing page but not the global options area. |
|
| 64 | add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 ); |
|
| 65 | add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 ); |
|
| 66 | } |
|
| 67 | ||
| 68 | if ( ! in_array( 'sharedaddy', $active, true ) ) { |
|
| 69 | add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) ); |
|
| @@ 80-84 (lines=5) @@ | ||
| 77 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
| 78 | } |
|
| 79 | ||
| 80 | if ( in_array( 'publicize', $active, true ) && ! in_array( 'sharedaddy', $active, true ) ) { |
|
| 81 | // we have a sharing page but not the global options area. |
|
| 82 | add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 ); |
|
| 83 | add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 ); |
|
| 84 | } |
|
| 85 | ||
| 86 | if ( ! in_array( 'sharedaddy', $active, true ) ) { |
|
| 87 | add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) ); |
|