diff --git src/wp-includes/load.php src/wp-includes/load.php
index c785128..36eded4 100644
|
|
function wp_get_active_and_valid_plugins() { |
552 | 552 | $network_plugins = is_multisite() ? wp_get_active_network_plugins() : false; |
553 | 553 | |
554 | 554 | foreach ( $active_plugins as $plugin ) { |
| 555 | // Don't load older versions of the REST API. |
| 556 | if ( 'rest-api/plugin.php' === $plugin ) { |
| 557 | $file_data = get_file_data( WP_PLUGIN_DIR . '/' . $plugin, array( 'Version' => 'version' ) ); |
| 558 | if ( isset( $file_data['Version'] ) && version_compare( $file_data['Version'], '2.0-beta4', '<=' ) ) { |
| 559 | continue; |
| 560 | } |
| 561 | } |
| 562 | |
555 | 563 | if ( ! validate_file( $plugin ) // $plugin must validate as file |
556 | 564 | && '.php' == substr( $plugin, -4 ) // $plugin must end with '.php' |
557 | 565 | && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist |