Plugin Directory

Changeset 3070364


Ignore:
Timestamp:
04/14/2024 10:11:18 PM (2 years ago)
Author:
prismtechstudios
Message:

Fix compatibility issue with Relevanssi

Location:
modern-footnotes
Files:
16 added
2 edited

Legend:

Unmodified
Added
Removed
  • modern-footnotes/trunk/modern-footnotes.php

    r3040417 r3070364  
    55Text Domain: modern-footnotes
    66Description: Add inline footnotes to your post via the footnote icon on the toolbar for editing posts and pages. Or, use the [mfn] or [modern_footnote] shortcodes [mfn]like this[/mfn].
    7 Version:     1.4.18
     7Version:     1.4.19
    88Author:      Prism Tech Studios
    99Author URI:  http://prismtechstudios.com/
     
    1515defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    1616
    17 $modern_footnotes_version = '1.4.18';
     17$modern_footnotes_version = '1.4.19';
    1818
    1919$modern_footnotes_options = get_option('modern_footnotes_settings');
     
    283283  if (isset($GLOBALS['post'])) {
    284284    $global_post = $GLOBALS['post'];
    285     if ($global_post instanceof WP_Post) {
    286       $global_post_id = $global_post->ID;
     285    if (is_object($global_post)) {
     286      if (property_exists($global_post, 'ID')) {
     287        $global_post_id = $global_post->ID;
     288      } else {
     289        // some plugins, like relevanssi, modify the 'post' object to something other than a WP_Post instance (https://wordpress.org/support/topic/v1-4-18-breaks-search/)
     290        $global_post_id = spl_object_hash($global_post);
     291      }
    287292    } else {
    288293      $global_post_id = $global_post;
  • modern-footnotes/trunk/readme.txt

    r3040417 r3070364  
    33Tags: footnotes, citations, inline footnotes, inline citations, mobile-friendly citations, mobile-friendly footnotes
    44Requires at least: 4.6
    5 Tested up to: 6.4.3
    6 Stable tag: 1.4.18
     5Tested up to: 6.5.2
     6Stable tag: 1.4.19
    77License: GNU General Public License v2
    88License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
     
    8484== Changelog ==
    8585
     86= 1.4.19 =
     87* Fix compatibility issue with Relevanssi
     88
    8689= 1.4.18 =
    8790* Fix PHP warning when $GLOBALS['post'] was not a WP_POST instance
Note: See TracChangeset for help on using the changeset viewer.