Declare visibility of _prepare_post_type() as protected. See #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20714 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ecb207683
commit
86280c6d68
|
@ -689,7 +689,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
* @param array $fields The subset of post fields to return
|
* @param array $fields The subset of post fields to return
|
||||||
* @return array The prepared post type data
|
* @return array The prepared post type data
|
||||||
*/
|
*/
|
||||||
public function _prepare_post_type( $post_type, $fields ) {
|
protected function _prepare_post_type( $post_type, $fields ) {
|
||||||
$_post_type = array(
|
$_post_type = array(
|
||||||
'name' => $post_type->name,
|
'name' => $post_type->name,
|
||||||
'label' => $post_type->label,
|
'label' => $post_type->label,
|
||||||
|
|
Loading…
Reference in New Issue