- Fix: Convert use of deprecated string interpolation syntax to prevent notice under PHP8.2. Props Simounet.
- Change: Note compatibility through WP 6.6+
- Change: Update copyright date (2024)
- New: Add
.gitignore
file - Change: Remove development and testing-related files from release packaging
- Unit tests:
- Hardening: Prevent direct web access to
bootstrap.php
- Allow tests to run against current versions of WordPress
- New: Add
composer.json
for PHPUnit Polyfill dependency - Change: In bootstrap, store path to plugin file in a constant
- Change: In bootstrap, add backcompat for PHPUnit pre-v6.0
- Hardening: Prevent direct web access to
- Change: Note compatibility through WP 6.3+
- Change: Update copyright date (2023)
- New: Add link to DEVELOPER-DOCS.md in README.md
This minor release improves cron handling, removes the little HTML used from emails, prevents a PHP8 warning, adds DEVELOPER-DOCS.md, notes compatibility through WP 6.0+, and reorganizes unit test files.
- Fix: Make
__wakeup()
public to prevent PHP8 warnings. Props Simounet, koolinus. - Change: Move cron initialization into new
cron_init()
- Change: Register cron task earlier. Props Simounet.
- Change: Remove HTML from email. Props Simounet.
- New: Add DEVELOPER-DOCS.md and move hooks documentation into it
- Change: Pare plugin tags down to 5
- Change: Note compatibility through WP 6.0+
- Change: Update copyright date (2022)
- Unit tests:
- Change: Restructure unit test directories
- Change: Move
phpunit/
intotests/phpunit/
- Change: Move
phpunit/bin/
intotests/
- Change: Move
- Change: Remove 'test-' prefix from unit test file
- Change: In bootstrap, store path to plugin file constant
- Change: Restructure unit test directories
This minor release adds the ability for admins to edit the value of the setting for other users and also notes compatibility through WP 5.7+.
- New: Permit admins to see and edit the value of the setting for other users
- New: Add HTML5 compliance by omitting
type
attribute forstyle
tag - Change: Note compatibility through WP 5.7+
- Change: Drop compatibility for versions of WP older than 4.9
- Change: Update copyright date (2021)
- Change: Remove some excess space characters within output markup
- Change: Restructure unit test file structure
- New: Create new subdirectory
phpunit/
to house all files related to unit testing - Change: Move
bin/
tophpunit/bin/
- Change: Move
tests/bootstrap.php
tophpunit/
- Change: Move
tests/
tophpunit/tests/
- Change: Rename
phpunit.xml
tophpunit.xml.dist
per best practices
- New: Create new subdirectory
- Change: Note compatibility through WP 5.5+
- New: Unit tests: Add tests for
add_daily_email_optin_checkbox()
,dashboard_setup()
- New: Add TODO.md and move existing TODO list from top of main plugin file into it (and added to it)
- Change: Note compatibility through WP 5.4+
- Change: Update links to coffee2code.com to be HTTPS
- Fix: Use full path to CHANGELOG.md in the Changelog section of readme.txt
- Unit tests:
- New: Add test and data provider for hooking actions and filters
- New: Add tests for configuration defaults such as option name, cron name, etc
- New: Add tests for
add_admin_css()
,admin_css()
- Change: Use
expectOutputRegex()
instead of doing explicit output buffering - Change: Remove unnecessary unregistering of hooks and thusly delete
tearDown()
- Change: Use HTTPS for link to WP SVN repository in bin script for configuring unit tests
- Fix: Fix incorrect date query handling
- Change: Note compatibility through WP 5.3+
- Change: Update copyright date (2020)
- Fix: Fix incorect handling of timestamp argument when supplied to
get_formatted_date_string()
(bug not triggered within plugin itself) - Change: Update unit test install script and bootstrap to use latest WP unit test repo
- Change: Note compatibility through WP 5.2+
- Change: Add link to CHANGELOG.md in README.md
- Change: Remove 'Domain Path' plugin header
- Fix: Correct typo in GitHub URL
- New: Add and use
get_formatted_date_string()
to format the date string used when referring to a given day - New: Add unit tests for untested hooks
- New: Add CHANGELOG.md file and move all but most recent changelog entries into it
- New: Add "Hooks" section to readme.txt to document hooks provided by the plugin
- New: Add inline documentation for all hooks
- Change: Initialize plugin on 'plugins_loaded' action instead of on load
- Change: Merge
do_init()
intoinit()
- Change: Do placeholder substitutions of site name and day strings after
c2c_years_ago_today-email-body-no-posts
filter is run, so those using the hook have those values available - Change: Reformat conditional logic handling in
get_email_body()
for improved readability - Change: Allow date strings to be translated in a plugin-specific way
- CHange: Cast return value of
c2c_years_ago_today-email-if-no-posts
filter as boolean - Change: Split paragraph in README.md's "Support" section into two
- Change: Note compatibility through WP 5.1+
- Change: Update copyright date (2019)
- Change: Update License URI to be HTTPS
- New: Add README.md
- Change: Add GitHub link to readme
- Change: Note compatibility through WP 4.9+
- Change: Update copyright date (2018)
- Change: Minor whitespace tweaks in unit test bootstrap
- Fix: Properly constrain CSS
li
styling to apply only to plugin's dashboard widget and not any other dashboard widgets
- New: Add footer to daily emails to provide context about what the email is, why it is being sent, and where to go to discontinue it
- Change: Make prefatory post listing text (in widget and email) more informative
- Include month and day of the month instead of saying "this day"
- Include count of the number of posts being listed
- Use separate singular and plural strings
- Change: Use built-in WP date query syntax for finding older posts
- Delete
add_year_clause_to_query()
- Move some of the date handling code from
add_year_clause_to_query()
intoget_posts()
for use in date_query
- Delete
- Change: Split out functionality from
cron_email()
into single-purpose functions- Add
get_email_subject()
for getting email subject - Add
get_email_body()
for getting email body - Bail if either return empty string
- Add
- Change: Prevent object instantiation
- Add private
__construct()
- Add private
__wakeup()
- Add private
- Change: Update unit test bootstrap
- Default
WP_TESTS_DIR
to/tmp/wordpress-tests-lib
rather than erroring out if not defined via environment variable - Enable more error output for unit tests
- Default
- Change: Note compatibility through WP 4.7+
- Change: Remove support for WordPress older than WP 4.6 (should still work for earlier versions back to WP 4.1)
- Change: Minor inline code documnetation tweaks (fix typos, spacing)
- Change: Update copyright date (2017)
- New: Add LICENSE file
- Change: Update screenshots
- Bugfix: Fix for bug when posts across two days were returned for today by using site's time and not GMT.
- New: Add filter
c2c_years_ago_ago-email_cron_time
. - Change: Change incorrectly named filter from
c2c_years_ago_ago-first_published_year
toc2c_years_ago_today-first_published_year
. - Change: Add support for language packs:
- Don't load textdomain from file.
- Remove .pot file and /lang subdirectory.
- Fix an incorrectly defined textdomain.
- Change: Note compatibility through WP 4.4+.
- Change: Explicitly declare methods in unit tests as public.
- Change: Update copyright date (2016).
- New: Create empty index.php to prevent files from being listed if web server has enabled directory listings.
- Bugfix: Change default value for
c2c_years_ago_today-email-if-no-posts
filter from true to false. The original intent was by default not to send the email on days without past posts. - Bugfix: Load language files from the 'lang' sub-directory.
- Change: Use
dirname(__FILE__)
instead of__DIR__
since the latter is only available on PHP 5.3+ - Update: Note compatibility through WP 4.3+
- Initial public release