Options Class for WordPress plugins & themes
- Removed
typefromselectfunction.
- Added HTML fields: color, email, month, tel, url & week.
- Enhancement: Added
multiplesupport for select field.
- Security: Added
iframetag to allowedwp_ksesallowed HTML tags. - Security: Added
noscripttag to allowedwp_ksesallowed HTML tags.
- Admin: Refactored menu page registration using WordPress best practices for
add_menu_page()andadd_submenu_page(). - Security: Enhanced input validation by adding
buttontag with essential attributes towp_ksesallowed HTML tags. - Security: Added
relattribute to allowedinputattributes inwp_ksesfor better security and compatibility. - i18n: Fixed textdomain from 'IWORKS_OPTIONS_TEXT_DOMAIN' to 'IWORKS_OPTIONS_TEXTDOMAIN' for consistent translation handling.
- Settings: Added experimental features section with toggle switch, description field, and screenshot uploads for PWA preview.
- Fixed issue for call the
add_submenu_page()function. #5
- Fixed issue with overriding value by next filter.
- Added new
get_pagehooks()method to retrieve registered admin page hooks.
- Updated changelog formatting and structure for better readability.
- Improved documentation for the changelog section.
- Fixed security issues with HTML escaping in option descriptions and radio fields.
- Added proper sanitization for option descriptions using
wp_kses_post(). - Updated version number in class header and constructor.
- Typo for nonce variable has been fixed.
- The data sanitization for complex values has been removed. #4
- The
scripttag has been added to `wp_kses' allowed tags. - The
styletag has been added to `wp_kses' allowed tags.
- Atributes
data-*has been added to `wp_kses' allowed tags. - Languages files of select2 has been added.
- The filter
'iworks/option/get/$plugin/$option_group/$option_namehas been added.
- Forms tags usage has been added to
wp_ksesallowed tags. Props for Rafał Siemiński.
- The
wp_ksesusage has been added. - The
sanitize_text_fieldusers has been added. - The
sanitizatize_callbackmethod has been added to theregister_settingscalls. - The filter
iworks/options/wp_kses_allowed_htmlhas been added. - The
wp_unslashfunction usage has been added.
- The
$optionarray have been added to few filters.
- The filter
'iworks/options/filter/tr/before/' . $option_namehas been added. - The filter
'iworks/options/filter/tr/after/' . $option_namehas been added. - The filter
'iworks/options/filter/td/begin/' . $option_namehas been added. - The filter
'iworks/options/filter/td/end/' . $option_namehas been added. - The filter
'iworks/options/filter/th/begin/' . $option_namehas been added. - The filter
'iworks/options/filter/th/end/' . $option_namehas been added.
- The warning during plugin activation has been fixed.
- Extra description for buttons has been removed.
- Loading assets has been fixed.
- The
date()function has been replced by thegmdate()function. - The select2 jQuery libray has been updated to 4.0.13.
- The deprecated
nullvalue in theadd_option()function has been replced by''.
- The warnig for regex check on null value has been fixed.
- The warning creation of dynamic property in the class has been fixed.
- One the data escaping has been removed.
- The empty
index.phpfile has been added to few directories. - The issue with undefined variable has been fixed.
- Data input sanitization has been added.
- Escaping has been added.
- The creation of dynamic property has been removed. It causes a warning in PHP 8.2. Props for waveman777.
- Select2 images has been optimized.
- Fixed PHP < 8 error.
- Fixed
last_used_tab. - Fixed
udefinedcontent in tabs. - Improved admin responsibility. Props for tanohex.
- Added
placeholderinto few fields. - Added
aria-labelinto few fields. - Refreshed used WP classes.
- Update
imagefield to new WP Media API.
- Added maxlenght param to text field.
- Fixed data get for older plugins.
- Added two debug values to better debuging.
- Unify data get - it missed dynamic added options.
- Added check for assets enqueue to avoid unnecessary loads.
- Updated jQuery-UI.
- Shorted ui-slide select to max 150px.
- Added missing icons for datepicker.
- Fixed remove default value from database.
- Added
flush_rewrite_rulesto configuration. - Added field type
button.
- Implemented
checked()function.
- Implemented WordPress PSR.
- Added options to money field.
- Added few checks to avoid wrong key warning.
- Added field type
location.
- Added CSS for tabs.
- Added 'before' and 'after' strings for input() function.
- Added check for
select()function. Now we can use array or string as value. - Added methods: number, button, submit and hidden to allow create those form elements.
- Allow using simple array for radio options.
- Handle "theme" mode to fix assets URL.
- Added ability to produce
hiddenname, prefixed by underscore. - Fixed prolblem with warning. Props for Michał
- Handle
checkbox, andswitch_buttonfields. - Improved submenu building.
- Added $option['options'] sanitization.
- Fixed a problem with classes for textarea tag.
- Fixed problem with jQuery UI slider, there was 100 as default for min value.
- IMPROVMENT: added slide for checkboxes.
- IMPROVMENT: added select2.
- IMPROVMENT: added indivudual functions to render elements.
- IMPROVMENT: added ability to create option page in any point of menu
- IMPROVMENT: added meta boxes
- IMPROVMENT: added page load hook
- IMPROVMENT: added script enqueue
- IMPROVMENT: added build-in option page
- IMPROVMENT: integrate tabs display (no more external js in theme or plugin)
- BUGFIX: fix remebering last used tab for theme usage
- IMPROVMENT: init can read both setting: plugin & themes
- IMPROVMENT: add option array filter
- IMPROVMENT: add method to register settings without prefix
- BUGFIX: default value only when is need
- IMPROVMENT: added remove two options to "decativate plugin" function
- IMPROVMENT: added email type input
- BUGFIX: repair some php warnigs
- IMPROVMENT: added filter to change options
- IMPROVMENT: added get_option_group function
- IMPROVMENT: added helper for wp_dropdown_categories
- IMPROVMENT: added helper for wp_dropdown_pages
- BUGFIX: repair get_option, to prevent return always default if null
- IMPROVMENT: added force_default to get_option method
- IMPROVMENT: add min/max attributes to filed type "number"
- IMPROVMENT: add get_option_name method