Ryan
Forum Replies Created
-
I think if you want to disable CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST you should add options for them rather than just doing it since it can make things less secure.
Forum: Plugins
In reply to: [External Media] Doesn’t fire upload filtersThanks for the response! The main issue is the upload filters not working on the file output.
Perhaps you could add a filter in above the file_put_contents line in the save_remote_file function of external-media\classes\WP_ExternalPluginBase.php
$file_path = apply_filters( 'external_media_file_path', $file_path );That way I can filter it myself and adjust it like so:
add_filter( 'external_media_file_path', 'external_media_file_path' ); function external_media_file_path( $file ) { $parts = pathinfo( $file ); $extension = strtoupper( $parts['extension'] ); $formats = array( "3G2", "3GP", "ASF", "ASX", "AVI", "FLV", "M4V", "MOV", "MP4", "MPG", "RM", "VOB", "WEBM", "WMV" ); if ( ! in_array( $extension, $formats ) ) { return $file; } $upload_dir = wp_upload_dir(); $file = str_replace( $upload_dir['subdir'], '/videos', $parts['dirname'] ) . '/' . $parts['basename']; return $file; }- This reply was modified 9 years, 1 month ago by Ryan.
Forum: Plugins
In reply to: [WooCommerce] Tax issues after upgrade to 3.0.0Alright, thanks!
Changing that setting from Geolocate to Shop base address fixed it. But strangely changing it back again it still seems to be fixed for some reason.
Forum: Plugins
In reply to: [WP Voice Recorder] Javascript errors in jRecorderThanks for updating. However it still doesn’t work.
You used the wrong version number in your plugin so it won’t auto update. People have to completely delete and reinstall it to get the update.
Also I get the same javascript errors as before.
Any tips? Does it work for you?
Forum: Plugins
In reply to: [Weekly Class Schedule] Usage of date_default_timezone_set breaking siteI’ve also had issues with other plugins doing this as well. I think possibly even Yoast SEO might have been one of them if I remember correctly.
Here are a couple examples of workarounds that I’ve used:
class YourClassName { private static $tz; function __construct() { // set timezone (gets reset in __destruct) self::$tz = date_default_timezone_get(); date_default_timezone_set( get_option( 'timezone_string' ) ); } function __destruct() { // reset timezone back to old value (gets set in __construct) date_default_timezone_set(self::$tz); } }// Save original time zone. $original_timezone = date_default_timezone_get(); // Set timezone based on WP Timezone option under Settings > General. date_default_timezone_set( get_option( 'timezone_string' ) ); // Whatever you have to do here with the correct timezone... // Reset the timezone back to the original time zone. date_default_timezone_set($original_timezone);Forum: Fixing WordPress
In reply to: User Registration Field EncryptionThere’s no point in storing the data if you can’t use it. You wouldn’t be able to send them emails or see their name or number without being able to decrypt it. Since you would have to decrypt the data to use it you would have to store encryption keys somewhere and this could make things tricky.
Here is a pretty good post with some ideas: http://security.stackexchange.com/a/12334
You might be able encrypt/decrypt using hooks in the WP API if such hooks even exist. I’m not even sure if they do since I’ve never tried it. Although I have been looking for plugin ideas so I can make some free as well as premium plugins so maybe I should look into it and see. Maybe I could even invent a relatively secure way to deal with the keys.
Since you are going for PCI Compliance hopefully you have a server which is setup properly as well.
Forum: Fixing WordPress
In reply to: User Registration Field EncryptionYou might be able to encrypt the fields and decrypt them on the fly using filters. However once encrypted you would not be able to decrypt them without also storing the encryption key somewhere that’s accessible to the code which would pretty much defeat the purpose of encrypting them. Therefore I do not believe what you want to do is possible.
The password is not retrievable from the database. It is only compared against to see if the entered password matches that value when the same encryption process is applied to it.
You can see the password code WP uses at /wp-includes/class-phpass.php
Hi there,
I just had this issue too. Was probably likely in my case due to upgrading from NGG 1.9.x to 2.x. I reset all the settings to defaults using the button in the Other Settings screen and then set them all back to what they were before that and pagination seems to work fine now. Odd since everything is definitely exactly the same.
Forum: Plugins
In reply to: [Basic Google Maps Placemarks] Where can I download 1.10?Thank you Ian!
Forum: Plugins
In reply to: [ChimpMate - WordPress MailChimp Assistant] Last update Version 1.2.1 brokenThank you! Seems to work now =)
Forum: Plugins
In reply to: [bitpay-for-woocommerce] Can't activate, doesn't workHi there,
I don’t know if you’ve managed to fix this yet but thought I’d share my experience too.
I wasn’t able to get mine to work at all until I installed the mcrypt PHP extension on my server. It wasn’t showing the initial API token information as shown in one of the screenshots they have on the plugin page. It was just doing nothing as you indicated yours is doing.
I also didn’t see anything about mcrypt being missing except for the error had the function name Bitpay\\Crypto\\mcrypt_module_open in it so I suspected it was due to the mycrypt not being on. I installed that and it seemed to do the trick.
Now it shows the API token stuff with a blue background, the same info you probably saw on the Bitpay site when you clicked find but nothing happened. I haven’t tried a test payment to see if it goes through but I suspect it should.
What would be nice is if the plugin detected missing PHP modules and told us about them or at least listed the required ones so we can verify.
Forum: Plugins
In reply to: [WP Github] branch possible?I found this if it helps: http://stackoverflow.com/questions/16517405/get-git-commits-by-branch-name-id-with-git-api
Thanks, that fixed it.
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] TDO Mini Forms CompatibilityHi,
Not sure where the bug submit thing is so here is the config file: http://pastebin.com/qmsKSj1z
I tried numerous URI in the reject cache box for the form which is at /add-a-template but maybe this is nothing to do with minifying. Maybe theres a reject minifying box some place I don’t see?
It used to give a perfect score with YSlow and 94/100 with Page Speed when Minifying was on. With it off its not so good.
Thanks for your help =)
Ryan