Version |

', $update['latest_version'], '' ); } else { printf( esc_html__( '%1$sView version %2$s details %3$s or %4$supdate now%5$s.', 'gravityforms' ), '', $update['latest_version'], '', '', '' ); } } else { printf( esc_html__( '%sRegister%s your copy of Gravity Forms to receive access to automatic updates and support. Need a license key? %sPurchase one now%s.', 'gravityforms' ), '', '', '', '' ); } ?>

=' ) ) { $version_icon = 'dashicons-yes'; $version_message = esc_html__( 'Your version of Gravity Forms is up to date.', 'gravityforms' ); } else { if ( rgar( $version_info, 'is_valid_key' ) ) { $version_icon = 'dashicons-no'; $version_message = sprintf( '%s

%s

', esc_html__( 'There is a new version of Gravity Forms available.', 'gravityforms' ), esc_html__( 'You can update to the latest version automatically or download the update and install it manually.', 'gravityforms' ) ); } else { $version_icon = 'dashicons-no'; $version_message = sprintf( '%s

%s

', esc_html__( 'There is a new version of Gravity Forms available.', 'gravityforms' ), sprintf( esc_html__( '%sRegister%s your copy of Gravity Forms to receive access to automatic updates and support. Need a license key? %sPurchase one now%s.', 'gravityforms' ), '', '', '', '' ) ); } } // Add Gravity Forms core to updates array. $updates[] = array( 'is_valid_key' => rgar( $version_info, 'is_valid_key' ), 'name' => esc_html__( 'Gravity Forms', 'gravityforms' ), 'path' => $plugin_path, 'slug' => 'gravityforms', 'latest_version' => $version_info['version'], 'installed_version' => GFCommon::$version, 'upgrade_url' => $upgrade_url, 'download_url' => $version_info['url'], 'version_icon' => $version_icon, 'version_message' => $version_message, ); /** * Modify plugins displayed on the Updates page. * * @since 2.2 * * @param array $updates An array of plugins displayed on the Updates page. */ $updates = apply_filters( 'gform_updates_list', $updates ); return $updates; } }