Dependency based script loading

This commit is contained in:
Tom Slominski
2015-03-08 16:04:10 +00:00
parent ceef09f36b
commit 1ebfd49874
4 changed files with 11 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ $title = isset( $_REQUEST['title'] ) ? yourls_sanitize_title( $_REQUEST['title
<?php
if ( !empty(ISQ::$recaptcha['sitekey']) && !empty(ISQ::$recaptcha['secret']) ) {
$dependencies[] = 'reCAPTCHA';
?>
<div class="form-item recaptcha-container">
<p><label class="primary" title=""><?php yourls_e( 'Verification', 'isq_translation'); ?></label></p>