Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Library: sanitize font collection data #58636

Merged
merged 9 commits into from
Feb 5, 2024

Commits on Feb 3, 2024

  1. Configuration menu
    Copy the full SHA
    6becc25 View commit details
    Browse the repository at this point in the history
  2. add a test case to be sure that the data returned by get_data is alwa…

    …ys sanitized following the font collection schema
    matiasbenedetto authored and creativecoder committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    148bcb0 View commit details
    Browse the repository at this point in the history
  3. format php

    matiasbenedetto authored and creativecoder committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    ccdf2f9 View commit details
    Browse the repository at this point in the history
  4. lint

    matiasbenedetto authored and creativecoder committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    9e52287 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6b88f9b View commit details
    Browse the repository at this point in the history
  6. rename function

    matiasbenedetto authored and creativecoder committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    98e8295 View commit details
    Browse the repository at this point in the history
  7. php format

    matiasbenedetto authored and creativecoder committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    cd5b338 View commit details
    Browse the repository at this point in the history
  8. Updates how collection data is sanitized and validated

    - Sanitize and validate as early as possible, so that appropriate notices are logged right away
    - Use static method for sanitization schema so that we can use a closure rather than a public method for src sanitization
    - Adds a check for WP_Font_Utils::sanitize_from_schema so that class callables like array( $this, 'sanitization_method'	) can be used
    - Updates method name to indicate that sanitization is done first, as this might remove invalid data and affect the validation result
    creativecoder committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    f307972 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2024

  1. Fix potential nitpicks

    creativecoder committed Feb 4, 2024
    Configuration menu
    Copy the full SHA
    37e899a View commit details
    Browse the repository at this point in the history