Make WordPress Core


Ignore:
Timestamp:
04/07/2022 04:04:31 AM (3 years ago)
Author:
peterwilsoncc
Message:

Editor: Limit display of tags on classic editor.

On the classic editor, limit the search of tags and non-hierarchical taxonomies to twenty results. This in turn prevents an unbounded database query via an AJAX request.

Props pikamander2, costdev, azouamauriac, audrasjb.
Fixes #55052.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r53088 r53089  
    159159            'fields'     => 'names',
    160160            'hide_empty' => false,
     161            'number'     => isset( $_GET['number'] ) ? (int) $_GET['number'] : 0,
    161162        )
    162163    );
Note: See TracChangeset for help on using the changeset viewer.