Make WordPress Core


Ignore:
Timestamp:
09/14/2015 09:39:46 PM (9 years ago)
Author:
wonderboymusic
Message:

More comment functions can accept a full object instead of comment_ID to reduce cache/db lookups.

See ##33638.

File:
1 edited

Legend:

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

    r34104 r34129  
    42664266            delete_comment_meta($comment_id, '_wp_trash_meta_status');
    42674267        } else {
    4268             wp_delete_comment($comment_id);
     4268            wp_delete_comment( $del_comment );
    42694269        }
    42704270    }
Note: See TracChangeset for help on using the changeset viewer.