Permalink
Browse files

Merge pull request #2452 from adigitalife/patch-1

Update yourls_add_new_link function
  • Loading branch information...
ozh committed Oct 26, 2018
2 parents e3475da + 7f32924 commit 1cfe9554e932e638d63781e271633fae0486af37
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/functions.php
View
@@ -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 );

0 comments on commit 1cfe955

Please sign in to comment.