Changeset 37025
- Timestamp:
- 03/17/2016 03:52:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r36661 r37025 248 248 249 249 /** 250 * Filter whether XML-RPC is enabled. 251 * 252 * This is the proper filter for turning off XML-RPC. 250 * Filter whether XML-RPC methods requiring authentication are enabled. 251 * 252 * Contrary to the way it's named, this filter does not control whether XML-RPC is *fully* 253 * enabled, rather, it only controls whether XML-RPC methods requiring authentication - such 254 * as for publishing purposes - are enabled. 255 * 256 * Further, the filter does not control whether pingbacks or other custom endpoints that don't 257 * require authentication are enabled. This behavior is expected, and due to how parity was matched 258 * with the `enable_xmlrpc` UI option the filter replaced when it was introduced in 3.5. 259 * 260 * To disable XML-RPC methods that require authentication, use: 261 * 262 * add_filter( 'xmlrpc_enabled', '__return_false' ); 263 * 264 * For more granular control over all XML-RPC methods and requests, see the {@see 'xmlrpc_methods'} 265 * and {@see 'xmlrpc_element_limit'} hooks. 253 266 * 254 267 * @since 3.5.0
Note: See TracChangeset
for help on using the changeset viewer.