Docs: Various corrections and improvements to inline docs and docblocks.

See #57840


git-svn-id: https://develop.svn.wordpress.org/trunk@55753 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2023-05-12 21:33:08 +00:00
parent 0746cc7324
commit 2310db697f
11 changed files with 17 additions and 6 deletions
+2
View File
@@ -20,6 +20,8 @@ require ABSPATH . WPINC . '/SimplePie/Author.php';
* WordPress autoloader for SimplePie.
*
* @since 3.5.0
*
* @param string $class Class name.
*/
function wp_simplepie_autoload( $class ) {
if ( ! str_starts_with( $class, 'SimplePie_' ) )
+1
View File
@@ -2981,6 +2981,7 @@ function do_all_trackbacks() {
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int|WP_Post $post Post ID or object to do trackbacks on.
* @return void|false Returns false on failure.
*/
function do_trackbacks( $post ) {
global $wpdb;
+1 -1
View File
@@ -3916,7 +3916,7 @@ function _sort_nav_menu_items( $a, $b ) {
*
* @since 2.6.0
* @deprecated 4.9.0
*
* @return string
*/
function get_shortcut_link() {
_deprecated_function( __FUNCTION__, '4.9.0' );
+1
View File
@@ -747,6 +747,7 @@ function get_feed_build_date( $format ) {
* @since 2.8.0
*
* @param string $type Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
* @return string Content type for specified feed type.
*/
function feed_content_type( $type = '' ) {
if ( empty( $type ) ) {
+1
View File
@@ -707,6 +707,7 @@ function did_action( $hook_name ) {
* @param string $version The version of WordPress that deprecated the hook.
* @param string $replacement Optional. The hook that should have been used. Default empty.
* @param string $message Optional. A message regarding the change. Default empty.
* @return mixed The filtered value after all hooked functions are applied to it.
*/
function apply_filters_deprecated( $hook_name, $args, $version, $replacement = '', $message = '' ) {
if ( ! has_filter( $hook_name ) ) {