lib/wmap/utils/wp_detect.rb
# Main method to detect if it's a wordpress site
Main method to detect if it's a wordpress site
Main method to detect if it ' s a wordpress site
def is_wp?(url)
  		site=url_2_site(url)
  		if wp_readme?(site)
  			return true
  		elsif wp_css?(site)
  			return true
  		elsif wp_meta?(site)
  			return true
  		elsif wp_login?(site)
  			return true
  		elsif wp_rpc?(site)
  			return true
  		elsif wp_gen?(site)
  			return true
      elsif wp_load_styles?(site)
  			return true
  		else
  			return false
  		end
  	rescue => ee
  		puts "Exception on method #{__method__}: #{ee}: #{url}" if @verbose
  	end
def is_wp? ( url ) site = url_2_site ( url ) if wp_readme? ( site ) return true elsif wp_css? ( site ) return true elsif wp_meta? ( site ) return true elsif wp_login? ( site ) return true elsif wp_rpc? ( site ) return true elsif wp_gen? ( site ) return true elsif wp_load_styles? ( site ) return true else return false end rescue => ee puts "Exception on method #{__method__}: #{ee}: #{url}" if @verbose end
Main method to detect if it's a wordpress site
Main method to detect if it ' s a wordpress site
url
<not_specific>