azanelli
Forum Replies Created
-
Forum: Plugins
In reply to: [Get Tweets in PHP] Count is wrong when Retweet = FalseHello, thank you for reporting this issue.
Sadly this is the normal behaviour of Twitter APIs, you can read more about here: https://dev.twitter.com/rest/reference/get/statuses/user_timeline
About the
count
option they say:[…] We include retweets in the count, even if include_rts is not supplied.
I understand it is strange. I will report this in the plugin’s documentation to be more clear.
Forum: Plugins
In reply to: [Get Tweets in PHP] Syntax Error on Line 102Hello, looks like you have an old version of PHP (older than 5.4?).
You must install PHP version 5.6 or greater.Forum: Plugins
In reply to: [Get Tweets in PHP] [Patch] fixed undefined constant CACHE_TRANSIENTNow the code is available on GitHub here:
https://github.com/netgloo/get-tweets-in-php
accepting pull requests or issues reports.Forum: Plugins
In reply to: [Get Tweets in PHP] Get media urls with httpsAvailable from version 1.2
Forum: Plugins
In reply to: [Get Tweets in PHP] Move config out of source code?I’m marking this as solved since this discussion is inactive.
Forum: Plugins
In reply to: [Get Tweets in PHP] Get media urls with httpsYes, I think it could be a good idea.
Forum: Plugins
In reply to: [Get Tweets in PHP] Move config out of source code?Hi Sam, sorry for the late reply. I didn’t received any notification about these issues.
We don’t consider setting configs via WordPress admin because they will be saved inside the DB and we want to avoid this (as much as possible). It makes really hard working with different configurations for different environments (e.g. local, staging, production) or different developers. It’s better having app’s configurations inside a configuration file.
I understand your concerns about open source projects. In these cases, Twitter keys could be moved in an external configuration file and loaded inside the code. Such file should then be ignored from VCS, e.g. placed inside
.gitignore
using Git. Each developer working on the code will have its own configuration file.A basic example could be to use some custom
define(...)
insidewp-config.php
, then place thewp-config.php
in the.gitignore
.It’s worth mentioning Bedrock that is a great boilerplate for a modern approach for developing with WordPress. It supports out-of-the-box configuration files.
Forum: Plugins
In reply to: [Get Tweets in PHP] [Patch] fixed undefined constant CACHE_TRANSIENTOk, thank you for the fix.
I just released version 1.1 with this fix, adding you as contributor if it’s ok for you.
I will place the code under GitHub, so contributions will be easier.