Changeset 41598 for trunk/src/wp-admin/includes/options.php
- Timestamp:
- 09/26/2017 08:23:07 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/options.php
r40897 r41598 92 92 * @since 3.5.0 93 93 */ 94 function options_permalink_add_js() {95 ?>96 <script type="text/javascript">97 jQuery(document).ready(function() {98 jQuery('.permalink-structure input:radio').change(function() {99 if ( 'custom' == this.value )100 return;101 jQuery('#permalink_structure').val( this.value );102 });103 jQuery( '#permalink_structure' ).on( 'click input', function() {104 jQuery( '#custom_selection' ).prop( 'checked', true );105 });106 });107 </script>108 <?php109 }110 111 /**112 * Display JavaScript on the page.113 *114 * @since 3.5.0115 */116 94 function options_reading_add_js() { 117 95 ?>
Note: See TracChangeset
for help on using the changeset viewer.