The xmlrpc.php
file of my WordPress blog recently got hit by a single bot some 5000 times over a half hour period recently. I temporarily disabled all visitors and then limited it to just blocking the specific IP via Apache conf (htaccess).
wordpress posts
Checking if WordPress post has more
WordPress offers the has_excerpt()
method to determine if you create a separate excerpt on a post, but does not seem to have a built in function to ask if it uses the special comment <!--more-->
for an excerpt coming from the beginning of the post content.
Not sure what happened, but the Jetpack Markdown plugin setting got turned off by itself.
Continue reading post "#2456"Cleveland GiveCamp 2019: day one
The tenth annual, and my ninth, Cleveland GiveCamp started today.
Continue reading post "Cleveland GiveCamp 2019: day one"I updated to WordPress 5, but had to use the classic editor plugin.
Continue reading post "#2157"Welp, got my first pingback / trackback spam since I closed regular comments about a month ago.
Continue reading post "#2019"Apparently, callbacks to the WordPress function add_filter()
don’t receive more than one argument to their callback unless you specify the fourth argument to the add call as a number greater than 1
.
I guess the WordPress setting “Automatically close comments on articles older than x days” does close pingbacks as well.
Continue reading post "#1993"Was worried when a Markdown formatted post preview was rendering all messed up. I use the Jetpack Markdown plugin for this blog. Apparently, a bug was introduced recently
Continue reading post "#1406"WordPress plugin: changing rel-canonical
I serve my site over both HTTP and HTTPS to support older browser that can’t support modern or any HTTPS protocols. I prefer HTTPS for search engines and general use though, as it is more secure, increases user privacy, and is factored into SEO rankings. Due to an issue with my sitemap, Google ended up indexing all of my blog pages as HTTP. The first thing I’m going to try to get Google to show my blog pages as HTTPS is to set the rel-canonical
link to the HTTPS version regardless of which protocol the visitor uses. WordPress doesn’t have a built in way to change the canonical URL, and I didn’t want to install a heavy SEO plugin just for this, so I wrote my own.
This simple plugin removes WordPress’s rel_canonical
action, then replaces it with its own. I basically re-implemented WordPress’s own functionality, replacing the http
with https
before outputting the link. It looks like: