Releases: johannheyne/wordpress-toolset
Release 0.0.189
Fixes "Creation of dynamic property" warnings in PHP 8.2
Full Changelog: 0.0.188...0.0.189
Release 0.0.188
Updates tool_acf_translate
- Adds translations by context (field keys, group_key, post ids, posttype, content-options, site-options )
- Enables ACF translations for ui text on/off
Fixes tool_adaptive_images
- Fixes remove_image_dimensions_attributes() when function not exists
Adds tool_countdown
Release v0.0.187
Fixes Github Updater
Release 0.0.186
Updates github updater
- Adds "tested up to version" and "requires version" to the admin list update message
Release v0.0.185
Improves github updater
- Adds parameters "tested" and "requires"
Release 0.0.184
Updates tool "Form"
- Fixes an issue missing attr field value by form class
- Fixes module "form" readme
- Fixes validating fields like checkbox, that send no request data if empty
- Fixes form attribute "method"
- Fixes param 'has_messages' issue where set to true when validation general runs
- Fixes switch_toggle parameters
- Fixes form method attribute
- Fixes field validation messages
- Fixes checkbox label for attribute, should be sam as field id
- Fixes error on calling form class without form_id param
- Changes form attribute value action to "./"
- Changes "select" fields defaults property "current_value" from "category" to ""
- Adds form attribute enctype with value "multipart/form-data"
- Adds field type "select"
- Adds field messages not pre defined by filter "'class/Form/messages'"
- Adds fields property "description"
- Adds field "switch_toggle"
- Adds ordering form items to readme
- Adds attribute enctype to example code
- Adds second param $form_object to filter "class/Form/request/"
- Adds validation messages html to some fields
- Adds displaying form messages
- Adds filtering form message setting, change order in form
- Adds form classes "has_messages", "has_form_messages", "has_field_massages"
- Adds field wrapper class "has-field-message"
- Adds templating form fields
- Adds field types "checkbox" and "switch_toggle"
- Adds attr "data-type" for field wrapper elements
- Adds field textarea
- Adds field templates
- Adds validating "required" messages
- Adds legend "attrs_field" parameter
- Adds form element data-form-id attribute
- Adds "before_checkbox" and "after_checkbox" parameters and filters
- Updates naming of "Defining Global Form Messages" in readme
- Updates select field submitting form, if submit button exists, trigger click on that button to perform browser native field validation before may sending form
- Updates readme "Adding Fields"
- Updates triggering submit event of a form
- Updates readme with Filter: Field Template Data
Updates tool "array_pos"
- Fixes typo in readme of tool_array_pos
- Fixes error missing "parent_pos_key"
- Fixes an issue positioning to top and bottom
- Adds nested arrays
Updates tool "translate"
- Fixes removing undefined admin translations
- Adds adding custom translation strings to admin translation list
- Adds text domain to admin translations
- Adds search for all admin cols
- Adds search link to text domain admin column
- Adds support for gettext without context and custom text domain
- Adds logic for detecting in php defined translations to protect changes in domain, context and text
Update tool "multilanguage"
- Fixes missing "form_id" error when $form->is_form_request called
- Fixes an critical error on option page for language select
- Fixes error if php class "Locale" does not exists
- Adds default lang in tool_multilanguage_get_country_label()
- Adds draft get country code by language code
Updates Readme
- Sorts links
Updates tool "posttypes"
- Adds tool_get_current_post_type()
Updates tool "acf_translate"
- Adds filter "tool_acf_translate/disabling" to "tool_acf_translate". This filter can be used to prevent translating on special actions.
Updates accessing update files from github
- Adds token in request header
Updates tool "tool_wp_auto_updates"
- Fixes missing settings
Udpades tool "tool_adaptive_images"
- Fixes editor images mising in media lib image size select field
Adds tool "tool_array_layout"
Updates tool "filesize"
- Adds filters
- Adds readme
Updates tool "get_adaptive_image"
- Adds filter "get_adaptive_image/before_img_tag"
- Adds filter "get_adaptive_image/after_img_tag"
Updates tool "tool_multilanguage_region_lang_data"
That tool return an array of links to the others language copies of a page. This is used by the language switcher.
- Adds $GLOBALS['toolset']['multisite_hreflang'] that allows to switch between using each site as a language(true) or each site is multilanguage (false).
This $GLOBALS['toolset']['multisite_hreflang'] is optional and no action on the theme is required
Release 0.0.183
Adds Tool "ToolArrayPos"
ToolArrayPos lets you order array items by integers and rules.
Adds Tool "Form"
Enables to build a form, config and places the content by WordPress filters
Adds tool "tool_get_lang_value_from_array"
Gets the translation of an array of text string from the current locale or language.
$text_in_current_lang = tool( array(
'name' => 'tool_get_lang_value_from_array',
'param' => array(
'default' => 'default text',
'en_GB' => 'translation for locale',
'en' => 'translation for a language',
),
);Fixes missing ACF postbox title translation in admin sidebar
Improves ACF admin styles
- Adds space and line to ACF group headlines in term edit pages
- Removes obsolet space in ACF WYSIWYG editor
Release 0.0.182
Adds tool "tool_get_current_post_type"
Tries to get the posttype by $wp_query when get_post_type() fails.
$post_type = tool_get_current_post_type();Release 0.0.181
Adds tool "tool_menu_iten_types"
Adds tool "tool_adaptive_images"
Prevent size class if param "name" is false, required for svg
Adaptive Image Base Size
Increases adaptive image base size from 2048px to 2560px following the wordpress default image max size.
Update Tool "tool_image_sizes"
Enables registering image sizes for use in wp.media
'tool_image_sizes' => array(
'add_image_sizes' => array(
'custom_size_name' => array(
'width' => '550',
'height' => '0',
'crop' => false,
'js' => true, // registers the image size for use in JavaScript like wp.media
),
),
);Release 0.0.180
Updates tool "adaptive_images"
Adds Tool "get_adaptive_image_data"
Adds Methode tool_get_aspect_ratio()
(Documentation:)[https://github.com/johannheyne/wordpress-toolset/blob/master/tools/tool_adaptive_images/readme.markdown]