Skip to content

Commit

Permalink
Merge pull request YOURLS#2452 from adigitalife/patch-1
Browse files Browse the repository at this point in the history
Update yourls_add_new_link function
  • Loading branch information
ozh authored Oct 26, 2018
2 parents e3475da + 7f32924 commit 1cfe955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function yourls_add_new_link( $url, $keyword = '', $title = '' ) {
$return['shorturl'] = YOURLS_SITE .'/'. $url_exists->keyword;
}

yourls_do_action( 'post_add_new_link', $url, $keyword, $title );
yourls_do_action( 'post_add_new_link', $url, $keyword, $title, $return );

$return['statusCode'] = 200; // regardless of result, this is still a valid request
return yourls_apply_filter( 'add_new_link', $return, $url, $keyword, $title );
Expand Down

0 comments on commit 1cfe955

Please sign in to comment.