Make WordPress Core

Ticket #16841: 16841-twentyfourteen.diff

File 16841-twentyfourteen.diff, 655 bytes (added by swissspidy, 3 years ago)
  • src/wp-content/themes/twentyfourteen/functions.php

    diff --git src/wp-content/themes/twentyfourteen/functions.php src/wp-content/themes/twentyfourteen/functions.php
    index 892d6ac939..0695bcce6d 100644
    if ( ! function_exists( 'twentyfourteen_list_authors' ) ) : 
    498498                        'capability' => array( 'edit_posts' ),
    499499                );
    500500
     501                // Capability queries were only introduced in WP 5.9.
     502                if ( version_compare( $GLOBALS['wp_version'], '5.9-alpha', '<' ) ) {
     503                        $args['who'] = 'authors';
     504                        unset( $args['capability'] );
     505                }
     506
    501507                /**
    502508                 * Filters query arguments for listing authors.
    503509                 *