- Timestamp:
- 05/25/2021 01:11:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r49955 r51000 38 38 39 39 /** 40 * Registers the routes for the objects of the controller.40 * Registers the routes for comments. 41 41 * 42 42 * @since 4.7.0 … … 72 72 'args' => array( 73 73 'id' => array( 74 'description' => __( 'Unique identifier for the object.' ),74 'description' => __( 'Unique identifier for the comment.' ), 75 75 'type' => 'integer', 76 76 ), … … 1382 1382 'properties' => array( 1383 1383 'id' => array( 1384 'description' => __( 'Unique identifier for the object.' ),1384 'description' => __( 'Unique identifier for the comment.' ), 1385 1385 'type' => 'integer', 1386 1386 'context' => array( 'view', 'edit', 'embed' ), … … 1393 1393 ), 1394 1394 'author_email' => array( 1395 'description' => __( 'Email address for the object author.' ),1395 'description' => __( 'Email address for the comment author.' ), 1396 1396 'type' => 'string', 1397 1397 'format' => 'email', … … 1403 1403 ), 1404 1404 'author_ip' => array( 1405 'description' => __( 'IP address for the object author.' ),1405 'description' => __( 'IP address for the comment author.' ), 1406 1406 'type' => 'string', 1407 1407 'format' => 'ip', … … 1409 1409 ), 1410 1410 'author_name' => array( 1411 'description' => __( 'Display name for the object author.' ),1411 'description' => __( 'Display name for the comment author.' ), 1412 1412 'type' => 'string', 1413 1413 'context' => array( 'view', 'edit', 'embed' ), … … 1417 1417 ), 1418 1418 'author_url' => array( 1419 'description' => __( 'URL for the object author.' ),1419 'description' => __( 'URL for the comment author.' ), 1420 1420 'type' => 'string', 1421 1421 'format' => 'uri', … … 1423 1423 ), 1424 1424 'author_user_agent' => array( 1425 'description' => __( 'User agent for the object author.' ),1425 'description' => __( 'User agent for the comment author.' ), 1426 1426 'type' => 'string', 1427 1427 'context' => array( 'edit' ), … … 1431 1431 ), 1432 1432 'content' => array( 1433 'description' => __( 'The content for the object.' ),1433 'description' => __( 'The content for the comment.' ), 1434 1434 'type' => 'object', 1435 1435 'context' => array( 'view', 'edit', 'embed' ), … … 1440 1440 'properties' => array( 1441 1441 'raw' => array( 1442 'description' => __( 'Content for the object, as it exists in the database.' ),1442 'description' => __( 'Content for the comment, as it exists in the database.' ), 1443 1443 'type' => 'string', 1444 1444 'context' => array( 'edit' ), 1445 1445 ), 1446 1446 'rendered' => array( 1447 'description' => __( 'HTML content for the object, transformed for display.' ),1447 'description' => __( 'HTML content for the comment, transformed for display.' ), 1448 1448 'type' => 'string', 1449 1449 'context' => array( 'view', 'edit', 'embed' ), … … 1453 1453 ), 1454 1454 'date' => array( 1455 'description' => __( "The date the object was published, in the site's timezone." ),1455 'description' => __( "The date the comment was published, in the site's timezone." ), 1456 1456 'type' => 'string', 1457 1457 'format' => 'date-time', … … 1459 1459 ), 1460 1460 'date_gmt' => array( 1461 'description' => __( 'The date the object was published, as GMT.' ),1461 'description' => __( 'The date the comment was published, as GMT.' ), 1462 1462 'type' => 'string', 1463 1463 'format' => 'date-time', … … 1465 1465 ), 1466 1466 'link' => array( 1467 'description' => __( 'URL to the object.' ),1467 'description' => __( 'URL to the comment.' ), 1468 1468 'type' => 'string', 1469 1469 'format' => 'uri', … … 1472 1472 ), 1473 1473 'parent' => array( 1474 'description' => __( 'The ID for the parent of the object.' ),1474 'description' => __( 'The ID for the parent of the comment.' ), 1475 1475 'type' => 'integer', 1476 1476 'context' => array( 'view', 'edit', 'embed' ), … … 1484 1484 ), 1485 1485 'status' => array( 1486 'description' => __( 'State of the object.' ),1486 'description' => __( 'State of the comment.' ), 1487 1487 'type' => 'string', 1488 1488 'context' => array( 'view', 'edit' ), … … 1492 1492 ), 1493 1493 'type' => array( 1494 'description' => __( 'Type of Comment for the object.' ),1494 'description' => __( 'Type of the comment.' ), 1495 1495 'type' => 'string', 1496 1496 'context' => array( 'view', 'edit', 'embed' ), … … 1516 1516 1517 1517 $schema['properties']['author_avatar_urls'] = array( 1518 'description' => __( 'Avatar URLs for the object author.' ),1518 'description' => __( 'Avatar URLs for the comment author.' ), 1519 1519 'type' => 'object', 1520 1520 'context' => array( 'view', 'edit', 'embed' ), … … 1612 1612 1613 1613 $query_params['orderby'] = array( 1614 'description' => __( 'Sort collection by object attribute.' ),1614 'description' => __( 'Sort collection by comment attribute.' ), 1615 1615 'type' => 'string', 1616 1616 'default' => 'date_gmt',
Note: See TracChangeset
for help on using the changeset viewer.