mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
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:
@@ -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_' ) )
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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' );
|
||||
|
||||
@@ -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 ) ) {
|
||||
|
||||
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user