Make WordPress Core

Changeset 30979


Ignore:
Timestamp:
12/20/2014 08:55:21 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve some docs for @param. Remove an unneeded $wpdb global import.

See #30799.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/screen.php

    r30734 r30979  
    369369     * @access public
    370370     *
    371      * @param string $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen.
     371     * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen.
    372372     *  Defaults to the current $hook_suffix global.
    373373     * @return WP_Screen Screen object.
  • trunk/src/wp-includes/capabilities.php

    r30681 r30979  
    551551     * @param string $field The field to query against: 'id', 'slug', 'email' or 'login'
    552552     * @param string|int $value The field value
    553      * @return object Raw user object
     553     * @return object|false Raw user object
    554554     */
    555555    public static function get_data_by( $field, $value ) {
  • trunk/src/wp-includes/class-wp-embed.php

    r30681 r30979  
    127127     * }
    128128     * @param string $url The URL attempting to be embedded.
    129      * @return string The embed HTML on success, otherwise the original URL.
     129     * @return string|false The embed HTML on success, otherwise the original URL.
     130     *                      `->maybe_make_link()` can return false on failure.
    130131     */
    131132    public function shortcode( $attr, $url = '' ) {
  • trunk/src/wp-includes/class-wp-image-editor-imagick.php

    r30180 r30979  
    191191     * @param int $width
    192192     * @param int $height
     193     *
     194     * @return true|WP_Error
    193195     */
    194196    protected function update_size( $width = null, $height = null ) {
  • trunk/src/wp-includes/class-wp-image-editor.php

    r30874 r30979  
    195195     * @param int $width
    196196     * @param int $height
     197     * @return true
    197198     */
    198199    protected function update_size( $width = null, $height = null ) {
     
    389390     * @access public
    390391     *
    391      * @return string suffix
     392     * @return false|string suffix
    392393     */
    393394    public function get_suffix() {
  • trunk/src/wp-includes/meta.php

    r30846 r30979  
    11471147     */
    11481148    public function get_sql( $type, $primary_table, $primary_id_column, $context = null ) {
    1149         global $wpdb;
    1150 
    11511149        if ( ! $meta_table = _get_meta_table( $type ) ) {
    11521150            return false;
Note: See TracChangeset for help on using the changeset viewer.