Changeset 49790
- Timestamp:
- 12/10/2020 11:57:29 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-post-type.php
r49789 r49790 41 41 * 42 42 * @since 4.6.0 43 * @var object$labels43 * @var stdClass $labels 44 44 */ 45 45 public $labels; … … 159 159 160 160 /** 161 * The URL to the icon to be used for this menu.161 * The URL or reference to the icon to be used for this menu. 162 162 * 163 163 * Pass a base64-encoded SVG using a data URI, which will be colored to match the color scheme. … … 318 318 * 319 319 * @since 4.6.0 320 * @var object$cap320 * @var stdClass $cap 321 321 */ 322 322 public $cap; … … 381 381 /** 382 382 * Constructor. 383 * 384 * See the register_post_type() function for accepted arguments for `$args`. 383 385 * 384 386 * Will populate object properties from the provided arguments and assign other … … 401 403 /** 402 404 * Sets post type properties. 405 * 406 * See the register_post_type() function for accepted arguments for `$args`. 403 407 * 404 408 * @since 4.6.0 … … 415 419 * 416 420 * @param array $args Array of arguments for registering a post type. 421 * See the register_post_type() function for accepted arguments. 417 422 * @param string $post_type Post type key. 418 423 */ -
trunk/src/wp-includes/class-wp-taxonomy.php
r49451 r49790 39 39 * 40 40 * @since 4.7.0 41 * @var object41 * @var stdClass 42 42 */ 43 43 public $labels; … … 153 153 * 154 154 * @since 4.7.0 155 * @var object155 * @var stdClass 156 156 */ 157 157 public $cap; … … 239 239 /** 240 240 * Constructor. 241 * 242 * See the register_taxonomy() function for accepted arguments for `$args`. 241 243 * 242 244 * @since 4.7.0 … … 257 259 /** 258 260 * Sets taxonomy properties. 261 * 262 * See the register_taxonomy() function for accepted arguments for `$args`. 259 263 * 260 264 * @since 4.7.0 … … 272 276 * 273 277 * @param array $args Array of arguments for registering a taxonomy. 278 * See the register_taxonomy() function for accepted arguments. 274 279 * @param string $taxonomy Taxonomy key. 275 280 * @param string[] $object_type Array of names of object types for the taxonomy. -
trunk/src/wp-includes/class-wp-user.php
r49108 r49790 41 41 * 42 42 * @since 2.0.0 43 * @var object43 * @var stdClass 44 44 */ 45 45 public $data; -
trunk/src/wp-includes/functions.php
r49744 r49790 1179 1179 * @since 4.4.0 1180 1180 * 1181 * @return string[] An array of parameters to remove from the URL.1181 * @return string[] An array of query variable names to remove from the URL. 1182 1182 */ 1183 1183 function wp_removable_query_args() { … … 1214 1214 1215 1215 /** 1216 * Filters the list of query variable s to remove.1216 * Filters the list of query variable names to remove. 1217 1217 * 1218 1218 * @since 4.2.0 1219 1219 * 1220 * @param string[] $removable_query_args An array of query variable s to remove from a URL.1220 * @param string[] $removable_query_args An array of query variable names to remove from a URL. 1221 1221 */ 1222 1222 return apply_filters( 'removable_query_args', $removable_query_args ); -
trunk/src/wp-includes/pomo/plural-forms.php
r48769 r49790 91 91 * 92 92 * @since 4.9.0 93 * 94 * @throws Exception If there is a syntax or parsing error with the string. 93 95 * 94 96 * @param string $str String to parse. … … 250 252 * 251 253 * @since 4.9.0 254 * 255 * @throws Exception If the plural form value cannot be calculated. 252 256 * 253 257 * @param int $n Variable "n" to substitute. -
trunk/src/wp-includes/post.php
r49789 r49790 5509 5509 * Default 'publish'. 5510 5510 * } 5511 * @return array|false Array of pages matching defaults or `$args`. 5511 * @return WP_Post[]|int[]|false Array of pages (or hierarchical post type items). Boolean false if the 5512 * specified post type is not hierarchical or the specified status is not 5513 * supported by the post type. 5512 5514 */ 5513 5515 function get_pages( $args = array() ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r49731 r49790 267 267 268 268 /** 269 * Filters the query arguments for a request. 269 * Filters WP_Query arguments when querying users via the REST API. 270 * 271 * The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug. 272 * 273 * Possible filter names include: 274 * 275 * - `rest_post_query` 276 * - `rest_page_query` 277 * - `rest_attachment_query` 270 278 * 271 279 * Enables adding extra arguments or setting defaults for a post collection request. … … 275 283 * @link https://developer.wordpress.org/reference/classes/wp_query/ 276 284 * 277 * @param array $args Key value array of query var to query value.278 * @param WP_REST_Request $request The request used.285 * @param array $args Array of arguments to be passed to WP_Query. 286 * @param WP_REST_Request $request The REST API request. 279 287 */ 280 288 $args = apply_filters( "rest_{$this->post_type}_query", $args, $request ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r49610 r49790 234 234 235 235 /** 236 * Filters the query arguments before passing them to get_terms().236 * Filters get_terms() arguments when querying users via the REST API. 237 237 * 238 238 * The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug. … … 247 247 * @param array $prepared_args Array of arguments to be 248 248 * passed to get_terms(). 249 * @param WP_REST_Request $request The currentrequest.249 * @param WP_REST_Request $request The REST API request. 250 250 */ 251 251 $prepared_args = apply_filters( "rest_{$this->taxonomy}_query", $prepared_args, $request ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r49120 r49790 313 313 * 314 314 * @param array $prepared_args Array of arguments for WP_User_Query. 315 * @param WP_REST_Request $request The currentrequest.315 * @param WP_REST_Request $request The REST API request. 316 316 */ 317 317 $prepared_args = apply_filters( 'rest_user_query', $prepared_args, $request ); -
trunk/src/wp-includes/taxonomy.php
r49789 r49790 2196 2196 * @type string $slug The term slug to use. Default empty string. 2197 2197 * } 2198 * @return array|WP_Error An array containing the `term_id` and `term_taxonomy_id`, 2199 * WP_Error otherwise. 2198 * @return array|WP_Error { 2199 * An array of the new term data, WP_Error otherwise. 2200 * 2201 * @type int $term_id The new term ID. 2202 * @type int|string $term_taxonomy_id The new term taxonomy ID. Can be a numeric string. 2203 * } 2200 2204 */ 2201 2205 function wp_insert_term( $term, $taxonomy, $args = array() ) { … … 3743 3747 * @global wpdb $wpdb WordPress database abstraction object. 3744 3748 * 3745 * @param array$terms List of term objects (passed by reference).3746 * @param string $taxonomy Term context.3749 * @param object[]|WP_Term[] $terms List of term objects (passed by reference). 3750 * @param string $taxonomy Term context. 3747 3751 */ 3748 3752 function _pad_term_counts( &$terms, $taxonomy ) { -
trunk/src/wp-includes/widgets.php
r49561 r49790 803 803 * @since 3.0.0 804 804 * 805 * @param array $widget _id{805 * @param array $widget { 806 806 * An associative array of widget arguments. 807 807 * 808 808 * @type string $name Name of the widget. 809 809 * @type string $id Widget ID. 810 * @type callable $callback When the hook is fired on the front end, $callbackis an array811 * containing the widget object. Fired on the back end, $callback812 * is 'wp_widget_control', see $_callback.810 * @type callable $callback When the hook is fired on the front end, `$callback` is an array 811 * containing the widget object. Fired on the back end, `$callback` 812 * is 'wp_widget_control', see `$_callback`. 813 813 * @type array $params An associative array of multi-widget arguments. 814 814 * @type string $classname CSS class applied to the widget container. 815 815 * @type string $description The widget description. 816 * @type array $_callback When the hook is fired on the back end, $_callbackis populated817 * with an array containing the widget object, see $callback.816 * @type array $_callback When the hook is fired on the back end, `$_callback` is populated 817 * with an array containing the widget object, see `$callback`. 818 818 * } 819 819 */
Note: See TracChangeset
for help on using the changeset viewer.