Ticket #26869: 26869-hook-docs-audit-fixes.diff
File 26869-hook-docs-audit-fixes.diff, 10.6 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/menu.php
13 13 * 14 14 * The hook fires before menus and sub-menus are removed based on user privileges. 15 15 * 16 * @private17 16 * @since 3.1.0 17 * @access private 18 18 */ 19 19 do_action( '_network_admin_menu' ); 20 20 } elseif ( is_user_admin() ) { … … 24 24 * 25 25 * The hook fires before menus and sub-menus are removed based on user privileges. 26 26 * 27 * @private28 27 * @since 3.1.0 28 * @access private 29 29 */ 30 30 do_action( '_user_admin_menu' ); 31 31 } else { … … 35 35 * 36 36 * The hook fires before menus and sub-menus are removed based on user privileges. 37 37 * 38 * @private39 38 * @since 2.2.0 39 * @access private 40 40 */ 41 41 do_action( '_admin_menu' ); 42 42 } -
src/wp-admin/includes/plugin-install.php
53 53 * 54 54 * @since 2.7.0 55 55 * 56 * @param bool|object The result object. Default isfalse.56 * @param bool|object $result The result object. Default false. 57 57 * @param string $action The type of information being requested from the Plugin Install API. 58 58 * @param object $args Plugin API arguments. 59 59 */ -
src/wp-admin/network/admin.php
22 22 * 23 23 * @since 3.2.0 24 24 * 25 * @param bool $redirect_ user_admin_request Whether the request should be redirected.25 * @param bool $redirect_network_admin_request Whether the request should be redirected. 26 26 */ 27 27 $redirect_network_admin_request = apply_filters( 'redirect_network_admin_request', $redirect_network_admin_request ); 28 28 if ( $redirect_network_admin_request ) { -
src/wp-admin/options-discussion.php
80 80 * 81 81 * @since 2.7.0. 82 82 * 83 * @param int $ 10The maximum depth of threaded comments. Default 10.83 * @param int $max_depth The maximum depth of threaded comments. Default 10. 84 84 */ 85 85 $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); 86 86 -
src/wp-admin/options-writing.php
38 38 } 39 39 40 40 /** 41 * Toggle site update services configuration functionality.41 * Filter whether the site update services configuration functionality is enabled. 42 42 * 43 43 * @since 3.0.0 44 44 * 45 * @param bool True or false, based on whether update services configuration is enabled or not. 45 * @param bool $enable_configuration Whether the update services configuration 46 * functionality is enabled. Default true. 46 47 */ 47 48 if ( apply_filters( 'enable_update_services_configuration', true ) ) { 48 49 get_current_screen()->add_help_tab( array( -
src/wp-admin/options.php
108 108 $whitelist_options['general'][] = 'WPLANG'; 109 109 110 110 /** 111 * Toggle post-by-email functionality.111 * Filter whether the post-by-email functionality is enabled. 112 112 * 113 113 * @since 3.0.0 114 114 * 115 * @param bool True or false, based on whether post-by-email configuration is enabled or not.115 * @param bool $enabled Whether post-by-email configuration is enabled. Default true. 116 116 */ 117 117 if ( apply_filters( 'enable_post_by_email_configuration', true ) ) 118 118 $whitelist_options['writing'] = array_merge($whitelist_options['writing'], $mail_options); -
src/wp-admin/user/admin.php
18 18 19 19 $redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) ); 20 20 /** 21 * Filter whether a user should be redirected to the Global Dashboardin Multisite.21 * Filter whether to redirect the request to the User Admin in Multisite. 22 22 * 23 * Users not assigned to any sites in the network will be redirected to the Global24 * Dashboard after logging in.25 *26 23 * @since 3.2.0 27 24 * 28 25 * @param bool $redirect_user_admin_request Whether the request should be redirected. -
src/wp-includes/class-wp-embed.php
209 209 /** 210 210 * Filter whether to inspect the given URL for discoverable <link> tags. 211 211 * 212 * @since 2.9.0 213 * 212 214 * @see WP_oEmbed::discover() 213 215 * 214 216 * @param bool false Whether to enable <link> tag discovery. Default false. -
src/wp-includes/class-wp-xmlrpc-server.php
5775 5775 sleep(1); 5776 5776 5777 5777 $remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] ); 5778 5779 /** This filter is documented in wp-includes/class-http.php */ 5778 5780 $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . $GLOBALS['wp_version'] . '; ' . get_bloginfo( 'url' ) ); 5779 5781 5780 5782 // Let's check the remote site -
src/wp-includes/comment-template.php
518 518 $excerpt .= $blah[$i] . ' '; 519 519 } 520 520 $excerpt .= ($use_dotdotdot) ? '…' : ''; 521 return apply_filters('get_comment_excerpt', $excerpt); 521 522 /** 523 * Filter the retrieved comment excerpt. 524 * 525 * @since 1.5.0 526 * 527 * @param string $excerpt The comment excerpt text. 528 */ 529 return apply_filters( 'get_comment_excerpt', $excerpt ); 522 530 } 523 531 524 532 /** … … 641 649 /** 642 650 * Filter the returned post comments permalink. 643 651 * 644 * @since 652 * @since 3.6.0 645 653 * 646 654 * @param string $comments_link Post comments permalink with '#comments' appended. 647 655 * @param int|WP_Post $post_id Post ID or WP_Post object. … … 976 984 /** 977 985 * Filter whether the current post is open for comments. 978 986 * 979 * @since 987 * @since 2.5.0 980 988 * 981 989 * @param bool $open Whether the current post is open for comments. 982 990 * @param int|WP_Post $post_id The post ID or WP_Post object. … … 997 1005 $_post = get_post($post_id); 998 1006 999 1007 $open = ( 'open' == $_post->ping_status ); 1008 1009 /** 1010 * Filter whether the current post is open for pings. 1011 * 1012 * @since 2.5.0 1013 * 1014 * @param bool $open Whether the current post is open for pings. 1015 * @param int|WP_Post $post_id The post ID or WP_Post object. 1016 */ 1000 1017 return apply_filters( 'pings_open', $open, $post_id ); 1001 1018 } 1002 1019 … … 2055 2072 $defaults = array( 2056 2073 'fields' => $fields, 2057 2074 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 2075 /** This filter is documented in wp-includes/link-template.php */ 2058 2076 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 2077 /** This filter is documented in wp-includes/link-template.php */ 2059 2078 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 2060 2079 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>', 2061 2080 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>', -
src/wp-includes/l10n.php
53 53 if ( empty( $locale ) ) 54 54 $locale = 'en_US'; 55 55 56 / / duplicate_hook56 /** This filter is documented in wp-includes/l10n.php */ 57 57 return apply_filters( 'locale', $locale ); 58 58 } 59 59 … … 424 424 * 425 425 * @since 2.9.0 426 426 * 427 * @param bool eanWhether to override the text domain. Default false.428 * @param string $domain Text domain. Unique identifier for retrieving translated strings.429 * @param string $mofile Path to the MO file.427 * @param bool $override Whether to override the text domain. Default false. 428 * @param string $domain Text domain. Unique identifier for retrieving translated strings. 429 * @param string $mofile Path to the MO file. 430 430 */ 431 431 $plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile ); 432 432 … … 479 479 global $l10n; 480 480 481 481 /** 482 * Filter t exttext domain for loading translation.482 * Filter the text domain for loading translation. 483 483 * 484 484 * @since 3.0.0 485 485 * 486 * @param bool eanWhether to override unloading the text domain. Default false.487 * @param string $domain Text domain. Unique identifier for retrieving translated strings.486 * @param bool $override Whether to override unloading the text domain. Default false. 487 * @param string $domain Text domain. Unique identifier for retrieving translated strings. 488 488 */ 489 489 $plugin_override = apply_filters( 'override_unload_textdomain', false, $domain ); 490 490 … … 591 591 * @return bool True when textdomain is successfully loaded, false otherwise. 592 592 */ 593 593 function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) { 594 / / duplicate_hook594 /** This filter is documented in wp-includes/l10n.php */ 595 595 $locale = apply_filters( 'plugin_locale', get_locale(), $domain ); 596 596 $path = trailingslashit( WPMU_PLUGIN_DIR . '/' . ltrim( $mu_plugin_rel_path, '/' ) ); 597 597