Skip to content

Commit cb8290c

Browse files
authored
Merge branch 'develop' into release/v2.7.2
2 parents 210e497 + 6e888bf commit cb8290c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

assets/js/components/term-selector/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function TermSelector({
2727
const fetchTermData = async () => {
2828
if (debouncedSearchTerm) {
2929
const newSearchResults = await apiFetch({
30-
path: `/${taxonomies[taxonomy].rest_namespace}/${taxonomies[taxonomy].rest_base}?search=${debouncedSearchTerm}`,
30+
path: `/${taxonomies[taxonomy].rest_namespace}/${taxonomies[taxonomy].rest_base}?search=${debouncedSearchTerm}&per_page=50`,
3131
});
3232
newSearchResults.forEach((result) => termCache.set(result));
3333
setSearchResults(newSearchResults);

includes/class-apple-news.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ public function action_admin_enqueue_scripts( $hook ) {
436436
* @access public
437437
*/
438438
public function action_enqueue_block_editor_assets(): void {
439+
440+
if ( empty( Admin_Apple_Settings_Section::$loaded_settings['post_types'] ) ) {
441+
return;
442+
}
443+
439444
// Bail if the post type is not one of the Publish to Apple News post types configured in settings.
440445
if ( ! in_array( get_post_type(), (array) Admin_Apple_Settings_Section::$loaded_settings['post_types'], true ) ) {
441446
return;

0 commit comments

Comments
 (0)