Skip to content

Version 2.6.0

Choose a tag to compare

@KBurkholder KBurkholder released this 04 Jun 21:47
· 138 commits to main since this release

= Version 2.6.0 – June 4, 2024 =

  • EAC_DOOJIGGER_VERSION constant deprecated in favor of EACDOOJIGGER_VERSION.
  • Fixed upgrade notice in plugin update notice trait.
  • New getRelease() method returns 'Stable Tag' and 'Last Updated' from readme.
  • Include header values from readme.txt in pluginData.
  • Add stable release on plugins page when different than version.
  • Moved plugin updater actions from plugin loader to new eacDoojiggerPluginUpdater class.
    • Loaded once in eacDoojiggerAutoloader.
    • Handles all derivative and extension plugins.
    • Reduces individual plugin footprint and redundancy.
    • Allows updating even when plugin is disabled or not network enabled on multi-site.
  • Improved "Advanced Mode" with isAdvancedMode(), setAdvancedMode(), and allowAdvancedMode().
    • derivative plugins must call allowAdvancedMode(true) to enable, and may overload functions or use 'allow_advanced_mode' filter to implement.
    • filter $this->apply_filters('is_advanced_mode',false,'settings');
  • Added 'advanced' attribute to settings fields to suppress field when not isAdvancedMode().
  • Made (most) options_settings_page_* methods public so html_input trait can access them.
  • New code-editor trait, loads code-mirror and wp_editor with consistant options/styling.
  • Change to tiny-mce parameters and toolbars for html fields.
  • Improved ajaxAction extension.
  • Added 'settings-grid-item-label' and 'settings-grid-item-input-{type}' class to settings divs.
  • Change 'Requires at least' to WordPress 5.8.
  • Several improvements to admin screen styling/layout.
    • Improved admin theme support using admin colors (from $_wp_admin_css_colors).
  • Changes to some javascript loading code (inc. defer admin script).
  • Support replaceable meta in options attributes, Ex. 'Title' => '[label] [info]'.
    • label, default, title, before, after, info, tooltip, help
  • Added $this->wp_kses() custom wp_kses method with extended tags.
    • Now processes all (string) admin field option attributes through $this->wp_kses().
    • New 'script' field attribute since script tags no longer allowed in other attributes.
    • $this->minifyString() (used for inline scripts/css) now uses $this->wp_kses().
  • Added 'tooltip' attribute to settings fields with jQuery hover tooltip.
    • Automatically populated with field 'info' when not set or set to true.
  • added tooltip filter to disable auto-populate.
    • $this->add_filter("automatic_tooltips", function($bool, $groupName, $groupMeta){...});
  • Added input field filters before rendering fields.
    • $this->add_filter("options_group_meta_{$groupName}", function($groupMeta){...});
    • $this->add_filter("options_field_meta_{$fieldName}", function($fieldMeta, $fieldValue){...});
  • Added actions to wpmu_installer extension.
    • do_action('eacDoojigger_installer_invoke', $installAction, $installMethod, $installOptions, $onSuccess)
    • do_action('eacDoojigger_installer_install', $installOptions)
    • do_action('eacDoojigger_installer_update', $installOptions)
    • do_action('eacDoojigger_installer_uninstall', $installOptions)
    • do_action('eacDoojigger_installer_delete', $installOptions)
  • Added filters to file_system extension.
    • $fs = apply_filters('eacDoojigger_load_filesystem',$wp_filesystem,true,'file system required',[]);
    • $fs = apply_filters('eacDoojigger_link_filesystem',$wp_filesystem,true,'file system required',[]);
  • Fix call/use of WC() in session_manager to prevent erros if woocommerce has been disabled.