Changeset 3091615
- Timestamp:
- 05/23/2024 02:56:30 PM (23 months ago)
- Location:
- skyword-publishing-api/tags/1.1.2
- Files:
-
- 2 edited
-
php/routes/class-skyword-posts.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
skyword-publishing-api/tags/1.1.2/php/routes/class-skyword-posts.php
r3091546 r3091615 398 398 $authorTerm = $coauthors_plus->update_author_term( $author ); 399 399 $newPost['post_author'] = (int)$data['author']; 400 } 401 402 // If an ID is set on newPost it will update instead of insert 403 $postId = wp_insert_post( $newPost ); 404 405 if ( null !== $data['author'] && null !== $coauthors_plus ) { 400 406 if ( 'post' === $postType ) { 401 407 wp_set_post_terms( $postId, $authorTerm->slug, $coauthors_plus->coauthor_taxonomy, true ); … … 405 411 } 406 412 407 // If an ID is set on newPost it will update instead of insert408 $postId = wp_insert_post( $newPost );409 413 wp_set_post_tags( $postId, $tags ); 410 414 -
skyword-publishing-api/tags/1.1.2/readme.txt
r3090934 r3091615 25 25 * Accept an author ID for images 26 26 * Alter image MIME types for Yoast 27 * General fixes for author attribution 27 28 28 29 = 1.1.1 =
Note: See TracChangeset
for help on using the changeset viewer.