WordPress.org

Make WordPress Core

Changeset 18753


Ignore:
Timestamp:
09/22/2011 12:02:31 PM (10 years ago)
Author:
duck_
Message:

Documentation fixes. See #18560.

  • Add missing parameters
  • Add missing @param data types
  • s/format_where/where_format/
Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-editor.php

    r18710 r18753  
    3434     * Outputs the HTML and enqueues the JavaScript for a single instance of the editor.
    3535     *
    36      * @param $content The initial content of the editor.
    37      * @param $editor_id ID for the textarea and TinyMCE and Quicktags instances (can contain only ASCII letters and numbers).
    38      * @param $settings See below for description.
     36     * @param string $content The initial content of the editor.
     37     * @param string $editor_id ID for the textarea and TinyMCE and Quicktags instances (can contain only ASCII letters and numbers).
     38     * @param array $settings See below for description.
    3939     */
    4040    function editor( $content, $editor_id, $settings = array() ) {
  • trunk/wp-includes/post.php

    r18652 r18753  
    51965196 * @since 3.1.0
    51975197 *
    5198  * @param $format string Post format
     5198 * @param string $format Post format
    51995199 * @return string Link
    52005200 */
  • trunk/wp-includes/wp-db.php

    r18714 r18753  
    556556     *
    557557     * @param string $prefix Alphanumeric name for the new prefix.
     558     * @param bool $set_table_names Optional. Whether the table names, e.g. wpdb::$posts, should be updated or not.
    558559     * @return string|WP_Error Old prefix or WP_Error on error
    559560     */
     
    727728     * @return null Always null.
    728729     */
    729     function select( $db, $dbh = null) {
     730    function select( $db, $dbh = null ) {
    730731        if ( is_null($dbh) )
    731732            $dbh = $this->dbh;
     
    11791180     * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data.
    11801181     *  A format is one of '%d', '%f', '%s' (integer, float, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
     1182     * @param string $type Optional. What type of operation is this? INSERT or REPLACE. Defaults to INSERT.
    11811183     * @return int|false The number of rows affected, or false on error.
    11821184     */
     
    12181220     * @param array|string $format Optional. An array of formats to be mapped to each of the values in $data. If string, that format will be used for all of the values in $data.
    12191221     *  A format is one of '%d', '%f', '%s' (integer, float, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
    1220      * @param array|string $format_where Optional. An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where.  A format is one of '%d', '%f', '%s' (integer, float, string).  If omitted, all values in $where will be treated as strings.
     1222     * @param array|string $where_format Optional. An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where.  A format is one of '%d', '%f', '%s' (integer, float, string).  If omitted, all values in $where will be treated as strings.
    12211223     * @return int|false The number of rows updated, or false on error.
    12221224     */
Note: See TracChangeset for help on using the changeset viewer.