maiden_taiwan
Forum Replies Created
-
Forum: Plugins
In reply to: [Links shortcode] Plugin has broken in WP WordPress 6.6.1I found the problem. WordPress 6.6.1 changed one test in the core file wp-includes/bookmark.php, line 310, to be stricter:
OLD:
if ( -1 != $parsed_args['limit'] ) {
NEW:
if ( -1 !== $parsed_args['limit'] ) {
The problem is that Links Shortcode passes in the value
"-1"
which fails the stricter test against the integer-1
. The result is that the stringLIMIT 1
is appended to the SQL query, cutting off the list of bookmarks after one value.I don’t know if this is a WordPress bug or a plugin bug, but here’s a fix. Modify links-shortcode.php function
linkssc_shortcode
at line 122:OLD:
'limit'??=> get_option('linkssc_howmany', '-1'),
NEW:
'limit'?=> (int)get_option('linkssc_howmany', '-1'),
Thanks, that worked! I can now
ssh example.com wp backwpup start 1
followed byscp
and reliably generate and retrieve a backup file.Forum: Plugins
In reply to: [Disable WP REST API] Does it work with multisite?Thanks so much, Jeff, for taking the time to look into this. If I discover anything further, I’ll let you know.
Thanks so much for the quick fix! Bugs are inevitable, and what really matters is how the maintainers respond. Thanks for a great response.
Forum: Plugins
In reply to: [Disable WP REST API] Does it work with multisite?Thanks for your quick response!
I just used an incognito browser to hit my site with your plugin enabled, and the API was still functioning. Thanks very much for looking into multisite issues.
Forum: Plugins
In reply to: [Disable WP REST API] Does it work with multisite?I also cleared all my WP caches. No difference.
Forum: Plugins
In reply to: [W3 Total Cache] Multisite: “The link you followed has expired”I also tried this: open an incognito browser window, log directly into the local site, and click “Performance / Purge All Caches”. I am immediately redirected to the login page again (I think for the Network). I log in again, and I’m taken to /wp-admin/network/admin.php?page=w3tc_dashboard&w3tc_flush_all&_wpnonce=cd996b7691, which displays “The link you followed has expired. Please try again.” In the incognito browser, I “Purge All Caches” at the network level again and clear the browser cache again. I still get the same error.
Forum: Plugins
In reply to: [W3 Total Cache] Multisite: “The link you followed has expired”Thanks for your note. I did all of these steps in order:
- Visit The W3 Total Cache admin page /wp-admin/network/admin.php?page=w3tc_dashboard and click “Empty All Caches”
- Select the top menu item Network Admin / Performance / Purge All Caches, in case that’s different
- Empty the browser cache
- Restart memcached on the server
- Restart apache2 on the server
- Hard-refresh of the local site’s admin page.
- On local site, choose “Purge All Caches”
I still get the “link expired” error message on local sites.
I tried the above steps with both values (checked and unchecked) of the W3TC general setting Use single network configuration file for all sites. (Which setting is correct?)
I also enabled WordPress debugging during all this, but did not get any error messages in wp-content/debug.log.
Any next steps? Thanks.
Forum: Plugins
In reply to: [WP Extended Search] Searching “Links”?Thanks for your reply. Are you sure we’re both talking about the same thing? The latest WordPress definitely supports Links. They are in the main Admin menu, just below “Posts” and “Media.”
Forum: Plugins
In reply to: [Link Library] Keeping a link privateThanks, I can confirm you’re correct. I was making changes in the Links manager and assuming they’d be immediately reflected in Link Library. Now that I understand Link Library operates on a copy of the Links data, I can properly evaluate the plugin for my site. Thanks again.
Forum: Plugins
In reply to: [Link Library] Keeping a link privateThanks. In that case, it appears that your plugin doesn’t consider the “Keep this link private” value when importing the Link Manager links. Maybe a future enhancement for your import process?
If I do start using your plugin, I’ll surely donate. (Just evaluating it right now.) Thanks for the great support!
Forum: Plugins
In reply to: [Link Library] Keeping a link privateThanks for your response. The link stays hidden if I make it private within Link Library (wp-admin/post.php?action=edit&post=…), but not when I check “Keep this link private” in the standard WordPress Links page (wp-admin/link.php?action=edit&link_id=…). I guess I don’t understand the relationship of Link Library to the standard Links page. I have hundreds of private links on my site and that information doesn’t seem to carry over to Link Library. Thanks for any insights!
Forum: Plugins
In reply to: [Link Library] “No links found” and no resultsMarking as resolved.
Forum: Plugins
In reply to: [Link Library] “No links found” and no resultsYou are correct. The plugin “WP Extended Search” was interfering with your plugin’s operation. Thank you so much for your quick and helpful analysis! Now I can try out your plugin properly.
Forum: Plugins
In reply to: [Link Library] “No links found” and no resultsI have emailed you my exported library settings. Thanks!