Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter iagofm

    (@iagofm)

    I 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 ?

    Thread Starter iagofm

    (@iagofm)

    I 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;
    • This reply was modified 3 months, 1 week ago by iagofm.
    • This reply was modified 3 months, 1 week ago by iagofm.
    • This reply was modified 3 months, 1 week ago by iagofm.
Viewing 2 replies - 1 through 2 (of 2 total)