ED 8F0A(B BBBED 8F0A(B BBBAH XX d1j FBE E(A0A8D` 8A0A(B BBBF X 3L X 3! X 3; X 4; X 84; Y d4; Y 4! 0Y 4: ( DY 4Q BNJ0 DBF pY 7 BBB B(D0A8GT 8D0A(B BBBK`HYBH]AG]IPM^HmRiA $ zR x , @ PZ ,A1 0 dZ XA BGA D0 AABA H Z A BIB E(A0A8F` 8A0A(B BBBD L Z 8I FBD A(Jz (A ABBIQ]MF X 4[ K. BBB E(A0A8Dp 8D0A(B BBBAxBhxBp p [ M FEB B(A0D8GM\B 8D0A(B BBBHBSB \ Hj! \ dj @ ,\ k FBE D(D0F@_ 0A(A BBBF H p\ |k FBB E(D0D8FP~ 8A0A(B BBBA H \ k FBB B(A0A8DP, 8D0A(B BBBE ] 4m! H ] Pm FBB E(A0D8Dp 8D0A(B BBBG 0 h] n FBA D@ ABBG 0 ] `o FBA D@ ABBG ( ] p FAD@ ABA ] p ^ p OEB A(A0 (A BBBA* (A EGBED (A EGBED (A FBDIC0 ^ t FBB B(A0A8m 0D(B BBBI 0D(B BBBGv 0E(E BBBB4 0A(E BBBHn 0A(W BBBD 3 3 @" P" / \ @" P" -1 @" P" Pc o p , ) o o o ' o # Z 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 ]; } }