Lubinik Learning

Training mode

Forms, Nonces & Capabilities

Time remaining:

0 / 20 answered

  1. 1. How should server-side WordPress code treat submitted form data?

    How should server-side WordPress code treat submitted form data?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  2. 2. Why check the expected HTTP method in a form handler?

    Why check the expected HTTP method in a form handler?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  3. 3. What does a WordPress nonce primarily verify?

    What does a WordPress nonce primarily verify?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  4. 4. Which function prints a hidden nonce field for a form?

    Which function prints a hidden nonce field for a form?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  5. 5. Which function verifies a general WordPress nonce?

    Which function verifies a general WordPress nonce?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  6. 6. What does check_admin_referer() help verify?

    What does check_admin_referer() help verify?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  7. 7. Why is a valid nonce not enough to authorize a change?

    Why is a valid nonce not enough to authorize a change?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  8. 8. What does current_user_can() check?

    What does current_user_can() check?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  9. 9. Why pass an object ID when checking a meta capability such as edit_post?

    Why pass an object ID when checking a meta capability such as edit_post?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  10. 10. What does validation do?

    What does validation do?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  11. 11. What does sanitization do?

    What does sanitization do?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  12. 12. Which function is suitable for sanitizing a simple one-line text field?

    Which function is suitable for sanitizing a simple one-line text field?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  13. 13. Which function sanitizes an email address?

    Which function sanitizes an email address?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  14. 14. Which function sanitizes a lowercase machine-readable key?

    Which function sanitizes a lowercase machine-readable key?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  15. 15. What does absint() produce?

    What does absint() produce?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  16. 16. Why is wp_unslash() commonly used before sanitizing request data?

    Why is wp_unslash() commonly used before sanitizing request data?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  17. 17. When should stored data be escaped?

    When should stored data be escaped?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  18. 18. Why redirect after a successful POST handler?

    Why redirect after a successful POST handler?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  19. 19. How should validation failure normally be handled?

    How should validation failure normally be handled?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  20. 20. Which order best describes a secure form handler?

    Which order best describes a secure form handler?
    Hint

    Identify the data-model or security responsibility before choosing the API.