Changeset 30597 for trunk/src/wp-admin/options-general.php
- Timestamp:
- 11/28/2014 08:11:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-general.php
r30335 r30597 31 31 //<![CDATA[ 32 32 jQuery(document).ready(function($){ 33 var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(); 33 var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(), 34 homeURL = ( <?php echo wp_json_encode( get_home_url() ); ?> || '' ).replace( /^(https?:\/\/)?(www\.)?/, '' ); 34 35 35 36 $( '#blogname' ).on( 'input', function() { 36 var title = $ ( this ).val();37 var title = $.trim( $( this ).val() ) || homeURL; 37 38 38 39 // Truncate to 40 characters.
Note: See TracChangeset
for help on using the changeset viewer.