0٬LV33LV3﬊LV@3*ELV3aϬLV=3tɬLV4RaϬLV ?4笊LV 6*鬊LV`6+`ȬLV8K`ȬLVp8KYԬLV`:DLVB:<1ϬLV0C:LV0 ;pLVP;BLVD;<tɬLV0@=RaϬLV @F=tɬLV`@R5ܬLV`p@Q LVp@*鬊LV`@+-LV``A=tɬLVPAR5ܬLV@AQ0٬LVA3ǬLV A鬊LVPAA쬊LVA֬LVA3aϬLV@PA﬊LVA* LVP C*鬊LV`C+ELV C﬊LV@C*ELVCaϬLV@SC LV 0F*鬊LV0`F+HLV @G*鬊LV@`G+YԬLVP(PHDFLVPPIt-LV@0J=LV0PJALV`J<LV``J2FLVpKtLVXK<֬LVPK>﬊LVK*a̬LVM1ݬLV`M.ݬLV@MݬLVM4*鬊LV@M+YԬLV8NDFLVPOt-LV@P=LVPPALVP<LV`P2FLV`pQtLV]Q<֬LVQ>﬊LVQ*ȬLV^VȬLV _WȬLV@`X4ʬLVPYQ0٬LVY3aϬLVcYa̬LVp0\*鬊LV0\+ȬLVP0e]`ˬLVP_Ma LVP`_NLVEH`pLV`P`BLVP``BLV``<1ϬLVp`h`LVSऊ`XapLVpPaBLVa<qάLVP4UiaxsLVa﬊LV_*cLVP_-LVhd=묊LVPPduLVd<1ϬLVPld﬊LVd*YԬLVpfDFLVPftLVnf<1ϬLVPofLVPxipFLVPitxˬLV i3LV`itLVqi<LVPPjpFLVPPjtxˬLV@ j3LV `jtLVsj<LVPlpLV0 l<1ϬLV0 ul-LVm=-LVm=LVPmAqLVpP mR鬊LVP `mAqLV@` mR鬊LV` pmA4ʬLVPp mQ鬊LVp mAqLVP mR鬊LV mA쬊LV mLV PmuLV m<1ϬLV |m } if ( in_array( WP_REST_Search_Controller::PROP_URL, $fields, true ) ) { $data[ WP_REST_Search_Controller::PROP_URL ] = get_permalink( $post->ID ); } if ( in_array( WP_REST_Search_Controller::PROP_TYPE, $fields, true ) ) { $data[ WP_REST_Search_Controller::PROP_TYPE ] = $this->type; } if ( in_array( WP_REST_Search_Controller::PROP_SUBTYPE, $fields, true ) ) { $data[ WP_REST_Search_Controller::PROP_SUBTYPE ] = $post->post_type; } return $data; } /** * Prepares links for the search result of a given ID. * * @since 5.0.0 * * @param int $id Item ID. * @return array Links for the given item. */ public function prepare_item_links( $id ) { $post = get_post( $id ); $links = array(); $item_route = rest_get_route_for_post( $post ); if ( ! empty( $item_route ) ) { $links['self'] = array( 'href' => rest_url( $item_route ), 'embeddable' => true, ); } $links['about'] = array( 'href' => rest_url( 'wp/v2/types/' . $post->post_type ), ); return $links; } /** * Overwrites the default protected and private title format. * * By default, WordPress will show password protected or private posts with a title of * "Protected: %s" or "Private: %s", as the REST API communicates the status of a post * in a machine-readable format, we remove the prefix. * * @since 5.0.0 * * @return string Title format. */ public function protected_title_format() { return '%s'; } /** * Attempts to detect the route to access a single item. * * @since 5.0.0 * @deprecated 5.5.0 Use rest_get_route_for_post() * @see rest_get_route_for_post() * * @param WP_Post $post Post object. * @return string REST route relative to the REST base URI, or empty string if unknown. */ protected function detect_rest_item_route( $post ) { _deprecated_function( __METHOD__, '5.5.0', 'rest_get_route_for_post()' ); return rest_get_route_for_post( $post ); } }