Changeset 34022 for trunk/src/wp-admin/options-permalink.php
- Timestamp:
- 09/10/2015 09:44:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-permalink.php
r33818 r34022 47 47 ); 48 48 49 /**50 * Display JavaScript on the page.51 *52 * @since 3.5.053 */54 function options_permalink_add_js() {55 ?>56 <script type="text/javascript">57 jQuery(document).ready(function() {58 jQuery('.permalink-structure input:radio').change(function() {59 if ( 'custom' == this.value )60 return;61 jQuery('#permalink_structure').val( this.value );62 });63 jQuery('#permalink_structure').focus(function() {64 jQuery("#custom_selection").attr('checked', 'checked');65 });66 });67 </script>68 <?php69 }70 49 add_filter('admin_head', 'options_permalink_add_js'); 71 50
Note: See TracChangeset
for help on using the changeset viewer.