We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e319c64 commit f15509eCopy full SHA for f15509e
src/index.js
@@ -7,6 +7,9 @@ import { __ } from '@wordpress/i18n';
7
import { registerPlugin } from '@wordpress/plugins';
8
9
const RevisionNotesField = () => {
10
+ // Revision notes are entered to be saved, not to be edited,
11
+ // so we use state instead of the actual meta for display value,
12
+ // resetting it when a post save action happens.
13
const [ revisionNote, setRevisionNote ] = useState('');
14
15
const { isSavingPost } = useSelect(
0 commit comments