iagofm
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Schema Scalpel] Possible bug in Homepage SchemaI found the github repo in parallel with your response and I have already sent you a couple of pull requests. Can you take a look @kevingillispie ?
Forum: Plugins
In reply to: [Schema Scalpel] Possible bug in Homepage SchemaI have found the solution but I don’t know how to send a pull request or a patch.
The bug is in class-schema-scalpel-public.php in line 256 when replacing the single quote.
Here is the patch to fix the bug:
Index: trunk/public/class-schema-scalpel-public.php
===================================================================
--- trunk/public/class-schema-scalpel-public.php (revisión: 3138078)
+++ trunk/public/class-schema-scalpel-public.php (copia de trabajo)
@@ -253,7 +253,7 @@
if ( '/' === $path ) :
$home_schema = $wpdb->get_results( $wpdb->prepare( "SELECT custom_schema FROM %1s WHERE schema_type = 'homepage';", $wpdb->prefix . 'scsc_custom_schemas' ), ARRAY_A );
foreach ( $home_schema as $key => $value ) :
- $schema = str_replace( ''', "\'", html_entity_decode( unserialize( $value['custom_schema'] ) ) );
+ $schema = str_replace( ''', "'", html_entity_decode( unserialize( $value['custom_schema'] ) ) );
self::format_schema_html( $schema_script_html, $schema );
endforeach;
endif;
Viewing 2 replies - 1 through 2 (of 2 total)