Make WordPress Core

Changeset 53959


Ignore:
Timestamp:
08/30/2022 03:14:04 PM (2 years 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.