_frontend/src/13a41603498b0fa2191db71544d930762e8ad1c8/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js">prefers-reduced-motion.js 77628cf8bf first comm 2 years ago progress.js 77628cf8bf first comm 2 years ago promise-finally.js 77628cf8bf first comm 2 years ago promises.js 77628cf8bf first comm 2 years ago proximity.js 77628cf8bf first comm 2 years ago proxy.js 77628cf8bf first comm 2 years ago publickeypinning.js 77628cf8bf first comm 2 years ago push-api.js 77628cf8bf first comm 2 years ago queryselector.js 77628cf8bf first comm 2 years ago readonly-attr.js 77628cf8bf first comm 2 years ago referrer-policy.js 77628cf8bf first comm 2 years ago registerprotocolhandler.js 77628cf8bf first comm 2 years ago rel-noopener.js 77628cf8bf first comm 2 years ago rel-noreferrer.js 77628cf8bf first comm 2 years ago rellist.js 77628cf8bf first comm 2 years ago rem.js 77628cf8bf first comm 2 years ago requestanimationframe.js 77628cf8bf first comm 2 years ago requestidlecallback.js 77628cf8bf first comm 2 years ago resizeobserver.js 77628cf8bf first comm 2 years ago resource-timing.js 77628cf8bf first comm 2 years ago rest-parameters.js 77628cf8bf first comm 2 years ago rtcpeerconnection.js 77628cf8bf first comm 2 years ago ruby.js 77628cf8bf first comm 2 years ago run-in.js 77628cf8bf first comm 2 years ago same-site-cookie-attribute.js 77628cf8bf first comm 2 years ago screen-orientation.js 77628cf8bf first comm 2 years ago script-async.js 77628cf8bf first comm 2 years ago script-defer.js 77628cf8bf first comm 2 years ago scrollintoview.js 77628cf8bf first comm 2 years ago scrollintoviewifneeded.js 77628cf8bf first comm 2 years ago sdch.js 77628cf8bf first comm 2 years ago selection-api.js 77628cf8bf first comm 2 years ago server-timing.js 77628cf8bf first comm 2 years ago serviceworkers.js 77628cf8bf first comm 2 years ago setimmediate.js 77628cf8bf first comm 2 years ago shadowdom.js 77628cf8bf first comm 2 years ago shadowdomv1.js 77628cf8bf first comm 2 years ago sharedarraybuffer.js 77628cf8bf first comm 2 years ago sharedworkers.js 77628cf8bf first comm 2 years ago sni.js 77628cf8bf first comm 2 years ago spdy.js 77628cf8bf first comm 2 years ago speech-recognition.js 77628cf8bf first comm 2 years ago speech-synthesis.js 77628cf8bf first comm 2 years ago spellcheck-attribute.js 77628cf8bf first comm 2 years ago sql-storage.js 77628cf8bf first comm 2 years ago srcset.js 77628cf8bf first comm 2 years ago stream.js 77628cf8bf first comm 2 years ago streams.js 77628cf8bf first comm 2 years ago stricttransportsecurity.js 77628cf8bf first comm 2 years ago style-scoped.js 77628cf8bf first comm 2 years ago subresource-bundling.js 77628cf8bf first comm 2 years ago subresource-integrity.js 77628cf8bf first comm 2 years ago svg-css.js 77628cf8bf first comm 2 years ago svg-filters.js 77628cf8bf first comm 2 years ago svg-fonts.js 77628cf8bf first comm 2 years ago svg-fragment.js 77628cf8bf first comm 2 years ago svg-html.js 77628cf8bf first comm 2 years ago svg-html5.js 77628cf8bf first comm 2 years ago svg-img.js 77628cf8bf first comm 2 years ago svg-smil.js 77628cf8bf first comm 2 years ago svg.js 77628cf8bf first comm 2 years ago sxg.js 77628cf8bf first comm 2 years ago tabindex-attr.js 77628cf8bf first comm 2 years ago template-literals.js 77628cf8bf first comm 2 years ago template.js 77628cf8bf first comm 2 years ago temporal.js 77628cf8bf first comm 2 years ago testfeat.js 77628cf8bf first comm 2 years ago text-decoration.js 77628cf8bf first comm 2 years ago text-emphasis.js 77628cf8bf first comm 2 years ago text-overflow.js 77628cf8bf first comm 2 years ago text-size-adjust.js 77628cf8bf first comm 2 years ago text-stroke.js 77628cf8bf first comm 2 years ago textcontent.js 77628cf8bf first comm 2 years ago textencoder.js 77628cf8bf first comm 2 years ago tls1-1.js 77628cf8bf first comm 2 years ago tls1-2.js 77628cf8bf first comm 2 years ago tls1-3.js 77628cf8bf first comm 2 years ago touch.js 77628cf8bf first comm 2 years ago transforms2d.js 77628cf8bf first comm 2 years ago transforms3d.js 77628cf8bf first comm 2 years ago trusted-types.js 77628cf8bf first comm 2 years ago ttf.js 77628cf8bf first comm 2 years ago typedarrays.js 77628cf8bf first comm 2 years ago u2f.js 77628cf8bf first comm 2 years ago unhandledrejection.js 77628cf8bf first comm 2 years ago upgradeinsecurerequests.js 77628cf8bf first comm 2 years ago url-scroll-to-text-fragment.js 77628cf8bf first comm 2 years ago url.js 77628cf8bf first comm 2 years ago urlsearchparams.js 77628cf8bf first comm 2 years ago use-strict.js 77628cf8bf first comm 2 years ago user-select-none.js 77628cf8bf first comm 2 years ago user-timing.js 77628cf8bf first comm 2 years ago variable-fonts.js 77628cf8bf first comm 2 years ago vector-effect.js 77628cf8bf first comm 2 years ago vibration.js 77628cf8bf first comm 2 years ago video.js 77628cf8bf first comm 2 years ago videotracks.js 77628cf8bf first comm 2 years ago viewport-unit-variants.js 77628cf8bf first comm 2 years ago viewport-units.js 77628cf8bf first comm 2 years ago wai-aria.js 77628cf8bf first comm 2 years ago wake-lock.js 77628cf8bf first comm 2 years ago wasm.js 77628cf8bf first comm 2 years ago wav.js 77628cf8bf first comm 2 years ago wbr-element.js 77628cf8bf first comm 2 years ago web-animation.js 77628cf8bf first comm 2 years ago web-app-manifest.js 77628cf8bf first comm 2 years ago web-bluetooth.js 77628cf8bf first comm 2 years ago web-serial.js 77628cf8bf first comm 2 years ago web-share.js 77628cf8bf first comm 2 years ago webauthn.js 77628cf8bf first comm 2 years ago webcodecs.js 77628cf8bf first comm 2 years ago webgl.js 77628cf8bf first comm 2 years ago webgl2.js 77628cf8bf first comm 2 years ago webgpu.js 77628cf8bf first comm 2 years ago webhid.js 77628cf8bf first comm 2 years ago webkit-user-drag.js 77628cf8bf first comm 2 years ago webm.js 77628cf8bf first comm 2 years ago webnfc.js 77628cf8bf first comm 2 years ago webp.js 77628cf8bf first comm 2 years ago websockets.js 77628cf8bf first comm 2 years ago webtransport.js 77628cf8bf first comm 2 years ago webusb.js 77628cf8bf first comm 2 years ago webvr.js 77628cf8bf first comm 2 years ago webvtt.js 77628cf8bf first comm 2 years ago webworkers.js 77628cf8bf first comm 2 years ago webxr.js 77628cf8bf first comm 2 years ago will-change.js 77628cf8bf first comm 2 years ago woff.js 77628cf8bf first comm 2 years ago woff2.js 77628cf8bf first comm 2 years ago word-break.js 77628cf8bf first comm 2 years ago wordwrap.js 77628cf8bf first comm 2 years ago x-doc-messaging.js 77628cf8bf first comm 2 years ago x-frame-options.js 77628cf8bf first comm 2 years ago xhr2.js 77628cf8bf first comm 2 years ago xhtml.js 77628cf8bf first comm 2 years ago xhtmlsmil.js 77628cf8bf first comm 2 years ago xml-serializer.js 77628cf8bf first comm 2 years ago tum/whitesports - Gogs: Simplico Git Service

