diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php index 892d6ac939..0695bcce6d 100644 --- a/src/wp-content/themes/twentyfourteen/functions.php +++ b/src/wp-content/themes/twentyfourteen/functions.php @@ -498,6 +498,12 @@ if ( ! function_exists( 'twentyfourteen_list_authors' ) ) : 'capability' => array( 'edit_posts' ), ); + // Capability queries were only introduced in WP 5.9. + if ( version_compare( $GLOBALS['wp_version'], '5.9-alpha', '<' ) ) { + $args['who'] = 'authors'; + unset( $args['capability'] ); + } + /** * Filters query arguments for listing authors. *