Make WordPress Core


Ignore:
Timestamp:
08/30/2022 03:14:04 PM (22 months ago)
Author:
SergeyBiryukov
Message:

General: Ensure bookmark query limits are numeric.

Props paulkevan, xknown.

File:
1 edited

Legend:

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

    r53566 r53959  
    308308    $query .= " ORDER BY $orderby $order";
    309309    if ( -1 != $parsed_args['limit'] ) {
    310         $query .= ' LIMIT ' . $parsed_args['limit'];
     310        $query .= ' LIMIT ' . absint( $parsed_args['limit'] );
    311311    }
    312312
Note: See TracChangeset for help on using the changeset viewer.