Make WordPress Core

Changeset 30664


Ignore:
Timestamp:
11/30/2014 09:54:08 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve the @param docs for src/wp-includes/wp-db.php.

See #30224.

File:
1 edited

Legend:

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

    r30624 r30664  
    878878     * @param int $blog_id
    879879     * @param int $site_id Optional.
    880      * @return string previous blog id
     880     * @return int previous blog id
    881881     */
    882882    public function set_blog_id( $blog_id, $site_id = 0 ) {
     
    12401240     *
    12411241     * @param string $str The error to display
    1242      * @return bool False if the showing of errors is disabled.
     1242     * @return false|null False if the showing of errors is disabled.
    12431243     */
    12441244    public function print_error( $str = '' ) {
     
    13821382     *
    13831383     * @param bool $allow_bail Optional. Allows the function to bail. Default true.
    1384      * @return bool True with a successful connection, false on failure.
     1384     * @return null|bool True with a successful connection, false on failure.
    13851385     */
    13861386    public function db_connect( $allow_bail = true ) {
     
    15011501     *
    15021502     * @param bool $allow_bail Optional. Allows the function to bail. Default true.
    1503      * @return bool True if the connection is up.
     1503     * @return bool|null True if the connection is up.
    15041504     */
    15051505    public function check_connection( $allow_bail = true ) {
     
    25492549     *
    25502550     * @param string $query The query to search.
    2551      * @return string|bool $table The table name found, or false if a table couldn't be found.
     2551     * @return string|false $table The table name found, or false if a table couldn't be found.
    25522552     */
    25532553    protected function get_table_from_query( $query ) {
     
    26592659     * @since 1.5.0
    26602660     *
    2661      * @return true
     2661     * @return bool
    26622662     */
    26632663    public function timer_start() {
     
    27942794     * @since 2.7.0
    27952795     *
    2796      * @return false|string false on failure, version number on success
     2796     * @return null|string Null on failure, version number on success.
    27972797     */
    27982798    public function db_version() {
Note: See TracChangeset for help on using the changeset viewer.