CoreFiles by mySites.guru
class-wp-rest-comment-meta-fields.php21 lines, 343 bytes, from wordpress-4.7-beta1.zip
Raw History Compare with 4.6-beta4
md5
6d7c3e291ab6b92b013eef099fcb5f93
sha1
0bfb27f5d88a79667caaeb0f605fca05d896f005
sha256
ff8dfb226c95a417fc4acabffa29b99590eb05caa9873f7a31e6e7e083529de4
<?php

class WP_REST_Comment_Meta_Fields extends WP_REST_Meta_Fields {
	/**
	 * Get the object type for meta.
	 *
	 * @return string
	 */
	protected function get_meta_type() {
		return 'comment';
	}

	/**
	 * Get the type for `register_rest_field`.
	 *
	 * @return string
	 */
	public function get_rest_field_type() {
		return 'comment';
	}
}

No other release has this exact content. See every version of this file.