B B `!B B B !B `B !B `SB B B !B 8B xB 'B @'B 8B 'B @'B `B !B `SB B B H!B 8B `B !B !B `SB B B XXnR B B `B B B !B !B !B ,hR 8,hR @ storxd B y y ,hR @ *hR y @ R B y y 0,hR y R H,hR ,hR ,hR ,hR @ 2c B y y ,hR @ le `B y y ,hR @ eful d B y y ,hR y ,hR X,hR y ,hR ,hR @ R xd B z z 0,hR @ z z H,hR X,hR z s ,hR @ (KB @ B { { ,hR @ R xd B { { ,hR { ,hR ,hR z p,hR ,hR z ,hR ,hR t_di x ,hR ,hR @ \`B ,hR @ ,hR ,hR @ R x@-hR @ R *hR ,hR ,hR ,hR ,hR @ ,hR ,hR @ R +hR `,hR H,hR x,hR @ R `B ,hR ,hR ,hR ,hR ,hR x,hR ,hR 0<(hR @ B (,hR @ R *hR P,hR @,hR h,hR ,hR ,hR R ,hR @ x5B u (,hR @,hR u ,hR (KB s X,hR p,hR @ R @-hR @ R B `,hR R x,hR x5B H,hR ,hR r (,hR 8,hR r ,hR @ x5B n ,hR ,hR n R ,hR 0,hR 6 6V 8+hR +hR h+hR +hR p,hR ,hR X,hR @,hR 0,hR @,hR ,hR (,hR ,hR C WnR @ R @-hR @ d B ,hR % ,hR ' @ R ,hR 0,hR `,hR ,hR @ + @ ? d B ,hR 6V . @ R ,hR ,hR x,hR ,hR (,hR 2 @ @ 3 d B p,hR @ 6V pB ,hR ,hR ,hR @ B ,hR ,hR ,hR @ Pd B ,hR R ,hR @ @ A-hR @ A-hR 6V ,hR ,hR @ R `YnR @ d B ,hR p,hR ,hR 0,hR @,hR ,hR @ 6V @ B X,hR p,hR C 6 VnR 2hR P*hR ا+hR `,hR @ @+hR @ 6V B ,hR R ,hR A @ ,hR ,hR ,hR 8,hR @ R 0B-hR @ R B ,hR ,hR 0 ]nR ,hR ,hR ,hR @ B 8,hR P,hR (,hR `,hR ,hR ,hR @]nR @ R XB-hR @ 1 *hR @ o *hR exit; } /** * Activates an addon. * * @param string $addon_slug The addon to activate. * * @return array The output of the activation. */ public function activate_addon( $addon_slug ) { $output = []; try { $this->addon_activate_action->activate_addon( $addon_slug ); /* Translators: %s expands to the name of the addon. */ $output[] = \__( 'Addon activated.', 'wordpress-seo' ); } catch ( User_Cannot_Activate_Plugins_Exception $exception ) { $output[] = \__( 'You are not allowed to activate plugins.', 'wordpress-seo' ); } catch ( Addon_Activation_Error_Exception $exception ) { $output[] = \sprintf( /* Translators:%s expands to the error message. */ \__( 'Addon activation failed because of an error: %s.', 'wordpress-seo' ), $exception->getMessage() ); } return $output; } /** * Installs an addon. * * @param string $addon_slug The slug of the addon to install. * @param string $addon_download The download URL of the addon. * * @return array The installation success state and the output of the installation. */ public function install_addon( $addon_slug, $addon_download ) { $installed = false; $output = []; try { $installed = $this->addon_install_action->install_addon( $addon_slug, $addon_download ); } catch ( Addon_Already_Installed_Exception $exception ) { /* Translators: %s expands to the name of the addon. */ $output[] = \__( 'Addon installed.', 'wordpress-seo' ); $installed = true; } catch ( User_Cannot_Install_Plugins_Exception $exception ) { $output[] = \__( 'You are not allowed to install plugins.', 'wordpress-seo' ); } catch ( Addon_Installation_Error_Exception $exception ) { $output[] = \sprintf( /* Translators: %s expands to the error message. */ \__( 'Addon installation failed because of an error: %s.', 'wordpress-seo' ), $exception->getMessage() ); } return [ $installed, $output ]; } }