Skip to content

Commit

Permalink
Use function_exists() check instead of version compare.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyfae committed Sep 23, 2021
1 parent 41562f9 commit bc26a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/compatibility/edd/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function themedd_edd_settings_styles( $settings ) {
*
* @return void
*/
if ( defined( 'EDD_VERSION' ) && version_compare( '2.10.999', EDD_VERSION, '>' ) ) {
if ( ! function_exists( 'edd_get_orders' ) ) {
add_filter( 'edd_settings_styles', 'themedd_edd_settings_styles' );
}

Expand Down

0 comments on commit bc26a42

Please sign in to comment.