Changeset 2831354
- Timestamp:
- 12/09/2022 08:12:58 PM (3 years ago)
- Location:
- open-calais
- Files:
-
- 84 added
- 4 edited
-
tags/1.2.5 (added)
-
tags/1.2.5/.git (added)
-
tags/1.2.5/.git/COMMIT_EDITMSG (added)
-
tags/1.2.5/.git/FETCH_HEAD (added)
-
tags/1.2.5/.git/HEAD (added)
-
tags/1.2.5/.git/ORIG_HEAD (added)
-
tags/1.2.5/.git/config (added)
-
tags/1.2.5/.git/description (added)
-
tags/1.2.5/.git/hooks (added)
-
tags/1.2.5/.git/hooks/applypatch-msg.sample (added)
-
tags/1.2.5/.git/hooks/commit-msg.sample (added)
-
tags/1.2.5/.git/hooks/fsmonitor-watchman.sample (added)
-
tags/1.2.5/.git/hooks/post-update.sample (added)
-
tags/1.2.5/.git/hooks/pre-applypatch.sample (added)
-
tags/1.2.5/.git/hooks/pre-commit.sample (added)
-
tags/1.2.5/.git/hooks/pre-merge-commit.sample (added)
-
tags/1.2.5/.git/hooks/pre-push.sample (added)
-
tags/1.2.5/.git/hooks/pre-rebase.sample (added)
-
tags/1.2.5/.git/hooks/pre-receive.sample (added)
-
tags/1.2.5/.git/hooks/prepare-commit-msg.sample (added)
-
tags/1.2.5/.git/hooks/push-to-checkout.sample (added)
-
tags/1.2.5/.git/hooks/update.sample (added)
-
tags/1.2.5/.git/index (added)
-
tags/1.2.5/.git/info (added)
-
tags/1.2.5/.git/info/exclude (added)
-
tags/1.2.5/.git/logs (added)
-
tags/1.2.5/.git/logs/HEAD (added)
-
tags/1.2.5/.git/logs/refs (added)
-
tags/1.2.5/.git/logs/refs/heads (added)
-
tags/1.2.5/.git/logs/refs/heads/master (added)
-
tags/1.2.5/.git/logs/refs/heads/php-warnings (added)
-
tags/1.2.5/.git/logs/refs/remotes (added)
-
tags/1.2.5/.git/logs/refs/remotes/origin (added)
-
tags/1.2.5/.git/logs/refs/remotes/origin/HEAD (added)
-
tags/1.2.5/.git/logs/refs/remotes/origin/master (added)
-
tags/1.2.5/.git/logs/refs/remotes/origin/php-warnings (added)
-
tags/1.2.5/.git/objects (added)
-
tags/1.2.5/.git/objects/2a (added)
-
tags/1.2.5/.git/objects/2a/9f741f3a0fd2e7c3cd7300b3724cd112a37396 (added)
-
tags/1.2.5/.git/objects/3b (added)
-
tags/1.2.5/.git/objects/3b/9219eec4cb02d0f0e0eca17084597ea2c6a86d (added)
-
tags/1.2.5/.git/objects/47 (added)
-
tags/1.2.5/.git/objects/47/55fb8d68e7dcedc6c41208196dbe153198d560 (added)
-
tags/1.2.5/.git/objects/76 (added)
-
tags/1.2.5/.git/objects/76/69a2a442621a6adada79a091c84cd481b3529d (added)
-
tags/1.2.5/.git/objects/86 (added)
-
tags/1.2.5/.git/objects/86/d40114f2357b6f10a1e6804f9fe3654e34a934 (added)
-
tags/1.2.5/.git/objects/b8 (added)
-
tags/1.2.5/.git/objects/b8/652eae6f98142154a276fb83df03cdab8d7b02 (added)
-
tags/1.2.5/.git/objects/c4 (added)
-
tags/1.2.5/.git/objects/c4/304a041b3dee5ff1f58f56ea3bfc3f3c97ca4d (added)
-
tags/1.2.5/.git/objects/info (added)
-
tags/1.2.5/.git/objects/pack (added)
-
tags/1.2.5/.git/objects/pack/pack-288904449f8c3ad1e3a26d65d958e7fdf48d7964.idx (added)
-
tags/1.2.5/.git/objects/pack/pack-288904449f8c3ad1e3a26d65d958e7fdf48d7964.pack (added)
-
tags/1.2.5/.git/packed-refs (added)
-
tags/1.2.5/.git/refs (added)
-
tags/1.2.5/.git/refs/heads (added)
-
tags/1.2.5/.git/refs/heads/master (added)
-
tags/1.2.5/.git/refs/heads/php-warnings (added)
-
tags/1.2.5/.git/refs/remotes (added)
-
tags/1.2.5/.git/refs/remotes/origin (added)
-
tags/1.2.5/.git/refs/remotes/origin/HEAD (added)
-
tags/1.2.5/.git/refs/remotes/origin/master (added)
-
tags/1.2.5/.git/refs/remotes/origin/php-warnings (added)
-
tags/1.2.5/.git/refs/tags (added)
-
tags/1.2.5/.gitignore (added)
-
tags/1.2.5/README.md (added)
-
tags/1.2.5/assets (added)
-
tags/1.2.5/assets/css (added)
-
tags/1.2.5/assets/css/block-editor-styles.css (added)
-
tags/1.2.5/assets/css/classic-editor-styles.css (added)
-
tags/1.2.5/assets/js (added)
-
tags/1.2.5/assets/js/block-editor.asset.php (added)
-
tags/1.2.5/assets/js/block-editor.deps.json (added)
-
tags/1.2.5/assets/js/block-editor.js (added)
-
tags/1.2.5/composer.json (added)
-
tags/1.2.5/open-calais.php (added)
-
tags/1.2.5/package-lock.json (added)
-
tags/1.2.5/package.json (added)
-
tags/1.2.5/readme.txt (added)
-
tags/1.2.5/src (added)
-
tags/1.2.5/src/block-editor-selector.js (added)
-
tags/1.2.5/src/index.js (added)
-
trunk/composer.json (modified) (1 diff)
-
trunk/open-calais.php (modified) (5 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
open-calais/trunk/composer.json
r2784853 r2831354 5 5 "type" : "wordpress-plugin", 6 6 "license" : "GPL-2.0+", 7 "version" : "1.2. 4",7 "version" : "1.2.5", 8 8 "support" : { 9 9 "forum": "https://wordpress.org/support/plugin/open-calais" -
open-calais/trunk/open-calais.php
r2784872 r2831354 5 5 * Plugin URI: https://github.com/wpcomvip/metro/ 6 6 * Description: Use Open Calais to get suggested tags for your article. 7 * Version: 1.2. 47 * Version: 1.2.5 8 8 * Author: Metro.co.uk 9 9 * Author URI: https://github.com/wpcomvip/metro/graphs/contributors … … 530 530 531 531 // Skip certain typeGroups 532 if ( i n_array( $object->_typeGroup, [ 'topics' ], true ) ) {532 if ( isset( $object->_typeGroup ) && in_array( $object->_typeGroup, [ 'topics' ], true ) ) { 533 533 unset( $objects[ $k ] ); 534 534 continue; … … 536 536 537 537 // Skip certain types 538 if ( i n_array( $object->_type, [ 'City', 'Country', 'Region', 'ProvinceOrState' ], true ) ) {538 if ( isset( $object->_type ) && in_array( $object->_type, [ 'City', 'Country', 'Region', 'ProvinceOrState' ], true ) ) { 539 539 unset( $objects[ $k ] ); 540 540 continue; … … 542 542 543 543 // Skip certain names 544 if ( i n_array( $object->name, [ 'United States' ], true ) ) {544 if ( isset( $object->name ) && in_array( $object->name, [ 'United States' ], true ) ) { 545 545 unset( $objects[ $k ] ); 546 546 continue; … … 551 551 552 552 // Skip low scores 553 if ( $data['score'] <= 0.25 ) {553 if ( isset( $data['score'] ) && $data['score'] <= 0.25 ) { 554 554 continue; 555 555 } -
open-calais/trunk/package.json
r2784853 r2831354 1 1 { 2 2 "name": "open-calais", 3 "version": "1.2. 4",3 "version": "1.2.5", 4 4 "description": "Block editor integration for Open Calais", 5 5 "author": "", -
open-calais/trunk/readme.txt
r2784853 r2831354 4 4 Requires at least: 4.6 5 5 Tested up to: 5.3.2 6 Stable tag: 1.2. 46 Stable tag: 1.2.5 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.