Changeset 37487
- Timestamp:
- 05/22/2016 05:39:00 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r37486 r37487 706 706 * passed to edit.php for the popular tags edit links. 707 707 * 708 * The 'exclude' and 'include' arguments are used for the {@link get_tags()} 709 * function. Only one should be used, because only one will be used and the 710 * other ignored, if they are both set. 708 * The 'exclude' and 'include' arguments are used for the get_tags() function. Only one 709 * should be used, because only one will be used and the other ignored, if they are both set. 711 710 * 712 711 * @since 2.3.0 -
trunk/src/wp-includes/class-wp-ajax-response.php
r37032 r37487 16 16 17 17 /** 18 * Constructor - Passes args to {@link WP_Ajax_Response::add()}.18 * Constructor - Passes args to WP_Ajax_Response::add(). 19 19 * 20 20 * @since 2.1.0 -
trunk/src/wp-includes/class-wp-embed.php
r36970 r37487 44 44 * Since the [embed] shortcode needs to be run earlier than other shortcodes, 45 45 * this function removes all existing shortcodes, registers the [embed] shortcode, 46 * calls {@link do_shortcode()}, and then re-registers the old shortcodes.46 * calls do_shortcode(), and then re-registers the old shortcodes. 47 47 * 48 48 * @global array $shortcode_tags … … 89 89 90 90 /** 91 * Register an embed handler. Do not use this function directly, use {@link wp_embed_register_handler()} instead. 91 * Registers an embed handler. 92 * 93 * Do not use this function directly, use wp_embed_register_handler() instead. 94 * 92 95 * This function should probably also only be used for sites that do not support oEmbed. 93 96 * … … 105 108 106 109 /** 107 * Unregister a previously registered embed handler. Do not use this function directly, use {@link wp_embed_unregister_handler()} instead. 110 * Unregisters a previously-registered embed handler. 111 * 112 * Do not use this function directly, use wp_embed_unregister_handler() instead. 108 113 * 109 114 * @param string $id The handler ID that should be removed. … … 115 120 116 121 /** 117 * The {@link do_shortcode()} callback function. 118 * 119 * Attempts to convert a URL into embed HTML. Starts by checking the URL against the regex of the registered embed handlers. 120 * If none of the regex matches and it's enabled, then the URL will be given to the {@link WP_oEmbed} class. 122 * The do_shortcode() callback function. 123 * 124 * Attempts to convert a URL into embed HTML. Starts by checking the URL against the regex of 125 * the registered embed handlers. If none of the regex matches and it's enabled, then the URL 126 * will be given to the WP_oEmbed class. 121 127 * 122 128 * @param array $attr { … … 313 319 314 320 /** 315 * Passes any unlinked URLs that are on their own line to {@link WP_Embed::shortcode()}for potential embedding.316 * 317 * @ usesWP_Embed::autoembed_callback()321 * Passes any unlinked URLs that are on their own line to WP_Embed::shortcode() for potential embedding. 322 * 323 * @see WP_Embed::autoembed_callback() 318 324 * 319 325 * @param string $content The content to be searched. … … 332 338 333 339 /** 334 * Callback function for {@link WP_Embed::autoembed()}.340 * Callback function for WP_Embed::autoembed(). 335 341 * 336 342 * @param array $match A regex match array. -
trunk/src/wp-includes/class-wp-error.php
r32568 r37487 12 12 * 13 13 * Container for checking for WordPress errors and error messages. Return 14 * WP_Error and use {@link is_wp_error()} to check if this class is returned.15 * Manycore WordPress functions pass this class in the event of an error and14 * WP_Error and use is_wp_error() to check if this class is returned. Many 15 * core WordPress functions pass this class in the event of an error and 16 16 * if not handled properly will result in code errors. 17 17 * -
trunk/src/wp-includes/class-wp-role.php
r35935 r37487 64 64 65 65 /** 66 * Remove capability fromrole.66 * Removes a capability from a role. 67 67 * 68 * This is a container for {@link WP_Roles::remove_cap()}to remove the69 * capability from the role. That is to say, that {@link70 * WP_Roles::remove_cap()} implements the functionality, but it also makes71 * sense to use this class,because you don't need to enter the role name.68 * This is a container for WP_Roles::remove_cap() to remove the 69 * capability from the role. That is to say, that WP_Roles::remove_cap() 70 * implements the functionality, but it also makes sense to use this class, 71 * because you don't need to enter the role name. 72 72 * 73 73 * @since 2.0.0 -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r37431 r37487 3113 3113 * @type int $category_id 3114 3114 * } 3115 * @return bool|IXR_Error See {@link wp_delete_term()}for return info.3115 * @return bool|IXR_Error See wp_delete_term() for return info. 3116 3116 */ 3117 3117 public function wp_deleteCategory( $args ) { … … 3245 3245 * - 'post_id' - Default is ''. The post where the comment is posted. Empty string shows all comments. 3246 3246 * - 'number' - Default is 10. Total number of media items to retrieve. 3247 * - 'offset' - Default is 0. See {@link WP_Query::query()}for more.3247 * - 'offset' - Default is 0. See WP_Query::query() for more. 3248 3248 * 3249 3249 * @since 2.7.0 … … 3257 3257 * @type array $struct 3258 3258 * } 3259 * @return array|IXR_Error Contains a collection of comments. See {@link wp_xmlrpc_server::wp_getComment()}for a description of each item contents3259 * @return array|IXR_Error Contains a collection of comments. See wp_xmlrpc_server::wp_getComment() for a description of each item contents 3260 3260 */ 3261 3261 public function wp_getComments( $args ) { … … 3329 3329 * 3330 3330 * By default, the comment will be moved to the trash instead of deleted. 3331 * See {@link wp_delete_comment()} for more information on 3332 * this behavior. 3331 * See wp_delete_comment() for more information on this behavior. 3333 3332 * 3334 3333 * @since 2.7.0 … … 3342 3341 * @type int $comment_ID 3343 3342 * } 3344 * @return bool|IXR_Error {@link wp_delete_comment()}3343 * @return bool|IXR_Error See wp_delete_comment(). 3345 3344 */ 3346 3345 public function wp_deleteComment( $args ) { … … 3499 3498 * @type array $content_struct 3500 3499 * } 3501 * @return int|IXR_Error {@link wp_new_comment()}3500 * @return int|IXR_Error See wp_new_comment(). 3502 3501 */ 3503 3502 public function wp_newComment($args) { -
trunk/src/wp-includes/class-wp.php
r37366 r37487 719 719 * @access public 720 720 * 721 * @param string|array $query_args Passed to {@link parse_request()}721 * @param string|array $query_args Passed to parse_request(). 722 722 */ 723 723 public function main($query_args = '') { -
trunk/src/wp-includes/comment.php
r37423 r37487 324 324 * The amount of comments in a post or total comments. 325 325 * 326 * A lot like {@link wp_count_comments()}, in that they both return comment 327 * stats (albeit with different types). The {@link wp_count_comments()} actual 328 * caches, but this function does not. 326 * A lot like wp_count_comments(), in that they both return comment stats (albeit with different types). 327 * The wp_count_comments() actually caches, but this function does not. 329 328 * 330 329 * @since 2.0.0 -
trunk/src/wp-includes/cron.php
r36299 r37487 458 458 * @access private 459 459 * 460 * @param array $cron Cron info array from {@link _get_cron_array()}.460 * @param array $cron Cron info array from _get_cron_array(). 461 461 */ 462 462 function _set_cron_array($cron) { … … 473 473 * @access private 474 474 * 475 * @param array $cron Cron info array from {@link _get_cron_array()}.475 * @param array $cron Cron info array from _get_cron_array(). 476 476 * @return array An upgraded Cron info array. 477 477 */ -
trunk/src/wp-includes/deprecated.php
r37431 r37487 2127 2127 2128 2128 /** 2129 * Alias of {@link wp_unregister_sidebar_widget()}.2129 * Serves as an alias of wp_unregister_sidebar_widget(). 2130 2130 * 2131 2131 * @since 2.2.0 -
trunk/src/wp-includes/formatting.php
r37473 r37487 2105 2105 * Callback to convert URI match to HTML A element. 2106 2106 * 2107 * This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link 2108 * make_clickable()}. 2107 * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). 2109 2108 * 2110 2109 * @since 2.3.2 … … 2142 2141 * Callback to convert URL match to HTML A element. 2143 2142 * 2144 * This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link 2145 * make_clickable()}. 2143 * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). 2146 2144 * 2147 2145 * @since 2.3.2 … … 2172 2170 * Callback to convert email address match to HTML A element. 2173 2171 * 2174 * This function was backported from 2.5.0 to 2.3.2. Regex callback for {@link 2175 * make_clickable()}. 2172 * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). 2176 2173 * 2177 2174 * @since 2.3.2 … … 2368 2365 * Convert one smiley code to the icon graphic file equivalent. 2369 2366 * 2370 * Callback handler for {@link convert_smilies()}. 2367 * Callback handler for convert_smilies(). 2368 * 2371 2369 * Looks up one smiley code in the $wpsmiliestrans global array and returns an 2372 2370 * `<img>` string for that smiley. -
trunk/src/wp-includes/general-template.php
r37431 r37487 2851 2851 2852 2852 /** 2853 * Retrieve the contents of the search WordPress query variable.2854 * 2855 * The search query string is passed through {@link esc_attr()}2856 * to ensure that it is safefor placing in an html attribute.2853 * Retrieves the contents of the search WordPress query variable. 2854 * 2855 * The search query string is passed through esc_attr() to ensure that it is safe 2856 * for placing in an html attribute. 2857 2857 * 2858 2858 * @since 2.3.0 … … 2878 2878 2879 2879 /** 2880 * Display the contents of the search query variable.2881 * 2882 * The search query string is passed through {@link esc_attr()}2883 * to ensure that it is safefor placing in an html attribute.2880 * Displays the contents of the search query variable. 2881 * 2882 * The search query string is passed through esc_attr() to ensure that it is safe 2883 * for placing in an html attribute. 2884 2884 * 2885 2885 * @since 2.1.0 … … 2987 2987 * 2988 2988 * It is possible to add query vars to the link by using the 'add_args' argument 2989 * and see {@link add_query_arg()}for more information.2989 * and see add_query_arg() for more information. 2990 2990 * 2991 2991 * The 'before_page_number' and 'after_page_number' arguments allow users to -
trunk/src/wp-includes/post-template.php
r37249 r37487 57 57 * Sanitize the current title when retrieving or displaying. 58 58 * 59 * Works like {@link the_title()}, except the parameters can be in a string or59 * Works like the_title(), except the parameters can be in a string or 60 60 * an array. See the function for what can be override in the $args parameter. 61 61 * 62 * The title before it is displayed will have the tags stripped and {@link63 * esc_attr()} before it is passed to the user or displayed. The default64 * as with {@link the_title()},is to display the title.62 * The title before it is displayed will have the tags stripped and esc_attr() 63 * before it is passed to the user or displayed. The default as with the_title(), 64 * is to display the title. 65 65 * 66 66 * @since 2.3.0 … … 1210 1210 1211 1211 /** 1212 * Display or retrieve list of pages with optional home link. 1213 * 1214 * The arguments are listed below and part of the arguments are for {@link 1215 * wp_list_pages()} function. Check that function for more info on those 1216 * arguments. 1212 * Displays or retrieves a list of pages with an optional home link. 1213 * 1214 * The arguments are listed below and part of the arguments are for wp_list_pages()} function. 1215 * Check that function for more info on those arguments. 1217 1216 * 1218 1217 * @since 2.7.0 -
trunk/src/wp-includes/post.php
r37481 r37487 287 287 * 288 288 * The arguments listed as defaults are for this function and also of the 289 * {@link get_posts()} function. The arguments are combined with the 290 * get_children defaults and are then passed to the {@link get_posts()} 291 * function, which accepts additional arguments. You can replace the defaults in 292 * this function, listed below and the additional arguments listed in the 293 * {@link get_posts()} function. 289 * get_posts() function. The arguments are combined with the get_children defaults 290 * and are then passed to the get_posts() function, which accepts additional arguments. 291 * You can replace the defaults in this function, listed below and the additional 292 * arguments listed in the get_posts() function. 294 293 * 295 294 * The 'post_parent' is the most important argument and important attention … … 413 412 * Retrieves post data given a post ID or post object. 414 413 * 415 * See {@link sanitize_post()}for optional $filter values. Also, the parameter416 * $post, must be given as a variable, since it is passed by reference.414 * See sanitize_post() for optional $filter values. Also, the parameter 415 * `$post`, must be given as a variable, since it is passed by reference. 417 416 * 418 417 * @since 1.5.1 … … 2871 2870 * There is only one default for this function, called 'fields' and by default 2872 2871 * is set to 'all'. There are other defaults that can be overridden in 2873 * {@link wp_get_object_terms()}.2872 * wp_get_object_terms(). 2874 2873 * 2875 2874 * @since 2.3.0 … … 2889 2888 * There is only one default for this function, called 'fields' and by default 2890 2889 * is set to 'all'. There are other defaults that can be overridden in 2891 * {@link wp_get_object_terms()}.2890 * wp_get_object_terms(). 2892 2891 * 2893 2892 * @since 2.8.0 … … 2896 2895 * global $post. Default 0. 2897 2896 * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'. 2898 * @param array $args Optional. {@link wp_get_object_terms()}arguments. Default empty array.2897 * @param array $args Optional. wp_get_object_terms() arguments. Default empty array. 2899 2898 * @return array|WP_Error List of post terms or empty array if no terms were found. WP_Error object 2900 2899 * if `$taxonomy` doesn't exist. -
trunk/src/wp-includes/query.php
r37431 r37487 96 96 97 97 /** 98 * Destroy the previous query and setup a new query.99 * 100 * This should be used after {@link query_posts()} and before another {@link101 * query_posts()}. This will remove obscure bugs that occur when the previous102 * wp_query objectis not destroyed properly before another is set up.98 * Destroys the previous query and sets up a new query. 99 * 100 * This should be used after query_posts() and before another query_posts(). 101 * This will remove obscure bugs that occur when the previous WP_Query object 102 * is not destroyed properly before another is set up. 103 103 * 104 104 * @since 2.3.0 -
trunk/src/wp-includes/template.php
r36965 r37487 12 12 * Used to quickly retrieve the path of a template without including the file 13 13 * extension. It will also check the parent theme, if the file exists, with 14 * the use of {@link locate_template()}. Allows for more generic template location14 * the use of locate_template(). Allows for more generic template location 15 15 * without the use of the other get_*_template() functions. 16 16 * -
trunk/src/wp-includes/theme.php
r37431 r37487 210 210 211 211 /** 212 * Retrieve URI of current theme stylesheet.213 * 214 * The stylesheet file name is 'style.css' which is appended to {@link215 * get_stylesheet_directory_uri() stylesheet directory URI} path.212 * Retrieves the URI of current theme stylesheet. 213 * 214 * The stylesheet file name is 'style.css' which is appended to the stylesheet directory URI path. 215 * See get_stylesheet_directory_uri(). 216 216 * 217 217 * @since 1.5.0
Note: See TracChangeset
for help on using the changeset viewer.