Skip to content

[codex] fix REST filter callback typo#77

Draft
chaochaoweb3 wants to merge 1 commit into
owen0o0:masterfrom
chaochaoweb3:codex/fix-rest-filter-callback-typo
Draft

[codex] fix REST filter callback typo#77
chaochaoweb3 wants to merge 1 commit into
owen0o0:masterfrom
chaochaoweb3:codex/fix-rest-filter-callback-typo

Conversation

@chaochaoweb3

Copy link
Copy Markdown

Summary

  • fix the WordPress callback name used when disabling REST and JSONP REST APIs

Why

The code used _return_false, but WordPress provides __return_false. The missing underscore makes the callback invalid when the option is enabled.

Fixes #69.

Validation

  • git diff --check
  • verified no _return_false callback remains for rest_enabled or rest_jsonp_enabled
  • php -l inc/inc.php not run: PHP is not installed in this local environment

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.

拼写错误导致wp统计报错

1 participant