Walmart to keep guns in shopping areas in major reversal of plan to prevent civil unrest
Rifles for sale (image via Raw Story/Bob Brigham).

Walmart reversed course Friday and said it would keep guns in shopping areas, quickly shifting away from a plan to keep firearms away from customers.

The retail giant had announced Thursday it would still sell guns and ammunition, but would not display them in retail spaces, citing unrest in Philadelphia this week.

Some observers had also seen the move as an indicator of worry ahead of next week's US presidential election.

The world's largest store chain performed a 180-degree turn on Friday.

"After civil unrest earlier this week resulted in damage to several of our stores, consistent with actions we took over the summer, we asked stores to move firearms and ammunition from the sales floor to a secure location in the back of the store in an abundance of caution," Walmart said.

"As the current incidents have remained geographically isolated, we have made the decision to begin returning these products to the sales floor today."

Walmart's reversal comes just days ahead of the November 3 presidential election amid unease over the possibility of civil unrest and voter intimidation.

On Friday, Philadelphia District Attorney Larry Krasner said on CNN that efforts to intimidate voters would be prosecuted.

"The 2nd Amendment does not protect people who pretend to be a militia and have not been summoned by a governor," Krasner told the network.

"A militia is not something you just get to be by saying it. A militia is something you get to be when government authority summons you.

"So if you want to dress up like GI Joe and claim you are 'protecting the polls' when we all know you're intimidating voters, you're getting locked up."

Walmart sells guns and ammunition at about half its US stores, primarily in locations where hunting is popular.