Changeset 37518
- Timestamp:
- 05/22/2016 06:49:05 PM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/admin-bar.php
r36926 r37518 33 33 34 34 /** 35 * Filter the admin bar class to instantiate.35 * Filters the admin bar class to instantiate. 36 36 * 37 37 * @since 3.1.0 … … 922 922 923 923 /** 924 * Filter whether to show the admin bar.924 * Filters whether to show the admin bar. 925 925 * 926 926 * Returning false to this hook is the recommended way to hide the admin bar. -
trunk/src/wp-includes/bookmark.php
r36009 r37518 133 133 $bookmarks = $cache[ $key ]; 134 134 /** 135 * Filter the returned list of bookmarks.135 * Filters the returned list of bookmarks. 136 136 * 137 137 * The first time the hook is evaluated in this file, it returns the cached -
trunk/src/wp-includes/canonical.php
r37262 r37518 487 487 488 488 /** 489 * Filter the canonical redirect URL.489 * Filters the canonical redirect URL. 490 490 * 491 491 * Returning false to this filter will cancel the redirect. -
trunk/src/wp-includes/capabilities.php
r37342 r37518 250 250 if ( $meta_key && has_filter( "auth_post_meta_{$meta_key}" ) ) { 251 251 /** 252 * Filter whether the user is allowed to add post meta to a post.252 * Filters whether the user is allowed to add post meta to a post. 253 253 * 254 254 * The dynamic portion of the hook name, `$meta_key`, refers to the … … 391 391 392 392 /** 393 * Filter a user's capabilities depending on specific context and/or privilege.393 * Filters a user's capabilities depending on specific context and/or privilege. 394 394 * 395 395 * @since 2.8.0 -
trunk/src/wp-includes/category.php
r37431 r37518 31 31 32 32 /** 33 * Filter the taxonomy used to retrieve terms when calling get_categories().33 * Filters the taxonomy used to retrieve terms when calling get_categories(). 34 34 * 35 35 * @since 2.7.0 … … 272 272 273 273 /** 274 * Filter the array of term objects returned for the 'post_tag' taxonomy.274 * Filters the array of term objects returned for the 'post_tag' taxonomy. 275 275 * 276 276 * @since 2.3.0 -
trunk/src/wp-includes/class-IXR.php
r37244 r37518 250 250 if ( function_exists( 'apply_filters' ) ) { 251 251 /** 252 * Filter the number of elements to parse in an XML-RPC response.252 * Filters the number of elements to parse in an XML-RPC response. 253 253 * 254 254 * @since 4.0.0 … … 274 274 275 275 /** 276 * Filter the chunk size that can be used to parse an XML-RPC reponse message.276 * Filters the chunk size that can be used to parse an XML-RPC reponse message. 277 277 * 278 278 * @since 4.4.0 -
trunk/src/wp-includes/class-feed.php
r36728 r37518 39 39 $lifetime = $this->lifetime; 40 40 /** 41 * Filter the transient lifetime of the feed cache.41 * Filters the transient lifetime of the feed cache. 42 42 * 43 43 * @since 2.8.0 -
trunk/src/wp-includes/class-oembed.php
r37431 r37518 116 116 117 117 /** 118 * Filter the list of whitelisted oEmbed providers.118 * Filters the list of whitelisted oEmbed providers. 119 119 * 120 120 * Since WordPress 4.4, oEmbed discovery is enabled for all users and allows embedding of sanitized … … 322 322 323 323 /** 324 * Filter the HTML returned by the oEmbed provider.324 * Filters the HTML returned by the oEmbed provider. 325 325 * 326 326 * @since 2.9.0 … … 349 349 350 350 /** 351 * Filter oEmbed remote get arguments.351 * Filters oEmbed remote get arguments. 352 352 * 353 353 * @since 4.0.0 … … 365 365 366 366 /** 367 * Filter the link types that contain oEmbed provider URLs.367 * Filters the link types that contain oEmbed provider URLs. 368 368 * 369 369 * @since 2.9.0 … … 436 436 437 437 /** 438 * Filter the oEmbed URL to be fetched.438 * Filters the oEmbed URL to be fetched. 439 439 * 440 440 * @since 2.9.0 … … 599 599 600 600 /** 601 * Filter the returned oEmbed HTML.601 * Filters the returned oEmbed HTML. 602 602 * 603 603 * Use this filter to add support for custom data types, or to filter the result. -
trunk/src/wp-includes/class-walker-category.php
r37047 r37518 112 112 if ( $args['use_desc_for_title'] && ! empty( $category->description ) ) { 113 113 /** 114 * Filter the category description for display.114 * Filters the category description for display. 115 115 * 116 116 * @since 1.2.0 … … 190 190 191 191 /** 192 * Filter the list of CSS classes to include with each category in the list.192 * Filters the list of CSS classes to include with each category in the list. 193 193 * 194 194 * @since 4.2.0 -
trunk/src/wp-includes/class-walker-page-dropdown.php
r37054 r37518 76 76 77 77 /** 78 * Filter the page title when creating an HTML drop-down list of pages.78 * Filters the page title when creating an HTML drop-down list of pages. 79 79 * 80 80 * @since 3.1.0 -
trunk/src/wp-includes/class-walker-page.php
r37057 r37518 117 117 118 118 /** 119 * Filter the list of CSS classes to include with each page item in the list.119 * Filters the list of CSS classes to include with each page item in the list. 120 120 * 121 121 * @since 2.8.0 -
trunk/src/wp-includes/class-wp.php
r37487 r37518 147 147 148 148 /** 149 * Filter whether to parse the request.149 * Filters whether to parse the request. 150 150 * 151 151 * @since 3.5.0 … … 282 282 283 283 /** 284 * Filter the query variables whitelist before processing.284 * Filters the query variables whitelist before processing. 285 285 * 286 286 * Allows (publicly allowed) query vars to be added, removed, or changed prior … … 369 369 370 370 /** 371 * Filter the array of parsed query variables.371 * Filters the array of parsed query variables. 372 372 * 373 373 * @since 2.1.0 … … 464 464 465 465 /** 466 * Filter the HTTP headers before they're sent to the browser.466 * Filters the HTTP headers before they're sent to the browser. 467 467 * 468 468 * @since 2.8.0 … … 533 533 if ( has_filter( 'query_string' ) ) { // Don't bother filtering and parsing if no plugins are hooked in. 534 534 /** 535 * Filter the query string before parsing.535 * Filters the query string before parsing. 536 536 * 537 537 * @since 1.5.0 … … 632 632 633 633 /** 634 * Filter whether to short-circuit default header status handling.634 * Filters whether to short-circuit default header status handling. 635 635 * 636 636 * Returning a non-false value from the filter will short-circuit the handling -
trunk/src/wp-includes/class.wp-scripts.php
r37171 r37518 287 287 if ( $this->do_concat ) { 288 288 /** 289 * Filter the script loader source.289 * Filters the script loader source. 290 290 * 291 291 * @since 2.2.0 … … 346 346 347 347 /** 348 * Filter the HTML script tag of an enqueued script.348 * Filters the HTML script tag of an enqueued script. 349 349 * 350 350 * @since 4.1.0 … … 503 503 if ( ! $recursion ) { 504 504 /** 505 * Filter the list of script dependencies left to print.505 * Filters the list of script dependencies left to print. 506 506 * 507 507 * @since 2.3.0 -
trunk/src/wp-includes/class.wp-styles.php
r36871 r37518 190 190 191 191 /** 192 * Filter the HTML link tag of an enqueued style.192 * Filters the HTML link tag of an enqueued style. 193 193 * 194 194 * @since 2.6.0 … … 314 314 if ( ! $recursion ) { 315 315 /** 316 * Filter the array of enqueued styles before processing for output.316 * Filters the array of enqueued styles before processing for output. 317 317 * 318 318 * @since 2.6.0 … … 345 345 346 346 /** 347 * Filter an enqueued style's fully-qualified URL.347 * Filters an enqueued style's fully-qualified URL. 348 348 * 349 349 * @since 2.6.0 -
trunk/src/wp-includes/cron.php
r37487 r37518 36 36 $event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => false, 'args' => $args ); 37 37 /** 38 * Filter a single event before it is scheduled.38 * Filters a single event before it is scheduled. 39 39 * 40 40 * @since 3.1.0 … … 296 296 297 297 /** 298 * Filter the cron request arguments.298 * Filters the cron request arguments. 299 299 * 300 300 * @since 3.5.0 … … 397 397 ); 398 398 /** 399 * Filter the non-default cron schedules.399 * Filters the non-default cron schedules. 400 400 * 401 401 * @since 2.1.0 -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
r37405 r37518 405 405 406 406 /** 407 * Filter the wp_get_nav_menu_items() result to supply the previewed menu items.407 * Filters the wp_get_nav_menu_items() result to supply the previewed menu items. 408 408 * 409 409 * @since 4.3.0 -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php
r36622 r37518 236 236 237 237 /** 238 * Filter the wp_get_nav_menus() result to ensure the inserted menu object is included, and the deleted one is removed.238 * Filters the wp_get_nav_menus() result to ensure the inserted menu object is included, and the deleted one is removed. 239 239 * 240 240 * @since 4.3.0 … … 325 325 326 326 /** 327 * Filter the wp_get_nav_menu_object() result to supply the previewed menu object.327 * Filters the wp_get_nav_menu_object() result to supply the previewed menu object. 328 328 * 329 329 * Requesting a nav_menu object by anything but ID is not supported. … … 376 376 377 377 /** 378 * Filter the nav_menu_options option to include this menu's auto_add preference.378 * Filters the nav_menu_options option to include this menu's auto_add preference. 379 379 * 380 380 * @since 4.3.0 -
trunk/src/wp-includes/date.php
r37477 r37518 498 498 if ( false === strpos( $column, '.' ) ) { 499 499 /** 500 * Filter the list of valid date query columns.500 * Filters the list of valid date query columns. 501 501 * 502 502 * @since 3.7.0 … … 560 560 561 561 /** 562 * Filter the date query WHERE clause.562 * Filters the date query WHERE clause. 563 563 * 564 564 * @since 3.7.0 -
trunk/src/wp-includes/deprecated.php
r37487 r37518 3539 3539 if ( empty( $text ) ) { 3540 3540 /** 3541 * Filter text returned for the rich text editor.3541 * Filters text returned for the rich text editor. 3542 3542 * 3543 3543 * This filter is first evaluated, and the value returned, if an empty string … … 3584 3584 3585 3585 /** 3586 * Filter the text before it is formatted for the HTML editor.3586 * Filters the text before it is formatted for the HTML editor. 3587 3587 * 3588 3588 * @since 2.5.0 -
trunk/src/wp-includes/feed-rss2.php
r35506 r37518 49 49 50 50 /** 51 * Filter how often to update the RSS feed.51 * Filters how often to update the RSS feed. 52 52 * 53 53 * @since 2.1.0 … … 62 62 63 63 /** 64 * Filter the RSS update frequency.64 * Filters the RSS update frequency. 65 65 * 66 66 * @since 2.1.0 -
trunk/src/wp-includes/kses.php
r37342 r37518 627 627 if ( is_array( $context ) ) { 628 628 /** 629 * Filter HTML elements allowed for a given context.629 * Filters HTML elements allowed for a given context. 630 630 * 631 631 * @since 3.5.0 … … 680 680 function wp_kses_hook( $string, $allowed_html, $allowed_protocols ) { 681 681 /** 682 * Filter content to be run through kses.682 * Filters content to be run through kses. 683 683 * 684 684 * @since 2.3.0 … … 1705 1705 1706 1706 /** 1707 * Filter list of allowed CSS attributes.1707 * Filters list of allowed CSS attributes. 1708 1708 * 1709 1709 * @since 2.8.1 -
trunk/src/wp-includes/meta.php
r36941 r37518 53 53 54 54 /** 55 * Filter whether to add metadata of a specific type.55 * Filters whether to add metadata of a specific type. 56 56 * 57 57 * The dynamic portion of the hook, `$meta_type`, refers to the meta … … 169 169 170 170 /** 171 * Filter whether to update metadata of a specific type.171 * Filters whether to update metadata of a specific type. 172 172 * 173 173 * The dynamic portion of the hook, `$meta_type`, refers to the meta … … 329 329 330 330 /** 331 * Filter whether to delete metadata of a specific type.331 * Filters whether to delete metadata of a specific type. 332 332 * 333 333 * The dynamic portion of the hook, `$meta_type`, refers to the meta … … 470 470 471 471 /** 472 * Filter whether to retrieve metadata of a specific type.472 * Filters whether to retrieve metadata of a specific type. 473 473 * 474 474 * The dynamic portion of the hook, `$meta_type`, refers to the meta … … 922 922 923 923 /** 924 * Filter whether a meta key is protected.924 * Filters whether a meta key is protected. 925 925 * 926 926 * @since 3.2.0 … … 946 946 947 947 /** 948 * Filter the sanitization of a specific meta key of a specific meta type.948 * Filters the sanitization of a specific meta key of a specific meta type. 949 949 * 950 950 * The dynamic portions of the hook name, `$meta_type`, and `$meta_key`, -
trunk/src/wp-includes/ms-blogs.php
r37477 r37518 236 236 237 237 /** 238 * Filter a blog's details.238 * Filters a blog's details. 239 239 * 240 240 * @since MU … … 592 592 593 593 /** 594 * Filter a blog option value.594 * Filters a blog option value. 595 595 * 596 596 * The dynamic portion of the hook name, `$option`, refers to the blog option name. -
trunk/src/wp-includes/ms-load.php
r37475 r37518 72 72 73 73 /** 74 * Filter checking the status of the current blog.74 * Filters checking the status of the current blog. 75 75 * 76 76 * @since 3.0.0 … … 169 169 170 170 /** 171 * Filter the number of path segments to consider when searching for a site.171 * Filters the number of path segments to consider when searching for a site. 172 172 * 173 173 * @since 3.9.0 -
trunk/src/wp-includes/nav-menu.php
r37342 r37518 40 40 41 41 /** 42 * Filter the nav_menu term retrieved for wp_get_nav_menu_object().42 * Filters the nav_menu term retrieved for wp_get_nav_menu_object(). 43 43 * 44 44 * @since 4.3.0 … … 172 172 173 173 /** 174 * Filter whether a nav menu is assigned to the specified location.174 * Filters whether a nav menu is assigned to the specified location. 175 175 * 176 176 * @since 4.3.0 … … 544 544 545 545 /** 546 * Filter the navigation menu objects being returned.546 * Filters the navigation menu objects being returned. 547 547 * 548 548 * @since 3.0.0 … … 690 690 691 691 /** 692 * Filter the navigation menu items being returned.692 * Filters the navigation menu items being returned. 693 693 * 694 694 * @since 3.0.0 … … 799 799 800 800 /** 801 * Filter a navigation menu item's title attribute.801 * Filters a navigation menu item's title attribute. 802 802 * 803 803 * @since 3.0.0 … … 809 809 if ( ! isset( $menu_item->description ) ) { 810 810 /** 811 * Filter a navigation menu item's description.811 * Filters a navigation menu item's description. 812 812 * 813 813 * @since 3.0.0 … … 870 870 871 871 /** 872 * Filter a navigation menu item object.872 * Filters a navigation menu item object. 873 873 * 874 874 * @since 3.0.0 -
trunk/src/wp-includes/rest-api.php
r36947 r37518 160 160 function rest_get_url_prefix() { 161 161 /** 162 * Filter the REST URL prefix.162 * Filters the REST URL prefix. 163 163 * 164 164 * @since 4.4.0 … … 207 207 208 208 /** 209 * Filter the REST URL.209 * Filters the REST URL. 210 210 * 211 211 * Use this filter to adjust the url returned by the `get_rest_url` function. … … 270 270 if ( empty( $wp_rest_server ) ) { 271 271 /** 272 * Filter the REST Server Class.272 * Filters the REST Server Class. 273 273 * 274 274 * This filter allows you to adjust the server class used by the API, using a -
trunk/src/wp-includes/revision.php
r36659 r37518 39 39 40 40 /** 41 * Filter the list of fields saved in post revisions.41 * Filters the list of fields saved in post revisions. 42 42 * 43 43 * Included by default: 'post_title', 'post_content' and 'post_excerpt'. … … 139 139 140 140 /** 141 * Filter whether the post has changed since the last revision.141 * Filters whether the post has changed since the last revision. 142 142 * 143 143 * By default a revision is saved only if one of the revisioned fields has changed. … … 163 163 164 164 /** 165 * Filter whether a post has changed.165 * Filters whether a post has changed. 166 166 * 167 167 * By default a revision is saved only if one of the revisioned fields has changed. … … 501 501 502 502 /** 503 * Filter the number of revisions to save for the given post.503 * Filters the number of revisions to save for the given post. 504 504 * 505 505 * Overrides the value of WP_POST_REVISIONS. -
trunk/src/wp-includes/rewrite.php
r37431 r37518 312 312 313 313 /** 314 * Filter the URL base for taxonomies.314 * Filters the URL base for taxonomies. 315 315 * 316 316 * To remove any manually prepended /index.php/. … … 464 464 465 465 /** 466 * Filter the URL to derive the post ID from.466 * Filters the URL to derive the post ID from. 467 467 * 468 468 * @since 2.2.0 -
trunk/src/wp-includes/script-loader.php
r37472 r37518 139 139 did_action( 'init' ) && $scripts->localize( 'heartbeat', 'heartbeatSettings', 140 140 /** 141 * Filter the Heartbeat settings.141 * Filters the Heartbeat settings. 142 142 * 143 143 * @since 3.6.0 … … 153 153 154 154 /** 155 * Filter the authentication check interval.155 * Filters the authentication check interval. 156 156 * 157 157 * @since 3.6.0 … … 361 361 did_action( 'init' ) && $scripts->localize( 'mediaelement', '_wpmejsSettings', 362 362 /** 363 * Filter the MediaElement configuration settings.363 * Filters the MediaElement configuration settings. 364 364 * 365 365 * @since 4.4.0 … … 928 928 929 929 /** 930 * Filter whether to print the head scripts.930 * Filters whether to print the head scripts. 931 931 * 932 932 * @since 2.8.0 … … 963 963 964 964 /** 965 * Filter whether to print the footer scripts.965 * Filters whether to print the footer scripts. 966 966 * 967 967 * @since 2.8.0 … … 1099 1099 1100 1100 /** 1101 * Filter whether to print the admin styles.1101 * Filters whether to print the admin styles. 1102 1102 * 1103 1103 * @since 2.8.0 … … 1135 1135 1136 1136 /** 1137 * Filter whether to print the styles queued too late for the HTML head.1137 * Filters whether to print the styles queued too late for the HTML head. 1138 1138 * 1139 1139 * @since 3.3.0 -
trunk/src/wp-includes/session.php
r36232 r37518 41 41 final public static function get_instance( $user_id ) { 42 42 /** 43 * Filter the session token manager used.43 * Filters the session token manager used. 44 44 * 45 45 * @since 4.0.0 … … 119 119 final public function create( $expiration ) { 120 120 /** 121 * Filter the information attached to the newly created session.121 * Filters the information attached to the newly created session. 122 122 * 123 123 * Could be used in the future to attach information such as -
trunk/src/wp-includes/shortcodes.php
r36097 r37518 538 538 } 539 539 /** 540 * Filter a shortcode's default attributes.540 * Filters a shortcode's default attributes. 541 541 * 542 542 * If the third parameter of the shortcode_atts() function is present then this filter is available. -
trunk/src/wp-includes/template-loader.php
r36876 r37518 13 13 14 14 /** 15 * Filter whether to allow 'HEAD' requests to generate content.15 * Filters whether to allow 'HEAD' requests to generate content. 16 16 * 17 17 * Provides a significant performance bump by exiting before the page … … 66 66 endif; 67 67 /** 68 * Filter the path of the current template before including it.68 * Filters the path of the current template before including it. 69 69 * 70 70 * @since 3.0.0 -
trunk/src/wp-includes/template.php
r37487 r37518 30 30 31 31 /** 32 * Filter the path of the queried template by type.32 * Filters the path of the queried template by type. 33 33 * 34 34 * The dynamic portion of the hook name, `$type`, refers to the filename -- minus the file -
trunk/src/wp-includes/theme-compat/embed-content.php
r37452 r37518 39 39 40 40 /** 41 * Filter the thumbnail image size for use in the embed template.41 * Filters the thumbnail image size for use in the embed template. 42 42 * 43 43 * @since 4.4.0 … … 52 52 53 53 /** 54 * Filter the thumbnail shape for use in the embed template.54 * Filters the thumbnail shape for use in the embed template. 55 55 * 56 56 * Rectangular images are shown above the title while square images -
trunk/src/wp-includes/update.php
r37006 r37518 56 56 57 57 /** 58 * Filter the locale requested for WordPress core translations.58 * Filters the locale requested for WordPress core translations. 59 59 * 60 60 * @since 2.8.0 … … 266 266 267 267 /** 268 * Filter the locales requested for plugin translations.268 * Filters the locales requested for plugin translations. 269 269 * 270 270 * @since 3.7.0 … … 440 440 441 441 /** 442 * Filter the locales requested for theme translations.442 * Filters the locales requested for theme translations. 443 443 * 444 444 * @since 3.7.0 … … 580 580 $update_data = array( 'counts' => $counts, 'title' => $update_title ); 581 581 /** 582 * Filter the returned array of update data for plugins, themes, and WordPress core.582 * Filters the returned array of update data for plugins, themes, and WordPress core. 583 583 * 584 584 * @since 3.5.0 -
trunk/src/wp-includes/vars.php
r36813 r37518 60 60 $is_admin = is_admin(); 61 61 /** 62 * Filter whether Google Chrome Frame should be used, if available.62 * Filters whether Google Chrome Frame should be used, if available. 63 63 * 64 64 * @since 3.2.0 -
trunk/src/wp-includes/widgets.php
r37342 r37518 673 673 674 674 /** 675 * Filter the parameters passed to a widget's display callback.675 * Filters the parameters passed to a widget's display callback. 676 676 * 677 677 * Note: The filter is evaluated on both the front end and back end, … … 756 756 757 757 /** 758 * Filter whether a sidebar has widgets.758 * Filters whether a sidebar has widgets. 759 759 * 760 760 * Note: The filter is also evaluated for empty sidebars, and on both the front end … … 854 854 855 855 /** 856 * Filter whether a dynamic sidebar is considered "active".856 * Filters whether a dynamic sidebar is considered "active". 857 857 * 858 858 * @since 3.9.0 … … 905 905 906 906 /** 907 * Filter the list of sidebars and their widgets.907 * Filters the list of sidebars and their widgets. 908 908 * 909 909 * @since 2.7.0 -
trunk/src/wp-includes/wp-db.php
r37431 r37518 840 840 841 841 /** 842 * Filter the list of incompatible SQL modes to exclude.842 * Filters the list of incompatible SQL modes to exclude. 843 843 * 844 844 * @since 3.9.0 … … 1680 1680 1681 1681 /** 1682 * Filter the database query.1682 * Filters the database query. 1683 1683 * 1684 1684 * Some queries are made before the plugins have been loaded, … … 2373 2373 2374 2374 /** 2375 * Filter the table charset value before the DB is checked.2375 * Filters the table charset value before the DB is checked. 2376 2376 * 2377 2377 * Passing a non-null value to the filter will effectively short-circuit … … 2477 2477 2478 2478 /** 2479 * Filter the column charset value before the DB is checked.2479 * Filters the column charset value before the DB is checked. 2480 2480 * 2481 2481 * Passing a non-null value to the filter will short-circuit
Note: See TracChangeset
for help on using the changeset viewer.