Skip to:
Content

bbPress.org

Changeset 6697


Ignore:
Timestamp:
09/13/2017 08:47:03 PM (4 years ago)
Author:
johnjamesjacoby
Message:

Admin: prefer implode() over join().

Location:
trunk/src/includes/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/replies.php

    r6573 r6697  
    288288            }
    289289
    290             $sendback = add_query_arg( array( 'updated' => $updated, 'ids' => join( ',', $post_ids ), 'locked' => $locked ), $sendback );
     290            $sendback = add_query_arg( array(
     291                'updated' => $updated,
     292                'ids'     => implode( ',', $post_ids ),
     293                'locked'  => $locked
     294            ), $sendback );
    291295
    292296        } elseif ( 'unspam' === $doaction ) {
     
    309313            }
    310314
    311             $sendback = add_query_arg( array( 'updated' => $updated, 'ids' => join( ',', $post_ids ), 'locked' => $locked ), $sendback );
     315            $sendback = add_query_arg( array(
     316                'updated' => $updated,
     317                'ids'     => implode( ',', $post_ids ),
     318                'locked'  => $locked
     319            ), $sendback );
    312320        }
    313321
  • trunk/src/includes/admin/topics.php

    r6573 r6697  
    293293            }
    294294
    295             $sendback = add_query_arg( array( 'updated' => $updated, 'ids' => join( ',', $post_ids ), 'locked' => $locked ), $sendback );
     295            $sendback = add_query_arg( array(
     296                'updated' => $updated,
     297                'ids'     => implode( ',', $post_ids ),
     298                'locked'  => $locked
     299            ), $sendback );
    296300
    297301        } elseif ( 'unspam' === $doaction ) {
     
    314318            }
    315319
    316             $sendback = add_query_arg( array( 'updated' => $updated, 'ids' => join( ',', $post_ids ), 'locked' => $locked ), $sendback );
     320            $sendback = add_query_arg( array(
     321                'updated' => $updated,
     322                'ids'     => implode( ',', $post_ids ),
     323                'locked'  => $locked
     324            ), $sendback );
    317325        }
    318326
Note: See TracChangeset for help on using the changeset viewer.