Changeset 3090934
- Timestamp:
- 05/22/2024 01:46:28 PM (23 months ago)
- Location:
- skyword-publishing-api/tags/1.1.2
- Files:
-
- 3 edited
- 2 copied
-
. (copied) (copied from skyword-publishing-api/tags/1.1.1)
-
php/routes/class-skyword-authors.php (copied) (copied from skyword-publishing-api/tags/1.1.1/php/routes/class-skyword-authors.php)
-
php/routes/class-skyword-images.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
skyword.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
skyword-publishing-api/tags/1.1.2/php/routes/class-skyword-images.php
r3079629 r3090934 164 164 $name = sanitize_file_name( $data['filename'] ); 165 165 $type = 'image/' . substr($data['filename'], strpos($data['filename'], '.') + 1); 166 // Yoast SEO plugin requires 'image/jpeg' and will not accept 'image/jpg' 167 if ( in_array( 'wordpress-seo/wp-seo.php', $activePlugins, true ) ) { 168 if ($type === 'image/jpg') { 169 $type = 'image/jpeg'; 170 } 171 } 166 172 $bits = base64_decode($data['file']); 167 173 $title = $name; … … 183 189 'guid' => $upload['url'] 184 190 ); 191 192 if ( null !== $data['author'] && is_numeric( trim( $data['author'] ) ) ) { 193 $attachment['post_author'] = (int)$data['author']; 194 } 195 185 196 186 197 $id = wp_insert_attachment( $attachment, $upload['file'], $postId ); -
skyword-publishing-api/tags/1.1.2/readme.txt
r3079629 r3090934 22 22 == Changelog == 23 23 24 = 1.1.2 = 25 * Accept an author ID for images 26 * Alter image MIME types for Yoast 27 24 28 = 1.1.1 = 25 29 * Friendly slug for Coauthors Plus plugin -
skyword-publishing-api/tags/1.1.2/skyword.php
r3079629 r3090934 3 3 Plugin Name: Skyword Publishing API 4 4 Description: Integration with the Skyword360 content publication platform. 5 Version: 1.1. 15 Version: 1.1.2 6 6 Author: Skyword, Inc. 7 7 Author URI: http://www.skyword.com … … 17 17 define( 'SKYWORD_REST_API_VERSION', "Skyword REST API plugin " . $plugin_version ); 18 18 if ( !defined('SKYWORD_VN') ) 19 define( 'SKYWORD_VN', "1.1 1" ); //This CANNOT have two decimal places.19 define( 'SKYWORD_VN', "1.12" ); //This CANNOT have two decimal places. 20 20 //.1.4 is NOT valid. 21 21
Note: See TracChangeset
for help on using the changeset viewer.