[wp-hackers] [GSOC2010]WPmove [wpurl] tag replace
admin at oxymaniac.com
Thu Apr 8 14:23:15 UTC 2010
I beg to differ, I tried printing the array out to my local server
Output Array (  => piyushmishra  => rockstar )
changing the text first
I got the array output Array (  => piyushmishra  => punkstar )
and then changing the number of characters rockstar to rockstars
The text didnt give any output and I saw a blank screen, have u noticed that
there is a count of characters in serialized content? One way would be
changing the count too but I prefer loading it as an array > making the
replace and updating it in the db...
> *Otto* otto at ottodestruct.com
> One objection:
> "Even then, if the new domain has a different number of characters in
> it than the old one did, you can run against problems if any of the
> places you replaced the name happened to be inside a serialized array
> (almost all the options, including things like widget settings, text
> widget text, etc)."
> Actually, this is not a problem. PHP is perfectly capable of
> deserializing data with incorrect length values in it. It just throws
> a warning, not an error. And warnings get suppressed by WP by default
> In short: This sort of thing works fine, without any problems at all.
> On Thu, Apr 8, 2010 at 8:22 AM, Piyush Mishra <admin at oxymaniac.com>
> > yes the data of serialized content will have [wpurl] like tag too.as main
> > aim was to have a single place where we edit the domain making the
> > virtually independent of the domain name(specially great for media,
> > and move. :)
> > I agree that there will be a slight delay in rendering data at any level.
> > and this idea isnt for a plugin it is for the whole change of the way wp
> > stores data and the function that calls the url.
> > with wp-cache plugins, this will not be a problem at all :)
> > prompt to amke the string replace for the dynamic [wpurl] or keep the
> > link. in that case, its the final choice of the user.
> >> From: Brian McKenna <puffnfresh at gmail.com>
> >> To: wp-hackers at lists.automattic.com
> >> Date: Thu, 8 Apr 2010 15:08:03 +1000
> >> Subject: Re: [wp-hackers] [GSOC2010]WPmove [wpurl] tag replace
> >> That's an interesting idea. Just some quick questions.
> >> The main problem so far with migrating is replacing the strings in
> >> serialised data (in options, for example) - does that mean that
> >> [wpurl] will be put in everything and then replaced when anything gets
> >> rendered (not just post content)?
> >> If so, wouldn't having a string replace over the (possibly buffered)
> >> output cause some extra delay in page rendering?
> >> Also, what happens if a user innocently copies and pastes a URL from
> >> their website into the edit screens? Does it automatically get
> >> replaced with [wpurl]?
> >> Thanks,
> >> Brian McKenna
> >> On 8 April 2010 14:32, Piyush Mishra <admin at oxymaniac.com> wrote:
> >> > Hi,
> >> > I have proposed WPmove as a plugin/core
> >> >
> >> > wp version : http://piyushmishra.com/blog/ideas/wpmove.html
> >> >
> >> > During my chats with various mentors I came across this issue that to
> >> avoid
> >> > the need of such complex WPmove, we can switch to the basic concept of
> >> > making a universal tag say [wpurl] and place it whereever we need the
> >> to
> >> > wp. While using the url in posts, we can ask the user if he/she wants
> >> > have the [wpurl] tag replace for url or keep the static url up. this
> >> > help in reducing the issues and efforts for future versions of WP. (
> >> > Point is very vital and must be considered even if the proposal is
> >> rejected)
> >> >
> >> > I thought that this needs some good discussion and thus put it up
> >> > please post your feedbacks
> >> >
> >> > --
> >> > Regards
> >> > Piyush Mishra
> >> > ______________________________
> >> _________________
> >> > wp-hackers mailing list
> >> > wp-hackers at lists.automattic.com
> >> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >> >
> > --
> > Regards
> > Piyush Mishra
More information about the wp-hackers