Changeset 3295481
- Timestamp:
- 05/18/2025 12:23:59 AM (11 months ago)
- Location:
- sapientseo
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.26 (copied) (copied from sapientseo/trunk)
-
tags/1.0.26/inc/api/posts.php (modified) (2 diffs)
-
tags/1.0.26/readme.txt (modified) (1 diff)
-
tags/1.0.26/sapientseo.php (modified) (1 diff)
-
trunk/inc/api/posts.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/sapientseo.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sapientseo/tags/1.0.26/inc/api/posts.php
r3295473 r3295481 282 282 $fields = acf_get_fields($group['key']); 283 283 foreach ($fields as $field) { 284 $acf[$field['name']] = get_field($field['name'], $post_id) ?? ''; 284 $value = get_field($field['name'], $post_id); 285 286 if ($field['type'] === 'image' && is_numeric($value)) { 287 $acf[$field['name']] = [ 288 'id' => $value, 289 'url' => wp_get_attachment_url($value), 290 'alt' => get_post_meta($value, '_wp_attachment_image_alt', true) ?: '', 291 ]; 292 } else { 293 $acf[$field['name']] = $value ?? ''; 294 } 285 295 } 286 296 } … … 314 324 'categories' => $categories, 315 325 'tags' => $tags, 316 'featured_image' => get_the_post_thumbnail_url($post_id, 'full') ?? '', 326 'featured_image' => has_post_thumbnail($post_id) ? [ 327 'id' => get_post_thumbnail_id($post_id), 328 'url' => get_the_post_thumbnail_url($post_id, 'full'), 329 ] : null, 317 330 ]); 318 331 } -
sapientseo/tags/1.0.26/readme.txt
r3295473 r3295481 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.4 6 Stable tag: 1.0.2 56 Stable tag: 1.0.26 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
sapientseo/tags/1.0.26/sapientseo.php
r3295473 r3295481 3 3 * Plugin Name: SapientSEO 4 4 * Description: Connect your WordPress site to SapientSEO using secure custom REST API endpoints. 5 * Version: 1.0.2 55 * Version: 1.0.26 6 6 * Author: SapientSEO 7 7 * Plugin URI: https://sapientseo.ai -
sapientseo/trunk/inc/api/posts.php
r3295473 r3295481 282 282 $fields = acf_get_fields($group['key']); 283 283 foreach ($fields as $field) { 284 $acf[$field['name']] = get_field($field['name'], $post_id) ?? ''; 284 $value = get_field($field['name'], $post_id); 285 286 if ($field['type'] === 'image' && is_numeric($value)) { 287 $acf[$field['name']] = [ 288 'id' => $value, 289 'url' => wp_get_attachment_url($value), 290 'alt' => get_post_meta($value, '_wp_attachment_image_alt', true) ?: '', 291 ]; 292 } else { 293 $acf[$field['name']] = $value ?? ''; 294 } 285 295 } 286 296 } … … 314 324 'categories' => $categories, 315 325 'tags' => $tags, 316 'featured_image' => get_the_post_thumbnail_url($post_id, 'full') ?? '', 326 'featured_image' => has_post_thumbnail($post_id) ? [ 327 'id' => get_post_thumbnail_id($post_id), 328 'url' => get_the_post_thumbnail_url($post_id, 'full'), 329 ] : null, 317 330 ]); 318 331 } -
sapientseo/trunk/readme.txt
r3295473 r3295481 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.4 6 Stable tag: 1.0.2 56 Stable tag: 1.0.26 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
sapientseo/trunk/sapientseo.php
r3295473 r3295481 3 3 * Plugin Name: SapientSEO 4 4 * Description: Connect your WordPress site to SapientSEO using secure custom REST API endpoints. 5 * Version: 1.0.2 55 * Version: 1.0.26 6 6 * Author: SapientSEO 7 7 * Plugin URI: https://sapientseo.ai
Note: See TracChangeset
for help on using the changeset viewer.