Changeset 7604
- Timestamp:
- 08/11/2018 10:53:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r7462 r7604 174 174 </p> 175 175 </form> 176 <?php 177 wp_enqueue_script( 'jquery' );178 wp_add_inline_script( 'jquery-migrate','176 177 <?php 178 $upload_script = ' 179 179 ( function ( $ ) { 180 180 var $label = $( "label.button" ), … … 187 187 .on( "focus", function() { $label.addClass( "focus" ); } ) 188 188 .on( "blur", function() { $label.removeClass( "focus" ); } ); 189 } ( window.jQuery ) );' ); 189 } ( window.jQuery ) );'; 190 191 if ( ! wp_script_is( 'jquery', 'done' ) ) { 192 wp_enqueue_script( 'jquery' ); 193 wp_add_inline_script( 'jquery-migrate', $upload_script ); 194 } else { 195 printf( '<script>%s</script>', $upload_script ); 196 } 197 ?> 190 198 191 endif; // ! $submitted_counts->total 192 193 else : ?> 199 <?php endif; // ! $submitted_counts->total ?> 200 201 <?php else : ?> 202 194 203 <p> 195 204 <?php
Note: See TracChangeset
for help on using the changeset viewer.