diff --git a/wp-admin/index.php b/wp-admin/index.php index 029ee5557d..a3c0742d19 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -111,8 +111,9 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); /** * Add content to the welcome panel on the admin dashboard. * - * To remove the default welcome panel, use remove_action(): - * remove_action( 'welcome_panel', 'wp_welcome_panel' ); + * To remove the default welcome panel, use {@see remove_action()}: + * + * remove_action( 'welcome_panel', 'wp_welcome_panel' ); * * @since 3.5.0 */ diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 36e3a0960e..0fb2117835 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3445,11 +3445,11 @@ function _deprecated_file( $file, $version, $replacement = null, $message = '' ) * Before this function is called, the argument must be checked for whether it was * used by comparing it to its default value or evaluating whether it is empty. * For example: - * - * if ( ! empty( $deprecated ) ) { - * _deprecated_argument( __FUNCTION__, '3.0' ); - * } - * + * + * if ( ! empty( $deprecated ) ) { + * _deprecated_argument( __FUNCTION__, '3.0' ); + * } + * * * There is a hook deprecated_argument_run that will be called that can be used * to get the backtrace up to what file and function used the deprecated diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php index 4e3bda76f4..8c3151c45e 100644 --- a/wp-includes/functions.wp-scripts.php +++ b/wp-includes/functions.wp-scripts.php @@ -90,13 +90,13 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f * Works only if the script has already been added. * * Accepts an associative array $l10n and creates a JavaScript object: - * - * "$object_name" = { - * key: value, - * key: value, - * ... - * } - * + * + * "$object_name" = { + * key: value, + * key: value, + * ... + * } + * * * @see WP_Dependencies::localize() * @link https://core.trac.wordpress.org/ticket/11520 @@ -104,6 +104,8 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f * * @since 2.6.0 * + * @todo Documentation cleanup + * * @param string $handle Script handle the data will be attached to. * @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable. * Example: '/[a-zA-Z0-9_]+/'. diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index ef57f4f286..4c393b62ce 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -511,8 +511,8 @@ function wp_lostpassword_url( $redirect = '' ) { * * @since 1.5.0 * - * @param string $before Text to output before the link (defaults to
  • ). - * @param string $after Text to output after the link (defaults to
  • ). + * @param string $before Text to output before the link. Default `
  • `. + * @param string $after Text to output after the link. Default `
  • `. * @param boolean $echo Default to echo and not return the link. * @return string|null String when retrieving, null when displaying. */ @@ -581,15 +581,15 @@ function bloginfo( $show='' ) { * Retrieve information about the blog. * * Some show parameter values are deprecated and will be removed in future - * versions. These options will trigger the _deprecated_argument() function. - * The deprecated blog info options are listed in the function contents. + * versions. These options will trigger the {@see _deprecated_argument()} + * function. The deprecated blog info options are listed in the function + * contents. * * The possible values for the 'show' parameter are listed below. - *
      - *
    1. url - Blog URI to homepage.
    2. - *
    3. wpurl - Blog URI path to WordPress.
    4. - *
    5. description - Secondary title
    6. - *
    + * + * 1. url - Blog URI to homepage. + * 2. wpurl - Blog URI path to WordPress. + * 3. description - Secondary title * * The feed URL options can be retrieved from 'rdf_url' (RSS 0.91), * 'rss_url' (RSS 1.0), 'rss2_url' (RSS 2.0), or 'atom_url' (Atom feed). The @@ -714,7 +714,7 @@ function get_bloginfo( $show = '', $filter = 'raw' ) { } /** - * Display tag with contents. + * Display title tag with contents. * * @since 4.1.0 * @access private @@ -1233,7 +1233,7 @@ function get_the_archive_description() { * elements). Custom content is also supported using the before and after * parameters. * - * The 'link' format uses the link HTML element with the <em>archives</em> + * The 'link' format uses the `<link>` HTML element with the **archives** * relationship. The before and after parameters are not used. The text * parameter is used to describe the link. * @@ -1251,6 +1251,8 @@ function get_the_archive_description() { * * @since 1.0.0 * + * @todo Properly document optional arguments as such + * * @param string $url URL to archive. * @param string $text Archive text description. * @param string $format Optional, default is 'html'. Can be 'link', 'option', 'html', or custom. @@ -2706,13 +2708,15 @@ function paginate_links( $args = '' ) { * Registers an admin colour scheme css file. * * Allows a plugin to register a new admin colour scheme. For example: - * <code> - * wp_admin_css_color('classic', __('Classic'), admin_url("css/colors-classic.css"), - * array('#07273E', '#14568A', '#D54E21', '#2683AE')); - * </code> + * + * wp_admin_css_color( 'classic', __( 'Classic' ), admin_url( "css/colors-classic.css" ), array( + * '#07273E', '#14568A', '#D54E21', '#2683AE' + * ) ); * * @since 2.5.0 * + * @todo Properly document optional arguments as such + * * @param string $key The unique key for this theme. * @param string $name The name of the theme. * @param string $url The url of the css file containing the colour scheme. diff --git a/wp-includes/version.php b/wp-includes/version.php index a11fa68ed2..e6a8b55d82 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30540'; +$wp_version = '4.1-beta2-30541'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.