WordPress.org

Make WordPress Core

Ticket #20569: addslashes-phpdoc-warning.diff

File addslashes-phpdoc-warning.diff, 1.7 KB (added by alexkingorg, 6 years ago)

phpDoc warnings

  • wp-includes/post.php

     
    14991499 *
    15001500 * If the meta field for the post does not exist, it will be added.
    15011501 *
     1502 * If you are not passing in data directly from a $_POST or $_GET, make sure
     1503 * to addslashes() to your data, as this calls update_metadata() which calls
     1504 * stripslashes_deep().
     1505 *
    15021506 * @since 1.5.0
    15031507 * @uses $wpdb
    15041508 * @link http://codex.wordpress.org/Function_Reference/update_post_meta
  • wp-includes/comment.php

     
    555555 *
    556556 * If the meta field for the comment does not exist, it will be added.
    557557 *
     558 * If you are not passing in data directly from a $_POST or $_GET, make sure
     559 * to addslashes() to your data, as this calls update_metadata() which calls
     560 * stripslashes_deep().
     561 *
    558562 * @since 2.9.0
    559563 * @uses update_metadata
    560564 * @link http://codex.wordpress.org/Function_Reference/update_comment_meta
  • wp-includes/user.php

     
    812812 *
    813813 * If the meta field for the user does not exist, it will be added.
    814814 *
     815 * If you are not passing in data directly from a $_POST or $_GET, make sure
     816 * to addslashes() to your data, as this calls update_metadata() which calls
     817 * stripslashes_deep().
     818 *
    815819 * @since 3.0.0
    816820 * @uses update_metadata
    817821 * @link http://codex.wordpress.org/Function_Reference/update_user_meta