Changeset 56018
- Timestamp:
- 06/24/2023 02:30:31 PM (15 months ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/lists.js
r52332 r56018 748 748 } ); 749 749 750 $element.on( 'click', ' a[data-wp-lists^="add:' + list.id + ':"], input[data-wp-lists^="add:' + list.id + ':"]', function() {750 $element.on( 'click', '[data-wp-lists^="add:' + list.id + ':"], input[data-wp-lists^="add:' + list.id + ':"]', function() { 751 751 return list.wpList.add( this ); 752 752 } ); -
trunk/src/wp-admin/css/edit.css
r54220 r56018 1069 1069 } 1070 1070 1071 #postcustom #postcustomstuff .add-custom-field { 1072 padding: 12px 8px 8px; 1073 } 1074 1071 1075 #side-sortables #postcustom #postcustomstuff .submit { 1072 1076 margin: 0; … … 1119 1123 } 1120 1124 1121 #postcustomstuff #newmetaleft a { 1125 #postcustomstuff #newmetaleft a, 1126 #postcustomstuff #newmeta-button { 1122 1127 display: inline-block; 1123 1128 margin: 0 8px 8px; -
trunk/src/wp-admin/includes/template.php
r55988 r56018 725 725 if ( $keys ) { 726 726 natcasesort( $keys ); 727 $meta_key_input_id = 'metakeyselect';728 } else {729 $meta_key_input_id = 'metakeyinput';730 727 } 731 728 ?> … … 734 731 <thead> 735 732 <tr> 736 <th class="left"><label for=" <?php echo $meta_key_input_id; ?>"><?php _ex( 'Name', 'meta name' ); ?></label></th>733 <th class="left"><label for="metakeyselect"><?php _ex( 'Name', 'meta name' ); ?></label></th> 737 734 <th><label for="metavalue"><?php _e( 'Value' ); ?></label></th> 738 735 </tr> … … 754 751 ?> 755 752 </select> 756 <input class="hid e-if-js" type="text" id="metakeyinput" name="metakeyinput" value="" />757 < a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;">753 <input class="hidden" type="text" id="metakeyinput" name="metakeyinput" value="" aria-label="<?php _e( 'New custom field name' ); ?>" /> 754 <button type="button" id="newmeta-button" class="button button-small hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggleClass('hidden');jQuery('#metakeyinput, #metakeyselect').filter(':visible').trigger('focus');"> 758 755 <span id="enternew"><?php _e( 'Enter new' ); ?></span> 759 <span id="cancelnew" class="hidden"><?php _e( 'Cancel' ); ?></span></ a>756 <span id="cancelnew" class="hidden"><?php _e( 'Cancel' ); ?></span></button> 760 757 <?php } else { ?> 761 758 <input type="text" id="metakeyinput" name="metakeyinput" value="" /> 762 759 <?php } ?> 763 760 </td> 764 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea></td> 761 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea> 762 <?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?> 763 </td> 765 764 </tr> 766 767 < tr><td colspan="2">768 <div class="submit ">765 </tbody> 766 </table> 767 <div class="submit add-custom-field"> 769 768 <?php 770 769 submit_button( … … 780 779 ?> 781 780 </div> 782 <?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>783 </td></tr>784 </tbody>785 </table>786 781 <?php 787 788 782 } 789 783
Note: See TracChangeset
for help on using the changeset viewer.