Plugin Directory

Changeset 3225179


Ignore:
Timestamp:
01/19/2025 10:09:41 PM (15 months ago)
Author:
topirank
Message:

Release version 1.0.3

Location:
topirank-integration
Files:
34 added
2 edited

Legend:

Unmodified
Added
Removed
  • topirank-integration/trunk/includes/update-content-and-seo.php

    r3220350 r3225179  
    218218  wp_reset_postdata();
    219219
    220   if ($thumbnail_id) {
    221     set_post_thumbnail($post_id, $thumbnail_id);
    222     $thumbnail_url = wp_get_attachment_url($thumbnail_id);
    223     WPSEO_Meta::set_value('opengraph-image', $thumbnail_url, $post_id);
    224   }
    225 
    226   if ($title) {
    227     WPSEO_Meta::set_value('opengraph-title', $title, $post_id);
    228   }
    229 
    230   if ($description) {
    231     WPSEO_Meta::set_value('opengraph-description', $description, $post_id);
     220  if (class_exists('WPSEO_Meta')) {
     221    if ($thumbnail_id) {
     222      set_post_thumbnail($post_id, $thumbnail_id);
     223      $thumbnail_url = wp_get_attachment_url($thumbnail_id);
     224      WPSEO_Meta::set_value('opengraph-image', $thumbnail_url, $post_id);
     225    }
     226
     227    if ($title) {
     228      WPSEO_Meta::set_value('opengraph-title', $title, $post_id);
     229    }
     230
     231    if ($description) {
     232      WPSEO_Meta::set_value('opengraph-description', $description, $post_id);
     233    }
    232234  }
    233235}
  • topirank-integration/trunk/readme.txt

    r3220350 r3225179  
    44Requires at least: 6.0
    55Tested up to: 6.7.1
    6 Stable tag: 1.0.2
    7 Requires PHP: 8.3
     6Stable tag: 1.0.3
     7Requires PHP: 7.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5858== Changelog ==
    5959
     60= 1.0.3 =
     61
     62* Optimized the archive processing speed for faster imports.
     63* Tested and verified compatibility with PHP versions 7.3 to 8.3.
     64
    6065= 1.0.2 =
    6166* Optimized the archive processing speed for faster imports.
Note: See TracChangeset for help on using the changeset viewer.