Skip to content

v2.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Feb 15:45
66a0afb

Added

  • Apermo.WordPress.RequireRestPermissionCallback
    sniff: flags register_rest_route() calls without a
    permission_callback in the args array. Missing
    callbacks leave REST endpoints publicly accessible.
  • Apermo.PHP.NoFilterSanitizeString sniff: flags
    deprecated FILTER_SANITIZE_STRING,
    FILTER_SANITIZE_STRIPPED, and
    FILTER_SANITIZE_MAGIC_QUOTES constants. Suggests
    sanitize_text_field() or wp_slash() instead.
  • Apermo.WordPress.RequireOptionAutoload sniff: warns
    when add_option() or update_option() is called
    without an explicit autoload parameter. Omitting it
    defaults to autoloading on every page load.