]> CyberLeo.Net >> Repos - Github/YOURLS.git/commit
Update functions.php
authoradigitalife <aylwin.cal@gmail.com>
Fri, 26 Oct 2018 06:48:12 +0000 (09:48 +0300)
committerGitHub <noreply@github.com>
Fri, 26 Oct 2018 06:48:12 +0000 (09:48 +0300)
commit7f32924dac52f1488309415957f3fb3e2fa277c9
tree7854dbe06c0ef32f1c45b8970981e5606cb13fb9
parente3475da2c45eb963862bd0a17b86be8fe60f5252
Update functions.php

I added $return to post_add_new_link:

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

This makes it easier to add conditional actions.  For example, I might want to do certain actions depending on whether $return['status'] is 'success' or 'fail'.
includes/functions.php