Skip to content

Commit

Permalink
Merge pull request #1902 from rtCamp/develop
Browse files Browse the repository at this point in the history
Fix update notice showing up every-time
  • Loading branch information
pooja-muchandikar authored Apr 25, 2022
2 parents 3b1c5d1 + 3adf5d3 commit df0fad9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/admin/RTMediaAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,49 +553,49 @@ public function check_for_addon_update_notice() {
// Check for rtMedia Instagram version.
if ( defined( 'RTMEDIA_INSTAGRAM_PATH' ) ) {
$plugin_info = get_plugin_data( RTMEDIA_INSTAGRAM_PATH . 'index.php' );
if ( isset( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.1.14' ) ) ) {
if ( ! empty( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.1.14' ) ) ) {
$return_flag = true;
}
} elseif ( defined( 'RTMEDIA_PHOTO_TAGGING_PATH' ) ) {
// Check for rtMedia Photo Tagging version.
$plugin_info = get_plugin_data( RTMEDIA_PHOTO_TAGGING_PATH . 'index.php' );
if ( isset( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.2.14' ) ) ) {
if ( ! empty( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.2.14' ) ) ) {
$return_flag = true;
}
} elseif ( defined( 'RTMEDIA_FFMPEG_PATH' ) ) {
// Check for rtMedia FFPMEG version.
$plugin_info = get_plugin_data( RTMEDIA_FFMPEG_PATH . 'index.php' );
if ( isset( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.1.14' ) ) ) {
if ( ! empty( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.1.14' ) ) ) {
$return_flag = true;
}
} elseif ( defined( 'RTMEDIA_KALTURA_PATH' ) ) {
// Check for rtMedia Kaltura version.
$plugin_info = get_plugin_data( RTMEDIA_KALTURA_PATH . 'index.php' );
if ( isset( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '3.0.16' ) ) ) {
if ( ! empty( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '3.0.16' ) ) ) {
$return_flag = true;
}
} elseif ( defined( 'RTMEDIA_PRO_PATH' ) ) {
// Check for rtMedia Pro version.
$plugin_info = get_plugin_data( RTMEDIA_PRO_PATH . 'index.php' );
if ( isset( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.6' ) ) ) {
if ( ! empty( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.6' ) ) ) {
$return_flag = true;
}
} elseif ( defined( 'RTMEDIA_SOCIAL_SYNC_PATH' ) ) {
// Check for rtMedia Social Sync version.
$plugin_info = get_plugin_data( RTMEDIA_SOCIAL_SYNC_PATH . 'index.php' );
if ( isset( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '1.3.1' ) ) ) {
if ( ! empty( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '1.3.1' ) ) ) {
$return_flag = true;
}
} elseif ( defined( 'RTMEDIA_MEMBERSHIP_PATH' ) ) {
// Check for rtMedia Membership version.
$plugin_info = get_plugin_data( RTMEDIA_MEMBERSHIP_PATH . 'index.php' );
if ( isset( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.1.5' ) ) ) {
if ( ! empty( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '2.1.5' ) ) ) {
$return_flag = true;
}
} elseif ( defined( 'RTMEDIA_WATERMARK_PATH' ) ) {
// Check for rtMedia Photo Watermak version.
$plugin_info = get_plugin_data( RTMEDIA_WATERMARK_PATH . 'index.php' );
if ( isset( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '1.1.8' ) ) ) {
if ( ! empty( $plugin_info['Version'] ) && ( - 1 === version_compare( $plugin_info['Version'], '1.1.8' ) ) ) {
$return_flag = true;
}
}
Expand Down

0 comments on commit df0fad9

Please sign in to comment.