Changeset 49789
- Timestamp:
- 12/10/2020 11:51:52 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-post-type.php
r49496 r49789 124 124 * 125 125 * @since 4.6.0 126 * @var bool $show_in_menu126 * @var bool|string $show_in_menu 127 127 */ 128 128 public $show_in_menu = null; -
trunk/src/wp-includes/class-wp-query.php
r49700 r49789 1731 1731 * 1732 1732 * @param string $query_var Query variable key. 1733 * @param mixed $default Optional. Value to return if the query variable is not set. Default empty .1733 * @param mixed $default Optional. Value to return if the query variable is not set. Default empty string. 1734 1734 * @return mixed Contents of the query variable. 1735 1735 */ -
trunk/src/wp-includes/class-wp-term.php
r46586 r49789 45 45 * 46 46 * @since 4.4.0 47 * @var string47 * @var int 48 48 */ 49 49 public $term_group = ''; … … 205 205 * @since 4.4.0 206 206 * 207 * @param string $filter Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'r aw'.207 * @param string $filter Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'rss', or 'raw'. 208 208 */ 209 209 public function filter( $filter ) { -
trunk/src/wp-includes/link-template.php
r49672 r49789 1701 1701 * 1702 1702 * @param bool $in_same_term Optional. Whether post should be in a same taxonomy term. Default false. 1703 * @param int[]|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty .1703 * @param int[]|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty string. 1704 1704 * @param bool $previous Optional. Whether to retrieve previous post. Default true 1705 1705 * @param string $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'. … … 1749 1749 * @since 4.4.0 1750 1750 * 1751 * @param array $excluded_terms Array of excluded term IDs.1751 * @param array|string $excluded_terms Array of excluded term IDs. Empty string if none were provided. 1752 1752 */ 1753 1753 $excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms ); -
trunk/src/wp-includes/post.php
r49731 r49789 1394 1394 * Default is value of $has_archive. 1395 1395 * @type bool $pages Whether the permastruct should provide for pagination. Default true. 1396 * @type const$ep_mask Endpoint mask to assign. If not specified and permalink_epmask is set,1396 * @type int $ep_mask Endpoint mask to assign. If not specified and permalink_epmask is set, 1397 1397 * inherits from $permalink_epmask. If not specified and permalink_epmask 1398 1398 * is not set, defaults to EP_PERMALINK. … … 2335 2335 * @param object|WP_Post|array $post The post object or array 2336 2336 * @param string $context Optional. How to sanitize post fields. 2337 * Accepts 'raw', 'edit', 'db', or 'display'.2338 * Default 'display'.2337 * Accepts 'raw', 'edit', 'db', 'display', 2338 * 'attribute', or 'js'. Default 'display'. 2339 2339 * @return object|WP_Post|array The now sanitized post object or array (will be the 2340 2340 * same type as `$post`). … … 2508 2508 * @param mixed $value Value of the prefixed post field. 2509 2509 * @param int $post_id Post ID. 2510 * @param string $context Context for how to sanitize the field. Possible2511 * values include 'edit', 'display',2512 * 'attribute' and 'js'.2510 * @param string $context Context for how to sanitize the field. 2511 * Accepts 'raw', 'edit', 'db', 'display', 2512 * 'attribute', or 'js'. Default 'display'. 2513 2513 */ 2514 2514 $value = apply_filters( "{$field}", $value, $post_id, $context ); -
trunk/src/wp-includes/taxonomy.php
r49769 r49789 1510 1510 1511 1511 /** 1512 * Sanitize Term allfields.1512 * Sanitize all term fields. 1513 1513 * 1514 1514 * Relies on sanitize_term_field() to sanitize the term. The difference is that 1515 * this function will sanitize <strong>all</strong>fields. The context is based1515 * this function will sanitize **all** fields. The context is based 1516 1516 * on sanitize_term_field(). 1517 1517 * 1518 * The $termis expected to be either an array or an object.1518 * The `$term` is expected to be either an array or an object. 1519 1519 * 1520 1520 * @since 2.3.0 … … 1522 1522 * @param array|object $term The term to check. 1523 1523 * @param string $taxonomy The taxonomy name to use. 1524 * @param string $context Optional. Context in which to sanitize the term. Accepts 'edit', 'db', 1525 * 'display', 'attribute', or 'js'. Default 'display'. 1524 * @param string $context Optional. Context in which to sanitize the term. 1525 * Accepts 'raw', 'edit', 'db', 'display', 'rss', 1526 * 'attribute', or 'js'. Default 'display'. 1526 1527 * @return array|object Term with all fields sanitized. 1527 1528 */ … … 1573 1574 * @param int $term_id Term ID. 1574 1575 * @param string $taxonomy Taxonomy Name. 1575 * @param string $context Context in which to sanitize the term field. Accepts 'edit', 'db', 'display', 1576 * 'attribute', or 'js'. 1576 * @param string $context Context in which to sanitize the term field. 1577 * Accepts 'raw', 'edit', 'db', 'display', 'rss', 1578 * 'attribute', or 'js'. Default 'display'. 1577 1579 * @return mixed Sanitized field. 1578 1580 */ -
trunk/src/wp-includes/user.php
r49752 r49789 307 307 * @param string $username Username for authentication. 308 308 * @param string $password Password for authentication. 309 * @return WP_User|WP_Error WP_User on success, WP_Error on failure. 309 * @return WP_User|WP_Error|null WP_User on success, WP_Error on failure, null if 310 * null is passed in and this isn't an API request. 310 311 */ 311 312 function wp_authenticate_application_password( $input_user, $username, $password ) { -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-post.php
r46985 r49789 29 29 * @param array $args Array with elements for the post. 30 30 * 31 * @return int |WP_Error The post ID on success. The value 0 or WP_Erroron failure.31 * @return int The post ID on success. The value 0 on failure. 32 32 */ 33 33 public function create_object( $args ) { … … 41 41 * @param array $fields Post data. 42 42 * 43 * @return int |WP_Error The post ID on success. The value 0 or WP_Erroron failure.43 * @return int The post ID on success. The value 0 on failure. 44 44 */ 45 45 public function update_object( $post_id, $fields ) {
Note: See TracChangeset
for help on using the changeset viewer.