diff --git a/includes/eael-rollback.php b/includes/eael-rollback.php index 926dba3ca..da52e3076 100755 --- a/includes/eael-rollback.php +++ b/includes/eael-rollback.php @@ -121,7 +121,6 @@ public function __construct() { * @access private */ private function setup_plugin_vars() { - $this->set_svn_versions_data($svn_tags); $this->versions_select('plugin'); } @@ -143,33 +142,6 @@ public function get_plugin_data() { } } - /** - * Set SVN Version Data - * - * @param $html - * - * @return array|bool - */ - public function set_svn_versions_data( $html ) { - if( ! $html ) return false; - - $DOM = new DOMDocument; - $DOM->loadHTML( $html ); - - $versions = []; - $items = $DOM->getElementsByTagName('a'); - - foreach( $items as $item ) { - $href = str_replace( '/', '', $item->getAttribute('href') ); // Remove trailing slash - - if( strpos( $href, 'http' ) === false && '..' !== $href ) { - $versions[] = $href; - } - } - - return $versions; - } - /** * Versions Select *