Skip to content

Commit

Permalink
fixes #1834
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Mar 17, 2018
1 parent 5b04091 commit 635122e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/files/class-kirki-installer-section.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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;
}
Expand Down

0 comments on commit 635122e

Please sign in to comment.