I do a manual search&replace in a downloaded SQL dump prior to uploading it :)
It is fast, simple and reliable.
The only trouble is if you have a premium theme with its own settings dashboard, those settings are stored as serialized data, and they include your site path, you may broke something.
usual ajax request via addaction( 'wpajax_...
http://screencast.com/t/TdipqkLIM
the way author sugested
http://screencast.com/t/jW2Y76gN5v
The first number is a responce. The lower is current memory usage.
So on my site this goes down from 18 mb per ajax request to 4-5 mb depending on needed functions.
That was in reply to jurgelenas
Было бы вежливо рядом с текстом, написанном на непонятном языке, написать и перевод на английском.
Но тут, скорее всего, так не принято(
what's the difference with this https://coderwall.com/p/k3d5lw tip?
And still, quite nice idea to insert a link with ref id)
note for windows users
sublime closes itself on ctrl+shift+w
at least it does so on my computer)
zen is out-of-date, they do not update it anymore.
try using emmet, it has a all the same functionallity and much more
OK, great. Now try to transform this 'sanitized' URL back?
Some religious rules disallow you use urlencode()?
By the way, do you happen to know this guy?)
https://coderwall.com/p/a-viza
@michalkow than your solution lacks two things: regexps to handle all special chars and a solution to transform your converted URL back to text.
@spinache do you really think this solution can make a valid URL out of text? Try this: "some piece of text with ? and & andagain?"
why not to use buildin urlencode() for php and encodeURI() or encodeURIComponent() for js?
nope, this will not work in my case.
or I can figure out hov to make it work)
what I have is:
three custom taxonomies. Let them be color, size, and region.
initial URL is site.com/somepage/
I alter this link with addqueryarg, so it becomes
site.com/somepage/?size=big
Next a user moves to page
site.com/somepage/page/3/?size=big
addqueryarg will use 'site.com/somepage/page/3/' if to skip second argument.
And the permalink still shows as 'site.com/somepage/'
What I do now is I have several checks like if(isset($_GET['size'])) ...
This seems to be a way out for a short list of terms, but what if there are 20-30 terms?
Believe there should be a way to work with URL)
I'm avare of removequeryarg() function. It does not help in this case(
and how can you delete an argument from an URL?
say, I have such an UTL:
site.com/page/3/?action=some
How to transform it into this:
site.com/?action=some or site.com/page/2/?action=some
check this https://coderwall.com/p/of7y2q