[wp-hackers] [GSOC2010]WPmove [wpurl] tag replace

Otto otto at ottodestruct.com
Thu Apr 8 13:34:53 UTC 2010

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> wrote:
> 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 content
> virtually independent of the domain name(specially great for media, linking
> 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 :)
> if the user copy pastes the url, while posting, the javascript gives a
> prompt to amke the string replace for the dynamic [wpurl] or keep the static
> 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
>> >
>> http://socghop.appspot.com/gsoc/student_proposal/show/google/gsoc2010/piyushmishra/t127067242689
>> > 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 url
>> to
>> > wp. While using the url in posts, we can ask the user if he/she wants to
>> > have the [wpurl] tag replace for url or keep the static url up. this will
>> > help in reducing the issues and efforts for future versions of WP. ( this
>> > 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 here.
>> > 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list