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

Commit

Permalink
Fix PHP Notice
Browse files Browse the repository at this point in the history
PHP Notice:  Undefined variable: url in includes/class-updater.php on line 123

See pdclark#37
  • Loading branch information
thejamescollins committed Jan 20, 2016
1 parent 90d7799 commit 0f4d60d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/class-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public static function updates_this_plugin( $plugin ) {
*/
public static function parse_plugin_uri( $plugin ) {

$url = '';

if ( !empty( $plugin['Git URI'] ) ) {
$url = parse_url( $plugin['Git URI'] );
}elseif ( apply_filters( 'gpu_use_plugin_uri_header', false ) ) {
Expand Down

0 comments on commit 0f4d60d

Please sign in to comment.