WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/14/2014 01:01:22 AM (8 years ago)
Author:
DrewAPicture
Message:

Inline documentation cleanup for 4.0 audit.

Various improvements:

  • Adds @see reference for wp_list_comments() in 'wp_list_comments_args' filter docs, added in [28285]
  • Various phpDoc tweaks for the 'run_wptexturize' filter docs, added in [28715]
  • Sentence and wrapping changes for is_https_url(), added in [28894]
  • Documents the $args parameter for wp_dropdown_languages(), added in [29007]
  • Adds a period to the parameter description for _update_posts_count_on_delete(), added in [28835]
  • Documents a global in is_customize_preview(), added in [28999]
  • phpDoc tweaks, adds an access modifier for wpdb::esc_like(), added in [28711]

See #28885.

File:
1 edited

Legend:

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

    r28978 r29163  
    11891189     *
    11901190     * @since 4.0.0
    1191      *
    1192      * @param string $text The raw text to be escaped. The input typed by the user should have no extra or deleted slashes.
    1193      * @return string Text in the form of a LIKE phrase. The output is not SQL safe. Call prepare or real_escape next.
    1194      */
    1195     function esc_like( $text ) {
     1191     * @access public
     1192     *
     1193     * @param string $text The raw text to be escaped. The input typed by the user should have no
     1194     *                     extra or deleted slashes.
     1195     * @return string Text in the form of a LIKE phrase. The output is not SQL safe. Call $wpdb::prepare()
     1196     *                or real_escape next.
     1197     */
     1198    public function esc_like( $text ) {
    11961199        return addcslashes( $text, '_%\\' );
    11971200    }
Note: See TracChangeset for help on using the changeset viewer.