Skip to content
The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 1 million sites.
Branch: master
Clone or download
spenserhale and slaFFik Options get_group() and get() return different values if using consta…
…nts (#35)

* Updating get_debug_info method to be less hardcoded and more match is_mailer_complete method, ie to use this->options instead of create new object and using $this-mailer instead of hard coded string.

* Updating get_group to return defaults and constants, where before it only returned database options. Updated to allows run apply_filters so developers can filter and return their own value when option is empty, because before filter only ran if group had database option. Updating the comment to match method. Reason for change was Options::init()->get( 'sendgrid', 'api_key' ) and Options::init()->get_group( 'sendgrid' )[ 'api_key' ] returned different values if you were using constants. So the method is_mailer_complete on SendGrid/Mailer would return false even though api_key was setup with constant.

* Updating get_group() to not directly modify default class property _options and instead use local variable $options to match style of get_all(), and passing $options to filter so filters cannot modify class property. Change isset check of map to if statement for readability.
Latest commit ec6543c May 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
assets
languages WP Mail SMTP v1.4.1. Dec 3, 2018
src Options get_group() and get() return different values if using consta… May 16, 2019
.gitattributes WP Mail SMTP v1.3.3. Jul 5, 2018
.gitignore WP Mail SMTP v1.4.1. Dec 3, 2018
CHANGELOG.md WP Mail SMTP v1.4.1. Dec 3, 2018
LICENSE WP Mail SMTP 1.2.5 Jun 5, 2018
README.md
class-wpms-am-notification.php WP Mail SMTP v1.4.0. Nov 29, 2018
composer.json WP Mail SMTP v1.3.3. Jul 5, 2018
composer.lock WP Mail SMTP v1.4.0. Nov 29, 2018
gulpfile.js
package-lock.json WP Mail SMTP v1.4.0. Nov 29, 2018
package.json
phpcs.xml WP Mail SMTP 1.2.5 Jun 5, 2018
readme.txt WP Mail SMTP v1.4.1. Dec 3, 2018
uninstall.php WP Mail SMTP v1.4.0. Nov 29, 2018
wp-mail-smtp.php WP Mail SMTP v1.3.3. Jul 5, 2018
wp_mail_smtp.php WP Mail SMTP v1.4.1. Dec 3, 2018

README.md

WP Mail SMTP

Plugin Version Total Downloads Plugin Rating WordPress Compatibility License

Welcome to our GitHub Repository

master branch is always stable and contains latest releases. Development occurs in the develop branch while large features/changes are contained in dedicated branches.

Bugs

If you find an bug or problem, please let us know by creating an issue!

Contributions

Contributions to WPForms are welcome!

  1. Open an Issue on GitHub.
  2. Fork WP Mail SMTP on GitHub.
  3. Create a new branch off of develop; branch name should be issues/### to reference the issue.
  4. When committing, reference your issue and provide notes/feedback.
  5. Send us a Pull Request with your bug fixes and/or new features.
You can’t perform that action at this time.