mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 05:34:26 +00:00
Remove unnecessary return by refs. Props wonderboymusic. fixes #21839
git-svn-id: https://develop.svn.wordpress.org/trunk@21792 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -127,7 +127,7 @@ function get_approved_comments($post_id) {
|
||||
* @param string $output Optional. OBJECT or ARRAY_A or ARRAY_N constants.
|
||||
* @return object|array|null Depends on $output value.
|
||||
*/
|
||||
function &get_comment(&$comment, $output = OBJECT) {
|
||||
function get_comment(&$comment, $output = OBJECT) {
|
||||
global $wpdb;
|
||||
$null = null;
|
||||
|
||||
@@ -723,7 +723,7 @@ function check_comment_flood_db( $ip, $email, $date ) {
|
||||
* @param array $comments Array of comments
|
||||
* @return array Array of comments keyed by comment_type.
|
||||
*/
|
||||
function &separate_comments(&$comments) {
|
||||
function separate_comments(&$comments) {
|
||||
$comments_by_type = array('comment' => array(), 'trackback' => array(), 'pingback' => array(), 'pings' => array());
|
||||
$count = count($comments);
|
||||
for ( $i = 0; $i < $count; $i++ ) {
|
||||
|
||||
Reference in New Issue
Block a user