Plugin Directory

Changeset 2641995


Ignore:
Timestamp:
12/09/2021 04:44:27 PM (4 years ago)
Author:
milanmk
Message:

Release 1.17.11

Location:
schema-app-structured-data-for-schemaorg
Files:
27 added
3 edited

Legend:

Unmodified
Added
Removed
  • schema-app-structured-data-for-schemaorg/trunk/hunch-schema.php

    r2631473 r2641995  
    55 * Plugin URI: http://www.schemaapp.com
    66 * Description: This plugin adds http://schema.org structured data to your website
    7  * Version: 1.17.10
     7 * Version: 1.17.11
    88 * Author: Hunch Manifest
    99 * Author URI: https://www.hunchmanifest.com
  • schema-app-structured-data-for-schemaorg/trunk/lib/SchemaServer.php

    r2631473 r2641995  
    139139            }
    140140
     141            if ( count( $schema_data ) == 1 ) {
     142                $schema_data = reset( $schema_data );
     143            }
     144
     145            $schema_json = empty( $schema_data ) ? '' : wp_json_encode( $schema_data );
     146
    141147            // Expiry is 7 days for empty schema data or else 1 day
    142             $transient_expiry = empty( $schema_data ) ? 604800 : 86400;
    143             $schema_data = ( count( $schema_data ) == 1 ) ? reset( $schema_data ) : $schema_data;
    144 
     148            $transient_expiry = empty( $schema_json ) ? 604800 : 86400;
    145149            // First delete then set; set method only updates expiry time if transient already exists
    146150            delete_transient( $this->transient_id );
    147             set_transient( $this->transient_id, wp_json_encode( $schema_data ), $transient_expiry );
    148 
    149             return empty( $schema_data ) ? '' : wp_json_encode( $schema_data );
     151            set_transient( $this->transient_id, $schema_json, $transient_expiry );
     152
     153            return $schema_json;
    150154        }
    151155
  • schema-app-structured-data-for-schemaorg/trunk/readme.txt

    r2631473 r2641995  
    99Requires PHP: 5.4
    1010Tested up to: 5.8
    11 Stable tag: 1.17.10
     11Stable tag: 1.17.11
    1212License: GPL2
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8080== Changelog ==
    8181
     82= 1.17.11 =
     83Release Date - 9 December 2021
     84
     85- Fix, Markup issue due to merging of Editor and Highlighter markup
     86
    8287= 1.17.10 =
    8388Release Date - 16 November 2021
     
    534539== Upgrade Notice ==
    535540
    536 = 1.17.10 =
    537 - Updated YouTube URL matching, Merging of Editor and Highlighter markup
     541= 1.17.11 =
     542- Fix markup issue due to merging of Editor and Highlighter markup
Note: See TracChangeset for help on using the changeset viewer.