Plugin Directory

Changeset 2262550


Ignore:
Timestamp:
03/17/2020 02:50:08 PM (6 years ago)
Author:
jtroynousky
Message:

v1.2.1 -- Prevent null values being set in the OpenCalais global.

Location:
open-calais
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • open-calais/trunk/open-calais.php

    r2232993 r2262550  
    55 * Plugin URI:  https://github.com/wpcomvip/metro/
    66 * Description: Use Open Calais to get suggested tags for your article.
    7  * Version:     1.2.0
     7 * Version:     1.2.1
    88 * Author:      Metro.co.uk
    99 * Author URI:  https://github.com/wpcomvip/metro/graphs/contributors
     
    576576
    577577                    // If set to only match existing tags, query those tags first and filter them.
    578                     if ( (bool) get_option( 'open_calais_show_existing' ) === true ) {
     578                    if ( (bool) get_option( 'open_calais_show_existing' ) === true && ! empty( $names )) {
    579579
    580580                        // Query terms by names
     
    588588                        foreach ( $terms as $term ) {
    589589                            $key = array_search( strtolower( $term->name ), $names, true );
    590                             if ( isset( $key ) ) {
     590                            if ( isset( $key ) && $key !== false ) {
    591591                                $filtered_tags[] = $tags[ $key ];
    592592                            }
  • open-calais/trunk/package.json

    r2232993 r2262550  
    11{
    22  "name": "open-calais",
    3   "version": "1.2.0",
     3  "version": "1.2.1",
    44  "description": "Block editor integration for Open Calais",
    55  "author": "",
Note: See TracChangeset for help on using the changeset viewer.