tdmalone
Forum Replies Created
-
Forum: Plugins
In reply to: [Enhanced Media Library] add_utility_page() deprected in WordPress 4.54.5 is now out and this error remains π
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] Update on use of wpdb->escapeCan it be placed into the official version by any chance?
I realised there’s an additional step to this – you need to also catch the URLs that WordPress returns to the media library via AJAX.
Step 4:
In addition to the steps in the previous post, add this to your functions.php as well.
add_filter("wp_prepare_attachment_for_js", "my_prepare_attachments"); if(!function_exists("my_prepare_attachments")){ function my_prepare_attachments($response){ foreach($response["sizes"] as $size_key => $size_data){ // loop through each size that each image attempts to return, and resize it through fly if($size_key == "medium" || $size_key == "thumbnail"){ // should catch most needed sizes and not take too long $fly_image = fly_get_attachment_image_src($response["id"], array($size_data["width"], $size_data["height"])); $size_data["url"] = $fly_image["src"]; $response["sizes"][$size_key] = $size_data; } } return $response; } }Forum: Plugins
In reply to: [Fly Dynamic Image Resizer] Windows server support – forward slashesThanks heaps, that’s awesome!
Forum: Plugins
In reply to: [Delete Thumbnails] Parse error: syntax error, unexpected $endThis is an oversight in the plugin – it uses PHP short tags which aren’t enabled on every server.
You can either get these enabled through use of php.ini or (maybe) .htaccess, or you can manually edit the plugin file, replacing every instance of
<?=with<?php echoand every instance of<?with <?php `.That’s not the only issue though – line 33 is calling a constant (UPLOADS) that doesn’t exist – it might need to use wp_upload_dir instead (https://developer.wordpress.org/reference/functions/wp_upload_dir/). And, line 44 is calling a non-existent function –
register_dlthumbs_custom_options_settingsshould probably bedlthumbs_custom_options_page.Hopefully the plugin developer can fix these up π
Forum: Plugins
In reply to: [Contact Form DB] Changelog missing for 2.9.12Thanks galbaras & Michael Simpson!
I’m often updating a bunch of plugins at once and using the Changelog viewable from within the WordPress plugin page so I’ve been trying to encourage plugin authors to update it when it’s not π Takes awhile to hunt through embedded changelogs.
Appreciate the work, thanks again Michael!
Forum: Plugins
In reply to: [Recent Posts Widget Extended] post_thumbnail_html filterHi there Satrya, thanks for replying and sorry for my delay in getting back to you!
In
includes/functions.phpthe plugin usesget_the_post_thumbnail()once, but this seems to only apply in some circumstances (related to use of the custom functionrpwe_resize()). There is alternative code (line 131 of functions.php in the latest version of the plugin) which creates an<img>tag directly whenrpwe_resize()returns something – which in my case, it is.I was able to get around this by wrapping line 131 in an
apply_filters()call topost_thumbnail_html, sending through additional argumentsget_the_ID(),$thumb_idand"thumbnail".I’m not a plugin developer so I’m not sure if I have followed best practice for this but it is working for my needs at the moment – until I update the plugin of course π
I’m not sure if I’ve missed something or am understanding it incorrectly but if it is possible for you to filter that output where you’re creating the
<img>tag I would be really appreciative!Forum: Plugins
In reply to: [WordPress Related Posts] post_thumbnail_html filterHi again,
Just found another output from this plugin that isn’t taking filters into account – I’m using both the excerpt_more and get_the_excerpt filters on a site to alter the […] at the end of excerpts; this plugin isn’t taking account of those filters and is instead setting […] as the more text in its config file.
Would be great if you could utilise these two filters as well:
https://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more
https://codex.wordpress.org/Plugin_API/Filter_Reference/get_the_excerptI’m sure there’s a bunch other that would help your plugin integrate well with other plugins & themes but the three filters mentioned in this thread are just those I’ve come across so far π
Thanks again for your consideration!
Forum: Plugins
In reply to: [Breadcrumb Trail] Is it possible to post the changelog?Ah, thank you! Yeah scanning for a changelog does sound like the best way to solve this. I didn’t realise you had to maintain it twice!
Forum: Plugins
In reply to: [Plugin Vulnerabilities] Centralrized Data optionsHi WhiteFirDesign, in regards to you not wanting the data used… isn’t that the spirit of open source development?
You mentioned it makes it harder for to justify the work you put into the plugin… why not collaborate with others and end up with an even better plugin – and WordPress plugin security – for everybody? Putting a lot of work into plugin security so you can take the glory doesn’t really make a lot of sense; if your true desire is better security for WordPress then it would follow that collaborating with other security plugins – and other interested developers – would actually further your cause, not restrict it.
Forum: Plugins
In reply to: [Plugin Vulnerabilities] Centralrized Data optionsWhiteFirDesign, it seems like you’ve missed the point of both of the suggestions for extracting the data. In each case, the suggestions were to make the data more accessible – in this case, to another useful plugin. It wasn’t really about making it easier to update the Plugin Vulnerabilites plugin π
Of course Paul – just done! Thanks for the great work π
OH and I just found the setting. At the bottom of the Firewall Response tab in the Firewall settings section.
Sorry for bothering you! I thought I was missing something obvious π
Hey! Thanks for the fast reply. It’s the the Firewall Block Email Alert emails that I’m looking to silence. π
Thanks for the reply guys. Appreciate that you’re working on it!