Skip to content

Commit

Permalink
Using already assigned $button_url var in IF statement
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign authored Jul 12, 2019
1 parent 510c956 commit e064cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ public function json() {
$button_url = $this->button_url;

// Fall back to the `Theme URI` defined in `style.css`.
if ( ! $this->button_url && $theme->get( 'ThemeURI' ) ) {
if ( ! $button_url && $theme->get( 'ThemeURI' ) ) {

$button_url = $theme->get( 'ThemeURI' );

// Fall back to the `Author URI` defined in `style.css`.
} elseif ( ! $this->button_url && $theme->get( 'AuthorURI' ) ) {
} elseif ( ! $button_url && $theme->get( 'AuthorURI' ) ) {

$button_url = $theme->get( 'AuthorURI' );
}
Expand Down

0 comments on commit e064cad

Please sign in to comment.