]> CyberLeo.Net >> Repos - Github/YOURLS.git/commit
Less if(function_exists())
authorozh <ozh@ozh.org>
Fri, 22 May 2015 20:07:13 +0000 (22:07 +0200)
committerozh <ozh@ozh.org>
Fri, 22 May 2015 20:07:13 +0000 (22:07 +0200)
commitd80d78849a987ab0eb7119d3d7b13e17a23acb21
tree6ec9879837131f6430ed13adee2e8b3cee90cf71
parentb5be1a92e974d4ebbd246c2123071d3aef0601b1
Less if(function_exists())

Because
- it hinders unit tests
- it makes code less readable
- it's easier to have compat functions and eventually deprecate them when no longer needed
includes/functions-compat.php
includes/functions-formatting.php