3.5 KiB
3.5 KiB
Changelog
WPHelper\AdminMenuPage
0.20
Added
- Add SettingsPage section option
desciption-container. Acceptscarddiv,notice,notice-infoandnone. - Sanitize SettingsPage text, url and email fields.
0.19
Added
- SettingsPage supports
text,url,emailfields. - CMB2_OptionsPage supports all admin menu top-level slugs.
Fixed
- Fixed PHP fatal error: cannot redeclare function
wph_extra_plugin_headers().
Changed
- If CMB2 plugin is not activated - show missing plugin card on
cmb2andcmb2-tabspages.
0.18
Added
- Add
wrapparameter to output WordPress admin.wraptemplate. Acceptssimpleandsidebar. - Accept
plugin_info = trueto output default plugin info meta box and wrap. - Add
Last UpdateandRelease Dateoptional headers to WordPress theme headers (Used in plugin info-box).
Changed
- All classes are pluggable.
- Prevent direct access if not withing WordPress environment.
0.17
Changed
- Various improvements to CMB2 settings pages.
- Make use of CMB2 2.9.0's
options_page_tab_nav_output()to render tabs on non-CMB2 pages. - Plugins can provide their own plugin info-box render callback.
- Parent item's first sub-menu page (itself) uses item's
tab_titleinstead ofmenu_title
Added
- Add action
wphelper/adminpage/plugin_info_box/$slugto render plugin info-box. - Add
Last UpdateandRelease Dateoptional headers to WordPress plugin headers (Used in plugin info-box).
0.16
Fixed
- Fix CMB2 "multi" options page to actually override fields.
Changed
- Add CMB2 fields directly in options array instead of using
add_fieldmethod.
0.15
Changed
- Restore deprecated param to SettingsPage constructor and add
_deprecated_argumentmessage.
0.14
Added
- Add CMB2 Options-page delegation. Allows adding CMB2 options page.
- Add CMB2 Options "multi" page. Allows CMB2 options page that saves each field to its own row in options table.
- Supports CMB2 tabs in CMB2 option-pages.
- Add Plugin Info metabox to CMB2 tables.
Changed
- Deprecate
AdminPage->setup- add_doing_it_wrongmessage. - Admin Page method
bootstrap()runs oninithook instead of constructor. Allows setter functions to have effect.
0.13
Added
- Add
methodsoption to load functions onload-{hook_suffix}hook. - Add
get_hook_suffix()getter method (hook_suffixvariable is no longer public).
v0.12
Changed
- New
AdminPageclass. - Deprecate class
AdminMenuPagein favor ofAdminPage. - Restructure source files.
v0.11
Added
- Setting Page - class and template for registering WordPress settings page.
- Options_Menu - use WordPress core
add_options_pageto register page.
Changed
- No longer require call to
setup()method. Bootstrap into WordPress from constructor method.
v0.10
Added
- Styles - enqueue styles to registered admin page
v0.9
Changed
- Don't use extract() in constructor
- Use setter methods for all variables
Fixed
- Fix PHP notices: undefined property
v0.8
Fixed
- Removed calls to AdminNotice causing errors.
v0.7
Fixed
- Fixed error when no scripts are added
Changed
- Accept
render_cbandrender_tplargs. Userendermethod instead oftemplate - Print default template if no callback or template provided
v0.6
Added
- Initial public release
- Register and print top-level or submenu pages to WordPress admin menu
- Enqueue scripts to registered admin page