Changeset 37543
- Timestamp:
- 05/23/2016 07:00:41 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed.php
r37513 r37543 51 51 * The default height is 1.5 times the width, or 1000px, whichever is smaller. 52 52 * 53 * The 'embed_defaults'filter can be used to adjust either of these values.53 * The {@see 'embed_defaults'} filter can be used to adjust either of these values. 54 54 * 55 55 * @since 2.9.0 -
trunk/src/wp-includes/feed.php
r37516 r37543 69 69 * 70 70 * The default feed is 'rss2', unless a plugin changes it through the 71 * 'default_feed'filter.71 * {@see 'default_feed'} filter. 72 72 * 73 73 * @since 2.5.0 -
trunk/src/wp-includes/formatting.php
r37515 r37543 21 21 * Code within certain html blocks are skipped. 22 22 * 23 * Do not use this function before the 'init'action hook; everything will break.23 * Do not use this function before the {@see 'init'} action hook; everything will break. 24 24 * 25 25 * @since 0.71 … … 1442 1442 * alphanumeric, _, space, ., -, @. After sanitizing, it passes the username, 1443 1443 * raw username (the username in the parameter), and the value of $strict as 1444 * parameters for the 'sanitize_user'filter.1444 * parameters for the {@see 'sanitize_user'} filter. 1445 1445 * 1446 1446 * @since 2.0.0 … … 1905 1905 * 1906 1906 * The $content is run through esc_textarea(), which uses htmlspecialchars() 1907 * to convert special characters to HTML entities. If $richeditis set to true,1908 * it is simply a holder for the 'format_to_edit'filter.1907 * to convert special characters to HTML entities. If `$richedit` is set to true, 1908 * it is simply a holder for the {@see 'format_to_edit'} filter. 1909 1909 * 1910 1910 * @since 0.71 … … 2878 2878 * is less than 55 words, then the content will be returned as is. 2879 2879 * 2880 * The 55 word limit can be modified by plugins/themes using the excerpt_lengthfilter2881 * The ' […]' string can be modified by plugins/themes using the excerpt_morefilter2880 * The 55 word limit can be modified by plugins/themes using the {@see 'excerpt_length'} filter 2881 * The ' […]' string can be modified by plugins/themes using the {@see 'excerpt_more'} filter 2882 2882 * 2883 2883 * @since 1.5.0 … … 3354 3354 * 3355 3355 * A number of characters are removed from the URL. If the URL is for displaying 3356 * (the default behaviour) ampersands are also replaced. The 'clean_url'filter3356 * (the default behaviour) ampersands are also replaced. The {@see 'clean_url'} filter 3357 3357 * is applied to the returned cleaned URL. 3358 3358 * … … 3363 3363 * Defaults to return value of wp_allowed_protocols() 3364 3364 * @param string $_context Private. Use esc_url_raw() for database usage. 3365 * @return string The cleaned $url after the 'clean_url'filter is applied.3365 * @return string The cleaned $url after the {@see 'clean_url'} filter is applied. 3366 3366 */ 3367 3367 function esc_url( $url, $protocols = null, $_context = 'display' ) { … … 3492 3492 * Escapes text strings for echoing in JS. It is intended to be used for inline JS 3493 3493 * (in a tag attribute, for example onclick="..."). Note that the strings have to 3494 * be in single quotes. The filter 'js_escape'is also applied here.3494 * be in single quotes. The {@see 'js_escape'} filter is also applied here. 3495 3495 * 3496 3496 * @since 2.8.0 -
trunk/src/wp-includes/functions.php
r37510 r37543 2319 2319 * 2320 2320 * This filter should be used to add, not remove, mime types. To remove 2321 * mime types, use the 'upload_mimes'filter.2321 * mime types, use the {@see 'upload_mimes'} filter. 2322 2322 * 2323 2323 * @since 3.5.0 … … 2592 2592 2593 2593 /** 2594 * Kill WordPress execution and display HTML message with error message.2594 * Kills WordPress execution and display HTML message with error message. 2595 2595 * 2596 2596 * This is the default handler for wp_die if you want a custom one for your 2597 * site then you can overload using the wp_die_handler filter in wp_die2597 * site then you can overload using the {@see 'wp_die_handler'} filter in wp_die(). 2598 2598 * 2599 2599 * @since 3.0.0 … … 3631 3631 * Mark a function as deprecated and inform when it has been used. 3632 3632 * 3633 * There is a hook deprecated_function_runthat will be called that can be used3633 * There is a {@see 'hook deprecated_function_run'} that will be called that can be used 3634 3634 * to get the backtrace up to what file and function called the deprecated 3635 3635 * function. 3636 3636 * 3637 * The current behavior is to trigger a user error if WP_DEBUGis true.3637 * The current behavior is to trigger a user error if `WP_DEBUG` is true. 3638 3638 * 3639 3639 * This function is to be used in every function that is deprecated. … … 3751 3751 * Mark a file as deprecated and inform when it has been used. 3752 3752 * 3753 * There is a hook deprecated_file_includedthat will be called that can be used3753 * There is a hook {@see 'deprecated_file_included'} that will be called that can be used 3754 3754 * to get the backtrace up to what file and function included the deprecated 3755 3755 * file. 3756 3756 * 3757 * The current behavior is to trigger a user error if WP_DEBUGis true.3757 * The current behavior is to trigger a user error if `WP_DEBUG` is true. 3758 3758 * 3759 3759 * This function is to be used in every file that is deprecated. … … 3868 3868 * Mark something as being incorrectly called. 3869 3869 * 3870 * There is a hook doing_it_wrong_runthat will be called that can be used3870 * There is a hook {@see 'doing_it_wrong_run'} that will be called that can be used 3871 3871 * to get the backtrace up to what file and function called the deprecated 3872 3872 * function. 3873 3873 * 3874 * The current behavior is to trigger a user error if WP_DEBUGis true.3874 * The current behavior is to trigger a user error if `WP_DEBUG` is true. 3875 3875 * 3876 3876 * @since 3.1.0 … … 4573 4573 * @param string $file Path to the file. 4574 4574 * @param array $default_headers List of headers, in the format array('HeaderKey' => 'Header Name'). 4575 * @param string $context Optional. If specified adds filter hook "extra_{$context}_headers".4575 * @param string $context Optional. If specified adds filter hook {@see 'extra_$context_headers'}. 4576 4576 * Default empty. 4577 4577 * @return array Array of file headers in `HeaderKey => Header Value` format. … … 4993 4993 * 4994 4994 * This is disabled for certain screens where a login screen could cause an 4995 * inconvenient interruption. A filter called wp_auth_check_loadcan be used4995 * inconvenient interruption. A filter called {@see 'wp_auth_check_load'} can be used 4996 4996 * for fine-grained control. 4997 4997 * -
trunk/src/wp-includes/functions.wp-scripts.php
r37191 r37543 48 48 49 49 /** 50 * Print scripts in document head that are in the $handles queue.51 * 52 * Called by admin-header.php and wp_headhook. Since it is called by wp_head on every page load,50 * Prints scripts in document head that are in the $handles queue. 51 * 52 * Called by admin-header.php and {@see 'wp_head'} hook. Since it is called by wp_head on every page load, 53 53 * the function does not instantiate the WP_Scripts object unless script names are explicitly passed. 54 * Makes use of already-instantiated $wp_scripts global if present. Use provided wp_print_scripts54 * Makes use of already-instantiated $wp_scripts global if present. Use provided {@see 'wp_print_scripts'} 55 55 * hook to register/enqueue new scripts. 56 56 * -
trunk/src/wp-includes/http.php
r37428 r37543 582 582 * Whitelists allowed redirect hosts for safe HTTP requests as well. 583 583 * 584 * Attached to the http_request_host_is_externalfilter.584 * Attached to the {@see 'http_request_host_is_external'} filter. 585 585 * 586 586 * @since 3.6.0 … … 599 599 * Whitelists any domain in a multisite installation for safe HTTP requests. 600 600 * 601 * Attached to the http_request_host_is_externalfilter.601 * Attached to the {@see 'http_request_host_is_external'} filter. 602 602 * 603 603 * @since 3.6.0 -
trunk/src/wp-includes/kses.php
r37518 r37543 35 35 * You can override this in a plugin. 36 36 * 37 * The wp_kses_allowed_html filter is more powerful and supplies context. 38 * CUSTOM_TAGS is not recommended and should be considered deprecated. 37 * The {@see 'wp_kses_allowed_html'} filter is more powerful and supplies context. 38 * 39 * `CUSTOM_TAGS` is not recommended and should be considered deprecated. 39 40 * 40 41 * @see wp_kses_allowed_html() … … 668 669 * You add any kses hooks here. 669 670 * 670 * There is currently only one kses WordPress hook and it is called here. All671 * parameters are passed to the hooks and expected to receive a string.671 * There is currently only one kses WordPress hook, {@see 'pre_kses'}, and it is called here. 672 * All parameters are passed to the hooks and expected to receive a string. 672 673 * 673 674 * @since 1.0.0 … … 676 677 * @param array $allowed_html List of allowed HTML elements 677 678 * @param array $allowed_protocols Allowed protocol in links 678 * @return string Filtered content through 'pre_kses' hook679 * @return string Filtered content through {@see 'pre_kses'} hook. 679 680 */ 680 681 function wp_kses_hook( $string, $allowed_html, $allowed_protocols ) { … … 1642 1643 * content in WordPress Loop. 1643 1644 * 1644 * Does not remove the kses_init() function from 'init'hook (priority is1645 * default). Also does not remove kses_init() function from 'set_current_user'1645 * Does not remove the kses_init() function from {@see 'init'} hook (priority is 1646 * default). Also does not remove kses_init() function from {@see 'set_current_user'} 1646 1647 * hook (priority is also default). 1647 1648 * … … 1665 1666 * Sets up most of the Kses filters for input form content. 1666 1667 * 1667 * If you remove the kses_init() function from 'init'hook and1668 * 'set_current_user'(priority is default), then none of the Kses filter hooks1668 * If you remove the kses_init() function from {@see 'init'} hook and 1669 * {@see 'set_current_user'} (priority is default), then none of the Kses filter hooks 1669 1670 * will be added. 1670 1671 * -
trunk/src/wp-includes/link-template.php
r37499 r37543 33 33 * Conditionally adds a trailing slash if the permalink structure has a trailing 34 34 * slash, strips the trailing slash if not. The string is passed through the 35 * 'user_trailingslashit'filter. Will remove trailing slash from string, if35 * {@see 'user_trailingslashit'} filter. Will remove trailing slash from string, if 36 36 * site is not set to have them. 37 37 * … … 3666 3666 * Sends a Link: rel=shortlink header if a shortlink is defined for the current page. 3667 3667 * 3668 * Attached to the wpaction.3668 * Attached to the {@see 'wp'} action. 3669 3669 * 3670 3670 * @since 3.0.0 -
trunk/src/wp-includes/media.php
r37505 r37543 149 149 * resized one if it exists. 150 150 * 151 * A plugin may use the 'image_downsize'filter to hook into and offer image151 * A plugin may use the {@see 'image_downsize'} filter to hook into and offer image 152 152 * resizing services for images. The hook must return an array with the same 153 153 * elements that are returned in the function. The first element being the URL … … 310 310 * Gets an img tag for an image attachment, scaling it down if requested. 311 311 * 312 * The filter 'get_image_tag_class'allows for changing the class name for the312 * The {@see 'get_image_tag_class'} filter allows for changing the class name for the 313 313 * image without having to use regular expressions on the HTML content. The 314 314 * parameters are: what WordPress will use for the class, the Attachment ID, 315 315 * image align value, and the size the image should be. 316 316 * 317 * The second filter 'get_image_tag'has the HTML content, which can then be317 * The second filter, {@see 'get_image_tag'}, has the HTML content, which can then be 318 318 * further manipulated by a plugin to change all attribute values and even HTML 319 319 * content. … … 563 563 * 564 564 * The returned array has the file size, the image width, and image height. The 565 * filter 'image_make_intermediate_size'can be used to hook in and change the565 * {@see 'image_make_intermediate_size'} filter can be used to hook in and change the 566 566 * values of the returned array. The only parameter is the resized file path. 567 567 * … … 1388 1388 * Adds a 'wp-post-image' class to post thumbnails. Internal use only. 1389 1389 * 1390 * Uses the 'begin_fetch_post_thumbnail_html' and 'end_fetch_post_thumbnail_html' action hooks to1391 * dynamically add/remove itself so as to only filter post thumbnails.1390 * Uses the {@see 'begin_fetch_post_thumbnail_html'} and {@see 'end_fetch_post_thumbnail_html'} 1391 * action hooks to dynamically add/remove itself so as to only filter post thumbnails. 1392 1392 * 1393 1393 * @ignore … … 1435 1435 * 1436 1436 * Allows a plugin to replace the content that would otherwise be returned. The 1437 * filter is 'img_caption_shortcode'and passes an empty string, the attr1437 * filter is {@see 'img_caption_shortcode'} and passes an empty string, the attr 1438 1438 * parameter and the content parameter values. 1439 1439 *
Note: See TracChangeset
for help on using the changeset viewer.