Hi Ryan,
very interesting! Now that WP has the API, wouldn’t it be possible to download a “batch” of encrpyted posts, decrypt them on arrival, via a loally stored “token” and dump the resulting info into a JSON object that could be searched? Just kicking some ideas around! Thanks, Rupert
You don’t need the WP API for that though. You could do that previously too.
Some static site generators handle search in this way, since they don’t have the ability to process searches server side. Sphinx CMS in particular does this.
I got this error: Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /testp/wordpress/wp-includes/functions.php on line 5535
front end post show original text without encryption.
WordPress obsessed Kiwi former scientist, who used to live in Canada, then Norway and now exciting Berlin. To learn more about me, check out my about page or head onto over to my personal site.
henry says:
test
August 4, 2015 at 9:20 am # //
Ryan says:
I’m not sure what you are trying to test, since the encryption is on the post content, not the comments 😉
August 5, 2015 at 4:21 pm # //
Rupert Hurley says:
Hi Ryan,
very interesting! Now that WP has the API, wouldn’t it be possible to download a “batch” of encrpyted posts, decrypt them on arrival, via a loally stored “token” and dump the resulting info into a JSON object that could be searched? Just kicking some ideas around! Thanks, Rupert
February 2, 2017 at 1:53 pm # //
Ryan says:
Yes, that would definitely be possible.
You don’t need the WP API for that though. You could do that previously too.
Some static site generators handle search in this way, since they don’t have the ability to process searches server side. Sphinx CMS in particular does this.
February 16, 2017 at 8:27 pm # //
JustDoIt says:
I got this error: Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /testp/wordpress/wp-includes/functions.php on line 5535
front end post show original text without encryption.
thanks
August 27, 2021 at 2:20 pm # //
Ryan Hellyer says:
Ah, I think that’s something which got changed in WordPress ages back and I haven’t fixed it in this plugin yet.
September 14, 2021 at 3:09 pm # //