Changeset 3408554
- Timestamp:
- 12/02/2025 10:17:14 PM (3 months ago)
- Location:
- schema-app-structured-data-for-schemaorg/trunk
- Files:
-
- 3 edited
-
hunch-schema.php (modified) (1 diff)
-
lib/SchemaFront.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
schema-app-structured-data-for-schemaorg/trunk/hunch-schema.php
r3314005 r3408554 5 5 * Plugin URI: http://www.schemaapp.com 6 6 * Description: This plugin adds http://schema.org structured data to your website 7 * Version: 2. 2.97 * Version: 2.3.0 8 8 * Author: Schema App 9 9 * Author URI: https://www.schemaapp.com -
schema-app-structured-data-for-schemaorg/trunk/lib/SchemaFront.php
r3314005 r3408554 235 235 global $post; 236 236 237 if (empty($post)) { 237 // Exclude: empty posts, admin pages, attachments 238 if (empty($post) || is_admin() || is_attachment()) { 238 239 return; 239 240 } 241 // Exclude WooCommerce account and checkout pages 242 if (class_exists('WooCommerce') && (is_account_page() || is_checkout())) { 243 return; 244 } 240 245 241 246 $PostType = get_post_type(); 242 247 243 248 // Check settings for whether to show markup for singular pages 244 249 if (is_singular()) { 245 250 $global_markup = true; 246 251 $single_markup_disable = get_post_meta($post->ID, '_HunchSchemaDisableMarkup', true); 247 252 $single_markup_enable = get_post_meta($post->ID, '_HunchSchemaEnableMarkup', true); 248 249 if ($PostType == 'page' && isset($this->Settings['SchemaDefaultShowOnPage']) && $this->Settings['SchemaDefaultShowOnPage'] == 0) { 253 $typeSettings = [ 254 'page' => 'SchemaDefaultShowOnPage', 255 'post' => 'SchemaDefaultShowOnPost' 256 ]; 257 if (isset($typeSettings[$PostType]) && isset($this->Settings[$typeSettings[$PostType]]) && $this->Settings[$typeSettings[$PostType]] == 0) { 250 258 $global_markup = false; 251 259 } 252 253 if ($PostType == 'post' && isset($this->Settings['SchemaDefaultShowOnPost']) && $this->Settings['SchemaDefaultShowOnPost'] == 0) { 254 $global_markup = false; 255 } 256 257 if (($global_markup && $single_markup_disable) || (!$global_markup && !$single_markup_enable)) { 260 if ($global_markup && $single_markup_disable || !$global_markup && !$single_markup_enable) { 258 261 return; 259 262 } 260 261 if (class_exists('WooCommerce') && (is_account_page() || is_checkout())) { 262 return; 263 } 264 } 265 263 } 266 264 267 265 $SchemaThing = HunchSchema_Thing::factory($PostType); -
schema-app-structured-data-for-schemaorg/trunk/readme.txt
r3314005 r3408554 8 8 Requires at least: 4.4 9 9 Requires PHP: 5.4 10 Tested up to: 6. 811 Stable tag: 2. 2.910 Tested up to: 6.9 11 Stable tag: 2.3.0 12 12 License: GPL2 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 83 83 == Changelog == 84 = 2.3.0 = 85 Release Date - 02 Dec 2025 86 - Improve, Tested up to WordPress 6.9 87 - Fix, Do not attempt to render markup or send to SchemaApp when page is 404 or is attachment 88 84 89 = 2.2.9 = 85 90 Release Date - 18 June 2025
Note: See TracChangeset
for help on using the changeset viewer.