Changeset 1927492
- Timestamp:
- 08/20/2018 04:32:30 PM (8 years ago)
- Location:
- schema-app-structured-data-for-schemaorg/trunk
- Files:
-
- 2 edited
- 4 copied
-
hunch-schema.php (copied) (copied from schema-app-structured-data-for-schemaorg/tags/1.10.1/hunch-schema.php)
-
lib/SchemaEditor.php (copied) (copied from schema-app-structured-data-for-schemaorg/tags/1.10.0/lib/SchemaEditor.php)
-
lib/SchemaFront.php (modified) (2 diffs)
-
lib/SchemaServer.php (copied) (copied from schema-app-structured-data-for-schemaorg/tags/1.10.0/lib/SchemaServer.php)
-
lib/SchemaSettings.php (modified) (1 diff)
-
readme.txt (copied) (copied from schema-app-structured-data-for-schemaorg/tags/1.10.1/readme.txt)
Legend:
- Unmodified
- Added
- Removed
-
schema-app-structured-data-for-schemaorg/trunk/lib/SchemaFront.php
r1911175 r1927492 45 45 } 46 46 47 // Disable WPSEO Breadcrumb markup if ours is enabled 48 if ( ! empty( $this->Settings['SchemaBreadcrumb'] ) ) 49 { 50 add_filter( 'wpseo_json_ld_output', array( $this, 'RemoveWPSEOJsonLDBreadcrumb' ), 10, 2 ); 51 } 52 47 53 // Priority 15 ensures it runs after Genesis itself has setup. 48 54 add_action( 'genesis_setup', array( $this, 'GenesisSetup' ), 15 ); … … 223 229 public function RemoveWPSEOJsonLD( $data, $context ) 224 230 { 225 if ( in_array( $context, array( 'website', 'company', 'person' ) ) ) 231 if ( in_array( $context, array( 'website', 'company', 'person', 'breadcrumb' ) ) ) 232 { 233 return array(); 234 } 235 236 return $data; 237 } 238 239 240 public function RemoveWPSEOJsonLDBreadcrumb( $data, $context ) 241 { 242 if ( $context == 'breadcrumb' ) 226 243 { 227 244 return array(); -
schema-app-structured-data-for-schemaorg/trunk/lib/SchemaSettings.php
r1911175 r1927492 802 802 <option value="0" <?php selected( $Value, 0 ); ?>>Disabled</option> 803 803 </select> 804 <p>Remove Website and Person/CompanyJSON/LD markup.</p>804 <p>Remove Website, Person/Company and Breadcrumb JSON/LD markup.</p> 805 805 806 806 <?php
Note: See TracChangeset
for help on using the changeset viewer.