Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way.
See #49572. Built from https://develop.svn.wordpress.org/trunk@48104 git-svn-id: http://core.svn.wordpress.org/trunk@47873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1515,7 +1515,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
if ( isset( $post_data['terms'] ) && is_array( $post_data['terms'] ) ) {
|
||||
$taxonomies = array_keys( $post_data['terms'] );
|
||||
|
||||
// Validating term ids.
|
||||
// Validating term IDs.
|
||||
foreach ( $taxonomies as $taxonomy ) {
|
||||
if ( ! array_key_exists( $taxonomy, $post_type_taxonomies ) ) {
|
||||
return new IXR_Error( 401, __( 'Sorry, one of the given taxonomies is not supported by the post type.' ) );
|
||||
@@ -5656,7 +5656,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$postdata = get_post( $post_ID, ARRAY_A );
|
||||
|
||||
/*
|
||||
* If there is no post data for the give post id, stop now and return an error.
|
||||
* If there is no post data for the give post ID, stop now and return an error.
|
||||
* Otherwise a new post will be created (which was the old behavior).
|
||||
*/
|
||||
if ( ! $postdata || empty( $postdata['ID'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user