Changeset 2913286
- Timestamp:
- 05/17/2023 12:34:03 AM (3 years ago)
- Location:
- restful-syndication
- Files:
-
- 2 edited
- 3 copied
-
tags/1.4.1 (copied) (copied from restful-syndication/trunk)
-
tags/1.4.1/index.php (copied) (copied from restful-syndication/trunk/index.php) (2 diffs)
-
tags/1.4.1/readme.txt (copied) (copied from restful-syndication/trunk/readme.txt) (3 diffs)
-
trunk/index.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
restful-syndication/tags/1.4.1/index.php
r2893200 r2913286 4 4 Plugin URI: https://mediarealm.com.au/ 5 5 Description: Import content from the Wordpress REST API on another Wordpress site 6 Version: 1.4. 06 Version: 1.4.1 7 7 Author: Media Realm 8 8 Author URI: https://www.mediarealm.com.au/ … … 675 675 } 676 676 677 if(!isset($post['yoast_meta']['yoast_wpseo_metadesc'])) { 678 $post['yoast_meta']['yoast_wpseo_metadesc'] = ""; 679 } 680 681 if(!isset($post['yoast_meta']['yoast_wpseo_canonical'])) { 682 $post['yoast_meta']['yoast_wpseo_canonical'] = $post['link']; 677 if(!isset($post['yoast_meta']['yoast_wpseo_metadesc']) || empty($post['yoast_meta']['yoast_wpseo_metadesc'])) { 678 if(isset($post['yoast_head_json']['description']) && !empty($post['yoast_head_json']['description'])) { 679 $post['yoast_meta']['yoast_wpseo_metadesc'] = $post['yoast_head_json']['description']; 680 } else { 681 $post['yoast_meta']['yoast_wpseo_metadesc'] = ""; 682 } 683 } 684 685 if(!isset($post['yoast_meta']['yoast_wpseo_canonical']) || empty($post['yoast_meta']['yoast_wpseo_canonical'])) { 686 if(isset($post['yoast_head_json']['canonical']) && !empty($post['yoast_head_json']['canonical'])) { 687 $post['yoast_meta']['yoast_wpseo_canonical'] = $post['yoast_head_json']['canonical']; 688 } else { 689 $post['yoast_meta']['yoast_wpseo_canonical'] = $post['link']; 690 } 683 691 } 684 692 -
restful-syndication/tags/1.4.1/readme.txt
r2893200 r2913286 3 3 Tags: syndication, rest, wp-rest 4 4 Requires at least: 5.9.5 5 Tested up to: 6. 1.15 Tested up to: 6.2 6 6 Requires PHP: 7.3.0 7 7 License: GPLv2 or later … … 39 39 No, so long as the master site has the Wordpress REST API enabled, then you're all good to go. 40 40 41 If you use Yoast, you can optionally install https://github.com/ChazUK/wp-api-yoast-meta to get canonical URLs and Meta Descriptions.41 If both the Master and Child sites use Yoast SEO, the Canonical URLs and Meta Descriptions of each post will also be imported. 42 42 43 43 = I'm having trouble connecting to a HTTPS Master Site, but HTTP works fine. = … … 59 59 == Changelog == 60 60 61 = 1.4.1 = 62 63 * Uses the native Yoast SEO REST fields, instead of fields supplied by a third party plugin 64 * Adds additional checks to see if Yoast fields are populated or empty 65 61 66 = 1.4.0 = 62 67 63 * Adds an option foradd a specific category to every incoming post68 * Adds an option to add a specific category to every incoming post 64 69 * Tracks syndicated media in a meta field, instead of relying on the filename. 65 70 -
restful-syndication/trunk/index.php
r2893200 r2913286 4 4 Plugin URI: https://mediarealm.com.au/ 5 5 Description: Import content from the Wordpress REST API on another Wordpress site 6 Version: 1.4. 06 Version: 1.4.1 7 7 Author: Media Realm 8 8 Author URI: https://www.mediarealm.com.au/ … … 675 675 } 676 676 677 if(!isset($post['yoast_meta']['yoast_wpseo_metadesc'])) { 678 $post['yoast_meta']['yoast_wpseo_metadesc'] = ""; 679 } 680 681 if(!isset($post['yoast_meta']['yoast_wpseo_canonical'])) { 682 $post['yoast_meta']['yoast_wpseo_canonical'] = $post['link']; 677 if(!isset($post['yoast_meta']['yoast_wpseo_metadesc']) || empty($post['yoast_meta']['yoast_wpseo_metadesc'])) { 678 if(isset($post['yoast_head_json']['description']) && !empty($post['yoast_head_json']['description'])) { 679 $post['yoast_meta']['yoast_wpseo_metadesc'] = $post['yoast_head_json']['description']; 680 } else { 681 $post['yoast_meta']['yoast_wpseo_metadesc'] = ""; 682 } 683 } 684 685 if(!isset($post['yoast_meta']['yoast_wpseo_canonical']) || empty($post['yoast_meta']['yoast_wpseo_canonical'])) { 686 if(isset($post['yoast_head_json']['canonical']) && !empty($post['yoast_head_json']['canonical'])) { 687 $post['yoast_meta']['yoast_wpseo_canonical'] = $post['yoast_head_json']['canonical']; 688 } else { 689 $post['yoast_meta']['yoast_wpseo_canonical'] = $post['link']; 690 } 683 691 } 684 692 -
restful-syndication/trunk/readme.txt
r2893200 r2913286 3 3 Tags: syndication, rest, wp-rest 4 4 Requires at least: 5.9.5 5 Tested up to: 6. 1.15 Tested up to: 6.2 6 6 Requires PHP: 7.3.0 7 7 License: GPLv2 or later … … 39 39 No, so long as the master site has the Wordpress REST API enabled, then you're all good to go. 40 40 41 If you use Yoast, you can optionally install https://github.com/ChazUK/wp-api-yoast-meta to get canonical URLs and Meta Descriptions.41 If both the Master and Child sites use Yoast SEO, the Canonical URLs and Meta Descriptions of each post will also be imported. 42 42 43 43 = I'm having trouble connecting to a HTTPS Master Site, but HTTP works fine. = … … 59 59 == Changelog == 60 60 61 = 1.4.1 = 62 63 * Uses the native Yoast SEO REST fields, instead of fields supplied by a third party plugin 64 * Adds additional checks to see if Yoast fields are populated or empty 65 61 66 = 1.4.0 = 62 67 63 * Adds an option foradd a specific category to every incoming post68 * Adds an option to add a specific category to every incoming post 64 69 * Tracks syndicated media in a meta field, instead of relying on the filename. 65 70
Note: See TracChangeset
for help on using the changeset viewer.