Skip to content

Commit

Permalink
Available take username for wordpress 3.0 or lower.
Browse files Browse the repository at this point in the history
  • Loading branch information
anbe0820 committed Feb 21, 2015
1 parent 884f64a commit 42f278a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/models/wp_user/existable.rb
Expand Up @@ -51,7 +51,7 @@ def self.login_from_body(body)

unless login
# No Permalinks
login = body[%r{<body class="archive author author-([^\s]+) author-(\d+)}i, 1]
login = body[%r{<body class="archive author author-([^\s]+)[ "]}i, 1]
end

login
Expand Down

0 comments on commit 42f278a

Please sign in to comment.