Skip to content

Update wp-async-task.php#24

Open
Luka-Codes wants to merge 1 commit intotechcrunch:masterfrom
Luka-Codes:patch-1
Open

Update wp-async-task.php#24
Luka-Codes wants to merge 1 commit intotechcrunch:masterfrom
Luka-Codes:patch-1

Conversation

@Luka-Codes
Copy link

Key Improvements:

Initialization property: protected $_body_data = array()

Type checks: is_array(), is_string() for better security

Timing attack protection: Use hash_equals() instead of == for nonce verification

Better error handling: Logging for debugging

Fallback for ap_sanitize_unslash: If the function does not exist

Class name check: get_class($this) instead of CLASS

Filters for extensibility: wp_async_task_request_args

Response check: For WP_Error in remote post

Key Improvements:

Initialization property: protected $_body_data = array()

Type checks: is_array(), is_string() for better security

Timing attack protection: Use hash_equals() instead of == for nonce verification

Better error handling: Logging for debugging

Fallback for ap_sanitize_unslash: If the function does not exist

Class name check: get_class($this) instead of __CLASS__

Filters for extensibility: wp_async_task_request_args

Response check: For WP_Error in remote post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant