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: soderlind/additional-javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 20e7323
Choose a base ref
...
head repository: soderlind/additional-javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6aec7ab
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Apr 8, 2025

  1. Refactor JavaScript and PHP code for consistency and clarity

    - Updated function signatures and array formatting in `additional-javascript.php` for improved readability.
    - Changed `default_js_template` function declaration style for consistency.
    - Modified array syntax to use consistent spacing in `register_post_type_javascript` and `register_additional_javascript` functions.
    - Refactored jQuery usage to vanilla JavaScript in `additional-javascript-preview.js` for better performance and compatibility.
    - Enhanced comments to accurately describe functionality, particularly in the `custom_javascript` preview handler.
    soderlind committed Apr 8, 2025
    Configuration menu
    Copy the full SHA
    886969c View commit details
    Browse the repository at this point in the history
  2. Update version to 1.1.0 and improve capability handling in custom Jav…

    …aScript settings
    
    - Updated plugin version from 1.0.1 to 1.1.0 in additional-javascript.php.
    - Added a new comment for the version definition to clarify its purpose for cache-busting assets.
    - Changed capability from 'edit_css' to 'unfiltered_html' in class-custom-javascript-control.php to allow broader editing permissions.
    - Enhanced constructor documentation to specify exceptions and parameter types more clearly.
    - Improved code formatting for better readability and consistency.
    soderlind committed Apr 8, 2025
    Configuration menu
    Copy the full SHA
    42b7718 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #6 from soderlind/refactor

    Refactor
    soderlind authored Apr 8, 2025
    Configuration menu
    Copy the full SHA
    6aec7ab View commit details
    Browse the repository at this point in the history
Loading