3.3 KiB
3.3 KiB
WPHelper\PluginCore Changelog
0.22
Release Date: Aug 8, 2022
Removed
- Remove all dependencies. No require.
0.21
Release Date: Aug 5, 2022
Added
- Add
action_linksoption. Accepts standardplugin_action_links_callback filter function. Alternatively accepts array of links. links can be HTML tag strings ('<a href="/link">Link</a>') or arrays with keyshrefandtext. Special use case'href' => 'menu_page'available for quick Settings link generation.
Changed
- Plugin updater - prefer plugin header
Update URIfor plugin update checker, if no URI provided in options. - Validate class
WPHelper\AdminPageexists - required foradmin_pageoption/settings. - Significant code cleanup, notes, doc blocks and reorganizing of PluginCore class.
0.20
Release Date: Jul 29, 2022
Changed
- Update
composer.jsondependencies -abuyoyo/adminmenupage ~0.20.
0.19
Release Date: Jul 27, 2022
Changed
- Update
composer.jsondependencies. - Require PHP >= 7.4
0.18
Release Date: May 22, 2022
Changed
- Class
PluginCoreis pluggable. - Prevent direct PHP script execution if not accessed within the WordPress environment.
Fixed
- Include
plugin.phpif functionget_plugin_datadoes not exist. This could case critical failure.
0.17
Release Date: Feb 7, 2021
Added
- Pass instance of
PluginCoretoAdminPageif current version supports it (used in Plugin Info Metabox generation).
0.16
Fixed
- Upgrade callback
upgrade_cbwill execute when only single plugin is updated.
0.15
Changed
- Use
new WPHelper\AdminPage()(WPHelper\AdminMenuPage >= 0.12) instead of deprecatedAdminMenuPage. - Do not hook
Puc_v4_Factory::buildUpdateCheckeronadmin_init. Run in plugin's global scope.
0.14
Added
- Add
admin_pageoption to create a WPHelper\AdminMenuPage instance. - Add
plugin_datavariable with WordPress coreget_plugin_data()object. Use header data if no slug or title provided.
Fixed
- Fix PHP defines when
constnot provided.
0.13.3
- Fix
upgrade_cbfunction handling.
0.13.2
- Fix
upgrade_cb_wrapperfunction.
0.13.1
- Update
composer.jsonversion.
0.13
- Fix
upgrade_cb_wrapperfunction.
0.12
- Add upgrade_cb wrapper function that conducts sanity-checks before calling
upgrade_cbcallback provided. - Add
plugin_basename()getter/setter function andplugin_basenamevariable. - Add changelog.
0.11
- Add
upgrade_cboption - callable function to run on WordPressupgrader_process_completehook.
0.10
- Fix undefined index PHP notices introduced in version 0.9
0.9
- Add automatic plugin update checker using
yahnis-elsts/plugin-update-checkerlibrary.
0.8
- Fix wrong
plugin_basenameconstant.
0.7
- Don't use
extractin constructor - Add sanity checks and normalize getter/setter functions
- Add
file()getter function.
0.6
- Add
path(),url()getter/setter functions. - Add
name()getter function.
0.5
- Initial release.
- Defines
PLUGINNAME_URL,_PATH,_DIR,_BASENAME,_FILEconstants for plugin. - Registers plugin activation, deactivation and uninstall hook if callbacks provided.
- Static function
PluginCore::get($slug)will return instance of PluginCore registered with$slug. Thus PluginCore can be initiated without polluting global scope.