Jan Reilink
Forum Replies Created
-
@gvectorssupport Thanks!
I have another one:
PHP Deprecated: strstr(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /data/www/example.org/www/wp-content/plugins/wpdiscuz/forms/wpDiscuzForm.php on line 5Forum: Plugins
In reply to: [Honeypot Toolkit] On activation in Multisite: wp_get_sites is deprecatedGreat, thanks Jeff!
I haven’t checked, butswitch_to_blog()may be in use in other scripts (or other lines) as well.I’ll mark this reply as resolved.
Forum: Plugins
In reply to: [Vevida Optimizer] Uninstall processHi Will,
My apologies for not replying sooner.
The autoload index will remain on your database if you decide to uninstall the plugin.
- This reply was modified 7 years, 7 months ago by Jan Reilink. Reason: typo in 'plugin'
Forum: Plugins
In reply to: [All-In-One Security (AIOS) – Security and Firewall] Does it work on ISS?[removed, misread reply by @wpsolutions and thus was my reply not correct. Apologies!]
- This reply was modified 8 years, 2 months ago by Jan Reilink. Reason: code prettify
- This reply was modified 8 years, 2 months ago by Jan Reilink.
- This reply was modified 8 years, 2 months ago by Jan Reilink.
- This reply was modified 8 years, 2 months ago by Jan Reilink. Reason: deleted reply
Thank you for your quick response and fix! No more notices with version 7.9.6.
Forum: Plugins
In reply to: [Easy Table of Contents] Add ToC directly afterAnswering my own question, it appears there is no shortcode in this plugin. So changing the aforementioned function is a no go, unforunately.
Luckily, Table of Contents Plus does provide a shortcode, so add to your ‘site specific plugin’:
add_filter( 'the_content', 'saotn_insert_post_toc' ); function saotn_insert_post_toc( $content ) { if ( is_single() && !is_admin() && get_post_type() === 'post' ) { return saotn_insert_toc_after_first_p( $content ); } return $content; } function saotn_insert_toc_after_first_p( $content ) { $closing_p = '</p>'; $paragraphs = explode( $closing_p, $content ); foreach ($paragraphs as $index => $paragraph) { $paragraphs[$index] .= $closing_p; if ( in_array($index, array(1)) ) { $paragraphs[$index] .= do_shortcode("[toc]"); } } return implode( '', $paragraphs ); }Please re-introduce shortcodes.
Unfortunately, this issue is still not addressed with version 4.0.12. The fasted fix would be to rename the functions mentioned. I left the plugin author a comment on his site.
Hi @son9ne, thank you for your comments, very helpful! The use of single quotes around
$row->table_nameis very sloppy of me and needs better testing. I’ll fix that asap this week.Thanks again, and my apologies for the problems it first caused.
Forum: Plugins
In reply to: [WP Super Cache] WP Super Cache on Windows Server 2012 hostingHi @rbergonzini
Thank you for your support question, sorry to hear enabling WP-Super-Cache (WPSC) breaks your site.Does this happen right after enabling WPSC? Or after saving some settings? When you enable PHP error_reporting, and WP_DEBUG, does that provide you with more to go on? Because “goes into error” is too generic as you might have guessed.
Depending on your hosting environment, you can add the following to
wp-config.phpto enable error reporting:ini_set( 'log_errors', 'on' ); ini_set( 'error_log', 'd:/path/to/your/website/log.txt' ); ini_set( 'display_errors', 'on' );Add this somewhere near WP_DEBUG. And don’t forget to enable that as well:
// Enable WP_DEBUG mode define( 'WP_DEBUG', false ); // Enable Debug logging to the wp-content/debug.log file define( 'WP_DEBUG_LOG', false ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false );Here (https://www.saotn.org/?s=wp-super-cache) I have more tips and tricks about using WP-Super-Cache on Windows Server 2012 and 2016 (IIS 8.5, IIS 10.0)
Forum: Plugins
In reply to: [Donations via PayPal] Why set CURLOPT_SSL_VERIFYPEER to false?Hi @mra13, thank you for your reply and the best wishes for 2017.
First of all, I certainly don’t want to dictate about what you should and shouldn’t do. But why implementing your own cURL functions instead of the WP HTTP API functions? WordPress ships a valid root certificates file since version 3.7 (source: http://wordpress.stackexchange.com/a/167947/27620 by Otto Wood).
And by setting
CURLOPT_SSL_VERIFYPEER => falseyou are basically breaking the trust SSL / TLS provides.Forum: Plugins
In reply to: [ManageWP.org sharing for Jetpack] Load scripts over HTTP/2Thanks Jeremy, didn’t realize that. I’ll contact them and try to speed things up with prefetch it for now.
- This reply was modified 9 years, 5 months ago by Jan Reilink.
Forum: Plugins
In reply to: [Click To Tweet] Usage with do_shortcode()?Ok, so unfortunately the plugin is not supported by CoSchedule (source: https://twitter.com/CoSchedule/status/796745213205237761).
I wasn’t able to include the empty
[tweet ""]shortcode into my sites. This may be due to the fact I’m using it in a site specific plugin, instead offunctions.php.Anyway, I went with adding the entire HTML-code. For future reference (it’s ugly, but it works because the plugin scripts and styles are loaded anyway):
function saotn_click_to_tweet_after_post( $content ) { // we'er on Multisite $blog_id = get_current_blog_id(); if ( is_single() ) { $title = get_the_title(); $short = mb_strimwidth($title, 0, 100); $content .= "<div class='tm-tweet-clear'></div> <div class='tm-click-to-tweet'> <div class='tm-ctt-text'><a href='https://twitter.com/share?text=".urlencode($short)."&url=".get_permalink()."' target='_blank'>".$short."</a> </div> <a href='https://twitter.com/share?text=".urlencode($short)."&url=".get_permalink()."' target='_blank' class='tm-ctt-btn'>Click To Tweet</a> </div>"; return $content; } add_filter( "the_content", "saotn_click_to_tweet_after_post", 9 );Forum: Plugins
In reply to: [Cache Enabler] Mobile device supportThanks for your reply. I created this
inc/cache_enabler_disk.class.php.patchfor you:https://gist.github.com/Digiover/cac8ea983856dd07b476ca915138146c
It provides the most minimal
wp_is_mobile()support for Cache Enabler.Forum: Plugins
In reply to: [Cache Enabler] Mobile device supportHi @keycdn I created a
inc/cache_enabler_disk.class.phppatch with the most minimalwp_is_mobile()functionality. Interested? It still needs some testing and I’ll put up the code in a blog post sometime this week.Forum: Plugins
In reply to: [Vevida Optimizer] FULLTEXT indexes still causing a problemWe’ve released version 1.1.4, addressing this issue.