• strarsis

    (@strarsis)


    Some plugins like the wp-typography plugin process the contents of the page.
    The wp-typography plugin improves the typography of the page text, but these modifications also prevents the verification of a successful text transfer.

    One solution would be to either show a warning or disabling the wp-typography plugin (and other popular post-processing plugins) for pages that are targets for text transfer.
    Alternatively the web service has to compare the text on the page with the expected text by also taking typographic improvements into account (notably soft hyphens).

Viewing 9 replies - 1 through 9 (of 9 total)
  • Andreas W.

    (@aweissinpsyde)

    Hallo @strarsis

    another solution would be to deactivate the wp-typography plugin using Plugin Load Filter https://wordpress.org/plugins/plugin-load-filter/

    The text will be synced every time IT Recht Kanzlei has an update because the whole page will be refreshed. That means your typography would be replaced.

    Best regards
    Andreas

    pepe

    (@pputzer)

    @aweissinpsyde @strarsis wp-Typography author here. How or where in the plugin do you compare the page content with your service? I tried to look through things, but didn’t find any obvious place in the plugin code.

    wp-Typography injects typographic fixes through the the_content and the_title filter hooks (and few others). It does NOT change the content stored in the database. So if the “comparison check” is targetable (through template tags or another kind of hook or condition), wp-Typography’s processing can easily be disabled just for that call.

    Thread Starter strarsis

    (@strarsis)

    @pputzer: The service fetches those pages externally (like a browser) and looks at the HTML code. So I guess the check is performed at their servers and not in the plugin.

    pepe

    (@pputzer)

    Yes but it would at need to at some point send the content to their API, and I didn’t find that point while browsing through the code. Although I think that’s a pattern that only works “by accident” if the filtered post content is used.

    Andreas W.

    (@aweissinpsyde)

    Hello @pputzer @strarsis

    our plugin checks the number at the end of the HTML code only not the whole text. If it’s older than the version published on the push server the server will renew the whole HTML document as a post in WordPress.

    When you add some text or remove it or change the layout it will be overwritten with the next update. That can’t be changed.

    pepe

    (@pputzer)

    Hi @aweissinpsyde, yes, I understood that part, but can you tell me where exactly in the code this is happening?

    Andreas W.

    (@aweissinpsyde)

    Hello @pputzer

    can you please send an email to agb-connector@inpsyde.com so I can forward it to our developers to have a closer look at it? Please add the link to this thread in your mail.

    Thank you
    Best regards
    Andreas

    @aweissinpsyde Unfortunately, I got no reply to my mail sent on April 19th.

    Hello @pputzer

    ​sorry for the late reply. We were talking internally about it and maybe this one here may help you a little https://github.com/inpsyde/agb-connector/tree/develop/src Please have a look at the install.php and plugin.php.

    ​I hope it helps.

    ​Have a nice day
    ​Regards
    ​Andreas

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘wp-typography plugin prevents verification’ is closed to new replies.