Changeset 1225646
- Timestamp:
- 08/19/2015 10:05:33 PM (11 years ago)
- File:
-
- 1 edited
-
storyform/trunk/class-storyform-editor-page.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
storyform/trunk/class-storyform-editor-page.php
r1225531 r1225646 113 113 // If published, grab the latest revision as there may be some unpublished changes 114 114 if( $post['post_status'] === 'publish' ){ 115 $revision = array_values( wp_get_post_revisions( $id ) )[0]->to_array(); 115 $array = array_values( wp_get_post_revisions( $id ) ); 116 $revision = $array[0]->to_array(); 116 117 $post['post_content'] = $revision['post_content']; 117 118 $post['post_title'] = $revision['post_title']; … … 234 235 235 236 if( $post['post_status'] === 'publish' && count( $revisions ) > 0 ){ 236 $revision = array_values( $revisions )[0]->to_array(); 237 $array = array_values( $revisions ); 238 $revision = $array[0]->to_array(); 237 239 $post = array( 238 240 'ID' => $id,
Note: See TracChangeset
for help on using the changeset viewer.