Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
fix host
Browse files Browse the repository at this point in the history
  • Loading branch information
Luismi Sánchez committed Jun 1, 2021
1 parent 823197e commit 581a13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/WP_Unsplash_Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct() {

add_action( 'admin_menu', array( $this, 'wp_unsplash_add_admin_menu' ) );
add_action( 'admin_init', array( $this, 'wp_unsplash_init_settings' ) );
$this->host = $_SERVER['HTTP_HOST'];
$this->host = $_SERVER['SERVER_NAME'];
$this->settings = get_option( 'wp_unsplash_settings' );
$number = $this->settings['number_photos'];
if (!$this->settings['number_photos']) {
Expand Down

0 comments on commit 581a13f

Please sign in to comment.