Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: akirk/extract-wp-hooks
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.2.0
Choose a base ref
...
head repository: akirk/extract-wp-hooks
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.3.0
Choose a head ref
  • 12 commits
  • 11 files changed
  • 2 contributors

Commits on Sep 29, 2025

  1. Fix namespace prefixing for built-in PHP types

    Previously, when a namespace was configured, built-in PHP types like
    `null` were incorrectly prefixed with the namespace (e.g.,
    `ActivityPub\null`). This fix:
    
    - Adds `maybe_prefix_namespace()` helper to centralize namespace logic
    - Excludes all built-in types: null, mixed, void, false, true, callable,
      resource, iterable
    - Adds test case to verify null and other built-in types are not prefixed
    obenland committed Sep 29, 2025
    Configuration menu
    Copy the full SHA
    331c014 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5ce05e View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2025

  1. Add support for dynamic hook names with concatenation

    Dynamic hooks (e.g., 'prefix_' . $var) are now properly documented:
    - Hook name/slug uses {$var} syntax (e.g., activitypub_inbox_{$type})
    - Example code uses wildcard * (e.g., activitypub_inbox_*)
    
    Implementation:
    - Detects concatenation operator (.) after hook string
    - Extracts variable names and appends as {$var}
    - Added extract_dynamic_parts() helper to extract concatenated variables
    - Added get_hook_name_for_example() helper to replace {$var} with *
    - Works with both 'prefixed' and 'default' example styles
    
    Tests:
    - Added test_dynamic_hook_extraction() to verify hook name format
    - Added test_dynamic_hook_documentation_uses_wildcard() to verify example format
    - All 39 tests passing
    obenland committed Sep 30, 2025
    Configuration menu
    Copy the full SHA
    ebcff73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    317a2fa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    77bc945 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a53989c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dd123e6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f0f9c3c View commit details
    Browse the repository at this point in the history
  7. Fix coding style

    akirk committed Sep 30, 2025
    Configuration menu
    Copy the full SHA
    eaa1a1b View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2025

  1. Add support for deprecated hooks

    This commit adds comprehensive support for detecting and documenting deprecated WordPress hooks that use do_action_deprecated() and apply_filters_deprecated().
    
    Features:
    - Detects deprecated hooks with version and replacement information
    - Generates deprecation warnings in documentation with version info and replacement guidance
    - Shows deprecated hooks with strikethrough formatting in index
    - Handles all deprecation scenarios: with/without version, with/without replacement
    - Comprehensive test coverage with expected output verification
    obenland committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    5106405 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2025

  1. Configuration menu
    Copy the full SHA
    9f4d7b3 View commit details
    Browse the repository at this point in the history
  2. Fix phpcs

    akirk committed Nov 13, 2025
    Configuration menu
    Copy the full SHA
    3daf5f5 View commit details
    Browse the repository at this point in the history
Loading