diff --git a/docs/files/class-kirki-installer-section.php b/docs/files/class-kirki-installer-section.php index 3a91dc8bc..8a03af8c3 100644 --- a/docs/files/class-kirki-installer-section.php +++ b/docs/files/class-kirki-installer-section.php @@ -177,7 +177,7 @@ protected function dismiss_button() { * @return string */ private function get_plugin_install_url() { - if ( $this->plugin_install_url ) { + if ( ! $this->plugin_install_url ) { // Get the plugin-installation URL. $this->plugin_install_url = add_query_arg( array( @@ -186,7 +186,7 @@ private function get_plugin_install_url() { ), self_admin_url( 'update.php' ) ); - $this->plugin_install_url = wp_nonce_url( $plugin_install_url, 'install-plugin_kirki' ); + $this->plugin_install_url = wp_nonce_url( $this->plugin_install_url, 'install-plugin_kirki' ); } return $this->plugin_install_url; }