Changeset 12497
- Timestamp:
- 03/27/2023 06:53:21 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-notice.php
r12492 r12497 61 61 $( '#author-notice-texteditable' ).on( 'input change', function() { 62 62 // Don't allow deleting the <p> tag. 63 if ( ! $( this ).text() ) { 64 $( this ).html('<p></p>') 63 if ( ! $( this ).children( 'p,div,ul,ol,pre,code' ).length ) { 64 var text = $(this).html(); 65 $( this ).html('<p/>').find('p').html(text); 65 66 } 66 67
Note: See TracChangeset
for help on using the changeset viewer.