Sin descripción

class.wpcom-json-api-get-comment-endpoint.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. new WPCOM_JSON_API_Get_Comment_Endpoint( array(
  3. 'description' => 'Get a single comment.',
  4. 'group' => 'comments',
  5. 'stat' => 'comments:1',
  6. 'method' => 'GET',
  7. 'path' => '/sites/%s/comments/%d',
  8. 'path_labels' => array(
  9. '$site' => '(int|string) Site ID or domain',
  10. '$comment_ID' => '(int) The comment ID'
  11. ),
  12. 'allow_fallback_to_jetpack_blog_token' => true,
  13. 'example_request' => 'https://public-api.wordpress.com/rest/v1/sites/en.blog.wordpress.com/comments/147564'
  14. ) );
  15. class WPCOM_JSON_API_Get_Comment_Endpoint extends WPCOM_JSON_API_Comment_Endpoint {
  16. // /sites/%s/comments/%d -> $blog_id, $comment_id
  17. function callback( $path = '', $blog_id = 0, $comment_id = 0 ) {
  18. $blog_id = $this->api->switch_to_blog_and_validate_user( $this->api->get_blog_id( $blog_id ) );
  19. if ( is_wp_error( $blog_id ) ) {
  20. return $blog_id;
  21. }
  22. $args = $this->query_args();
  23. $return = $this->get_comment( $comment_id, $args['context'] );
  24. if ( !$return || is_wp_error( $return ) ) {
  25. return $return;
  26. }
  27. /** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
  28. do_action( 'wpcom_json_api_objects', 'comments' );
  29. return $return;
  30. }
  31. }