Changeset 2367347
- Timestamp:
- 08/23/2020 02:16:12 PM (6 years ago)
- Location:
- schema-app-structured-data-for-schemaorg
- Files:
-
- 26 added
- 3 edited
-
tags/1.16.2 (added)
-
tags/1.16.2/css (added)
-
tags/1.16.2/css/schemaStyle.css (added)
-
tags/1.16.2/data (added)
-
tags/1.16.2/data/tree.jsonld (added)
-
tags/1.16.2/hunch-schema.php (added)
-
tags/1.16.2/js (added)
-
tags/1.16.2/js/schema.js (added)
-
tags/1.16.2/js/schemaAdmin.js (added)
-
tags/1.16.2/js/schemaEditor.js (added)
-
tags/1.16.2/lib (added)
-
tags/1.16.2/lib/HunchSchema (added)
-
tags/1.16.2/lib/HunchSchema/Author.php (added)
-
tags/1.16.2/lib/HunchSchema/Blog.php (added)
-
tags/1.16.2/lib/HunchSchema/Category.php (added)
-
tags/1.16.2/lib/HunchSchema/Page.php (added)
-
tags/1.16.2/lib/HunchSchema/Post.php (added)
-
tags/1.16.2/lib/HunchSchema/Search.php (added)
-
tags/1.16.2/lib/HunchSchema/Tag.php (added)
-
tags/1.16.2/lib/HunchSchema/Thing.php (added)
-
tags/1.16.2/lib/SchemaEditor.php (added)
-
tags/1.16.2/lib/SchemaFront.php (added)
-
tags/1.16.2/lib/SchemaServer.php (added)
-
tags/1.16.2/lib/SchemaSettings.php (added)
-
tags/1.16.2/lib/classmap.php (added)
-
tags/1.16.2/readme.txt (added)
-
trunk/hunch-schema.php (modified) (1 diff)
-
trunk/lib/SchemaServer.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
schema-app-structured-data-for-schemaorg/trunk/hunch-schema.php
r2366035 r2367347 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.16. 17 * Version: 1.16.2 8 8 * Author: Hunch Manifest 9 9 * Author URI: https://www.hunchmanifest.com -
schema-app-structured-data-for-schemaorg/trunk/lib/SchemaServer.php
r2366035 r2367347 20 20 21 21 public function __construct($uri = "") { 22 $this->options = get_option('schema_option_name');22 $this->options = get_option( 'schema_option_name' ); 23 23 24 if (!empty($uri)) { 25 $this->resource = $uri; 26 } elseif (is_front_page() && is_home() || is_front_page()) { 27 $this->resource = home_url( '/' ); 28 } elseif (is_tax() || is_post_type_archive()) { 29 $this->resource = 'http' . 30 (null !== filter_input(INPUT_SERVER, 'HTTPS') ? 's' : '') . 31 '://' . 32 filter_input(INPUT_SERVER, 'HTTP_HOST') . 33 filter_input(INPUT_SERVER, 'REQUEST_URI'); 34 } else { 35 $this->resource = get_permalink(); 36 } 24 if ( ! empty( $uri ) ) { 25 $this->resource = $uri; 26 } elseif ( is_singular() ) { 27 $this->resource = get_permalink(); 28 } else { 29 $permalink_structure = get_option( 'permalink_structure' ); 30 31 // If pretty permalink then remove query string from URL 32 if ( $permalink_structure ) { 33 $request_uri = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ); 34 35 $this->resource = ( is_ssl() ? 'https' : 'http' ) . "://{$_SERVER['HTTP_HOST']}{$request_uri}"; 36 } else { 37 $this->resource = ( is_ssl() ? 'https' : 'http' ) . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; 38 } 39 } 37 40 } 38 41 -
schema-app-structured-data-for-schemaorg/trunk/readme.txt
r2366043 r2367347 9 9 Requires PHP: 5.4 10 10 Tested up to: 5.5 11 Stable tag: 1.16. 111 Stable tag: 1.16.2 12 12 License: GPL2 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 87 87 == Changelog == 88 88 89 = 1.16.2 = 90 - Fix, Archive permalinks for Schema API resource 91 89 92 = 1.16.1 = 90 93 - Improve, updated Yoast SEO filter to remove schema markup … … 423 426 == Upgrade Notice == 424 427 425 = 1.16. 0 =426 - Added global option for video schema markup, Webhok fix for delete markup428 = 1.16.2 = 429 - Fix archive permalinks for Schema API resource
Note: See TracChangeset
for help on using the changeset viewer.