actionscripted
Forum Replies Created
-
Forum: Plugins
In reply to: [HyperDB] Supported?If you check the plugin’s development tab you can find links to the source repository and it does indeed look like it’s in active development.
Not a whole lot has changed, but they’ve updated the readme.txt to include support for WordPress 4.8.1: https://plugins.trac.www.ads-software.com/changeset/1730766/hyperdb/trunk/readme.txt
Forum: Plugins
In reply to: [HyperDB] Why HypeDB plugin is not under active development and updatedIf you check the plugin’s development tab you can find links to the source repository and it does indeed look like it’s in active development.
Not a whole lot has changed, but they’ve updated the readme.txt to include support for WordPress 4.8.1: https://plugins.trac.www.ads-software.com/changeset/1730766/hyperdb/trunk/readme.txt
Awesome Robin, thanks so much!
Forum: Plugins
In reply to: [Private groups] pg_Forums_Widget title output adjustmentAwesome Robin, thanks so much!
We were able to resolve the issue by updating the premium key so it would seem that for us at least the problem was that some sort of check was failing and not being handled gracefully.
We’re seeing the same issue. There aren’t any errors in the frontend console or in the backend logs. We’ve disabled all plugins but Wordfence and the issue persists.
The entire admin dashboard output ends right before the content for the Wordfence activity widget. This is the end of the source on a dashboard where this is happening:
<div id="wordfence_activity_report_widget" class="postbox " > <button type="button" class="handlediv button-link" aria-expanded="true"><span class="screen-reader-text">Toggle panel: Wordfence activity in the past 2 weeks</span><span class="toggle-indicator" aria-hidden="true"></span></button><h2 class='hndle'><span>Wordfence activity in the past 2 weeks</span></h2> <div class="inside">
About this install:
- Not multisite
- Using premium Wordfence
- Everything up-to-date
- PHP 5.6
Matt,
If it helps at all I suspect this has to do with how redirects are being handled in Wordfence. The JS written to the page is correct and protocal-relative but when you try and request the script directly it 302s from https to http. I’m not familiar enough with the WF codebase to say for sure but I’m wondering if it has anything to do with how/where wp_redirect() is used.
To see it in action:
curl -v https://www.[somesite].com/?wordfence_logHuman=1
General output:
< HTTP/1.1 302 Found < Date: Tue, 19 Jul 2016 21:06:31 GMT < Content-Type: text/html; charset=UTF-8 < Set-Cookie: wfvt_1364334534=578e96570281b; expires=Tue, 19-Jul-2016 21:36:31 GMT; Max-Age=1800; path=/; httponly < X-Pingback: https://www.[somesite].com/xmlrpc.php < Location: https://www.[somesite].com/?wordfence_logHuman=1
Perhaps there could be a check in WF redirects to respond with the appropriate request protocol? Looking at WF source I’m wondering if it might also make sense to use wp_safe_redirect() instead of wp_redirect().
Forum: Plugins
In reply to: [Custom Taxonomy Sort] Illegal string offset 'orderby'@qstudio is correct. You should change this twice in the plugin.
Line 295 should become:
if ( isset($args['orderby']) && $this->get_control_type() == 'off' && $args['orderby'] != $this->orderby_parameter ) return $terms;
Lines 328-331 should become:
if ( ( isset( $args['order'] ) && isset( $args['orderby'] ) && $args['orderby'] == $this->orderby_parameter && $args['order'] == 'DESC' ) || ( isset( $args['orderby'] ) && $args['orderby'] != $this->orderby_parameter && $this->get_sort_order() == 'DESC' ) ) { krsort( $ordered_terms ); }
But even then, things seem wonky at best. There are several other post sorting plugins and I would suggest avoiding this one. It hasn’t been updated in four years.
One alternative we’ve been okay with that comes with a nagging donation screen: https://www.ads-software.com/plugins/post-types-order/
Forum: Themes and Templates
In reply to: Image thumbnailsYou have an unclosed anchor tag in your template code. The print line should look like this:
print "\n\n" . '<div><a href="' . $link . '"><img src="' . $img . '" alt="" /></a></div>';
Forum: Fixing WordPress
In reply to: How to link directly to first subpage of a parent pageAnd the sample output from the code above:
<ul> <li><a href="https://www.somesite.com/about-us/history/">About Us</a></li> <li class="current"><a href="https://www.somesite.com/products/by-category/">Products</a></li> <li><a href="https://www.somesite.com/custom-orders/">Custom Orders</a></li> <li><a href="https://www.somesite.com/design-ideas/">Design Ideas</a></li> <li><a href="https://www.somesite.com/deliveries/">Deliveries</a></li> <li><a href="https://www.somesite.com/promotions-coupons/">Promotions + Coupons</a></li> <li><a href="https://www.somesite.com/contact-us/">Contact Us</a></li> </ul>
Assuming you have the following page setup:
- About Us
- History
- Products
- By Category
- Custom Orders
- Design Ideas
- Deliveries
- Promotions + Coupons
- Contact Us
Forum: Fixing WordPress
In reply to: How to link directly to first subpage of a parent pageHere’s some rough code that’ll build a top-level list that links parent categories to their first child. Use this as a basis for things, and you can step-through children to build a nested list if you’d like by removing the “number=1” bit:
<?php $parents = get_pages('&sort_column=menu_order,post_title&child_of=0&parent=0'); $current = $post; while($current->post_parent) { $current = get_post($current->post_parent); } foreach ($parents as $parent_index => $parent) { if ($parent->post_title == 'Home') continue; $first_child = get_pages('&sort_column=menu_order,post_title&number=1&child_of=' . $parent->ID . '&parent=' . $parent->ID); $parent_link = get_page_link($parent->ID); if ($first_child) { $child = $first_child[0]; $parent_link = get_page_link($child->ID); } if ($current->ID == $parent->ID) { echo '<li class="current"><a href="' . $parent_link . '">' . $parent->post_title . '</a></li>' . "\r\n"; } else { echo '<li><a href="' . $parent_link . '">' . $parent->post_title . '</a></li>' . "\r\n"; } } ?>