Changeset 2575898
- Timestamp:
- 08/01/2021 04:57:16 AM (5 years ago)
- Location:
- schema-app-structured-data-for-schemaorg
- Files:
-
- 27 added
- 4 edited
-
tags/1.17.7 (added)
-
tags/1.17.7/css (added)
-
tags/1.17.7/css/schemaStyle.css (added)
-
tags/1.17.7/data (added)
-
tags/1.17.7/data/tree.jsonld (added)
-
tags/1.17.7/hunch-schema.php (added)
-
tags/1.17.7/js (added)
-
tags/1.17.7/js/schema.js (added)
-
tags/1.17.7/js/schemaAdmin.js (added)
-
tags/1.17.7/js/schemaEditor.js (added)
-
tags/1.17.7/lib (added)
-
tags/1.17.7/lib/HunchSchema (added)
-
tags/1.17.7/lib/HunchSchema/Author.php (added)
-
tags/1.17.7/lib/HunchSchema/Blog.php (added)
-
tags/1.17.7/lib/HunchSchema/Category.php (added)
-
tags/1.17.7/lib/HunchSchema/Page.php (added)
-
tags/1.17.7/lib/HunchSchema/Post.php (added)
-
tags/1.17.7/lib/HunchSchema/Search.php (added)
-
tags/1.17.7/lib/HunchSchema/Tag.php (added)
-
tags/1.17.7/lib/HunchSchema/Thing.php (added)
-
tags/1.17.7/lib/SchemaCron.php (added)
-
tags/1.17.7/lib/SchemaEditor.php (added)
-
tags/1.17.7/lib/SchemaFront.php (added)
-
tags/1.17.7/lib/SchemaServer.php (added)
-
tags/1.17.7/lib/SchemaSettings.php (added)
-
tags/1.17.7/lib/classmap.php (added)
-
tags/1.17.7/readme.txt (added)
-
trunk/hunch-schema.php (modified) (1 diff)
-
trunk/lib/SchemaFront.php (modified) (3 diffs)
-
trunk/lib/SchemaSettings.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
schema-app-structured-data-for-schemaorg/trunk/hunch-schema.php
r2560888 r2575898 5 5 * Plugin URI: http://www.schemaapp.com 6 6 * Description: This plugin adds http://schema.org structured data to your website 7 * Version: 1.17. 67 * Version: 1.17.7 8 8 * Author: Hunch Manifest 9 9 * Author URI: https://www.hunchmanifest.com -
schema-app-structured-data-for-schemaorg/trunk/lib/SchemaFront.php
r2471303 r2575898 22 22 23 23 if ( ! empty( $this->Settings['SchemaLinkedOpenData'] ) ) { 24 add_action( 'send_headers', array( $this, 'linked_open_data_headers' ) ); 24 25 add_action( 'wp', array( $this, 'linked_open_data_output' ), 10, 1 ); 25 26 add_action( 'wp_head', array( $this, 'linked_open_data_link_tag' ) ); … … 117 118 } 118 119 120 // Check for Account Id 121 $account_id = trim( str_replace( array( 'http://schemaapp.com/db/', 'https://schemaapp.com/db/' ), '', $this->Settings['graph_uri'] ), '/' ); 122 $request_account_id = trim( str_ireplace( array( 'https://data.schemaapp.com/', $request_data->{"base64encode"} ), '', $request_data->{"url"} ), '/' ); 123 124 if ( $request_account_id != $account_id ) { 125 if ( ! empty( $this->Settings['Debug'] ) ) { 126 $this->create_log( $rest_api_cache_log_file, sprintf( 'Result: Invalid url property, Account Id does not match. url: %s Account Id: %s', $request_data->{"url"}, $account_id ) ); 127 } 128 129 return new WP_REST_Response( array( 'status' => 'error', 'message' => 'Invalid url property, Account Id does not match' ), 401 ); 130 } 131 119 132 // @graph is empty for EntityDeleted 120 133 if ( empty( $request_data->{"@type"} ) || empty( $request_data->{"@id"} ) || ( $request_data->{"@type"} != 'EntityDeleted' && empty( $request_data->{"@graph"} ) ) ) { … … 327 340 328 341 exit; 342 } 343 } 344 345 346 public function linked_open_data_headers( $wp ) { 347 if ( ! empty( $_GET['format'] ) && $_GET['format'] == 'application/ld json' ) { 348 header( 'Content-Type: application/json; charset=UTF-8', true ); 329 349 } 330 350 } -
schema-app-structured-data-for-schemaorg/trunk/lib/SchemaSettings.php
r2560888 r2575898 290 290 ); 291 291 add_settings_section( 292 'plugin_settings_advanced', // ID293 'Advanced Plugin Setup', // Title294 array( $this, 'print_section_plugin_advanced' ), // Callback295 'schema-app-setting' // Page296 );297 add_settings_section(298 292 'publisher_settings', // ID 299 293 'Publisher Settings', // Title … … 376 370 do_action( 'hunch_schema_settings_section', 'schema_option_name', 'schema-app-setting', 'schema' ); 377 371 372 add_settings_section( 373 'plugin_settings_advanced', // ID 374 'Advanced Plugin Setup', // Title 375 array( $this, 'print_section_plugin_advanced' ), // Callback 376 'schema-app-setting' // Page 377 ); 378 378 379 379 //// Schema App License Page -
schema-app-structured-data-for-schemaorg/trunk/readme.txt
r2565234 r2575898 8 8 Requires at least: 3.7 9 9 Requires PHP: 5.4 10 Tested up to: 5. 711 Stable tag: 1.17. 610 Tested up to: 5.8 11 Stable tag: 1.17.7 12 12 License: GPL2 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 80 80 == Changelog == 81 81 82 = 1.17.7 = 83 Release Date - 1 August 2021 84 85 - Fix, Added proper Content-Type header to Linked Open Data request 86 - Improve, Added Rest API Account Id validation 87 82 88 = 1.17.6 = 83 89 Release Date - 9 July 2021 … … 510 516 == Upgrade Notice == 511 517 512 = 1.17. 6=513 - Updated get permalink routine, Added static method for getting post content518 = 1.17.7 = 519 - Added proper Content-Type header to Linked Open Data request
Note: See TracChangeset
for help on using the changeset viewer.