Message from discussion
sorta an off the wall bug
Received: by 10.236.157.1 with SMTP id n1mr24034603yhk.1.1340303780810;
Thu, 21 Jun 2012 11:36:20 -0700 (PDT)
X-BeenThere: wp-testers@googlegroups.com
Received: by 10.236.131.237 with SMTP id m73ls1572620yhi.0.gmail; Thu, 21 Jun
2012 11:36:20 -0700 (PDT)
Received: by 10.236.191.40 with SMTP id f28mr51998825yhn.2.1340303780639;
Thu, 21 Jun 2012 11:36:20 -0700 (PDT)
Received: by 10.236.191.40 with SMTP id f28mr51998822yhn.2.1340303780623;
Thu, 21 Jun 2012 11:36:20 -0700 (PDT)
Return-Path: <wp-testers-boun...@lists.automattic.com>
Received: from lists.luv.wordpress.org (lists.luv.wordpress.org. [72.233.56.172])
by gmr-mx.google.com with ESMTP id b73si18879201yhh.4.2012.06.21.11.36.20;
Thu, 21 Jun 2012 11:36:20 -0700 (PDT)
Received-SPF: pass (google.com: domain of wp-testers-boun...@lists.automattic.com designates 72.233.56.172 as permitted sender) client-ip=72.233.56.172;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wp-testers-boun...@lists.automattic.com designates 72.233.56.172 as permitted sender) smtp.mail=wp-testers-boun...@lists.automattic.com; dkim=neutral (body hash did not verify) header...@ottodestruct.com
Received: from lists.luv.wordpress.org (localhost.localdomain [127.0.0.1])
by lists.luv.wordpress.org (Postfix) with ESMTP id 7A7B65F835;
Thu, 21 Jun 2012 18:36:19 +0000 (UTC)
X-Original-To: wp-test...@lists.automattic.com
Delivered-To: wp-test...@lists.automattic.com
Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com
[209.85.220.169])
by lists.luv.wordpress.org (Postfix) with ESMTP id D661E5F832
for <wp-test...@lists.automattic.com>;
Thu, 21 Jun 2012 18:36:17 +0000 (UTC)
Received: by vcbfl10 with SMTP id fl10so484343vcb.28
for <wp-test...@lists.automattic.com>;
Thu, 21 Jun 2012 11:36:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=ottodestruct.com; s=google;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type:content-transfer-encoding;
bh=n8V3iHUy5ukZDdP+DjGwuAM+G+8rE96qh6kY288kG3o=;
b=VKJYxSzxPcCFYOlBqSuY12Q0LUWPxC9u4vcHJCfRMrlR9H13cGHZpcwXKY1Mpq7/yP
QTXKigMGrXPiDZ5dT3/82lIm4XEf/oOK+F6XETMY/9HzfdikW3neFZylRAcggIOQlOu/
kpNEJj8BjmFI7dAokG0ZX6lMEAXcO2MM9sxA0=
d=google.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type:content-transfer-encoding:x-gm-message-state;
bh=n8V3iHUy5ukZDdP+DjGwuAM+G+8rE96qh6kY288kG3o=;
b=M0gOfjqcQLgKDIJBx6t5Ga8mzpbrskh1j1NkeSMGEKTl6nARFFCkMqrWE+tMD7ukUj
5vsLNyd7LGvsU9/LTPhIsxM0em0kfyOT7UbTmkuBjmZTn0xD1GauyBAnSmOq2uLPcAVc
uyDNrdZYVs47Q0F9Y1iIil6hzKgfnb2JRNfKUYXuxb38PVYW89nQh3wt8mL0SwysfIzF
fGNUN4B53VluAF6wrPneMcUxcPv1EXQfNj8DnR/Yih22UPGTUAfhW7RJCQ+M/+IqWz/w
E9kBkT2adWFACaCMIFgs8m9JgfWmwCe5g/+f/CGxXBxteL/vvRDHM4Onx1zl17UJHuv0
+k4A==
Received: by 10.221.9.139 with SMTP id ow11mr11656462vcb.26.1340303777572;
Thu, 21 Jun 2012 11:36:17 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.6.147 with HTTP; Thu, 21 Jun 2012 11:35:37 -0700 (PDT)
In-Reply-To: <B01B43A3B67F4C3D94E3E639426B2755@Furious>
References: <AFA301ADF99948FBA82D0F2E20ABBD8E@Furious>
<CAD-Fghw-OCjiZBjRa9ABPYd-=Bh9O-2Dm-SFeKf_jBN2WbP...@mail.gmail.com>
<CAP29PvjoQ6_wNvC55BAHHCDEAjGYg+dF6UnUS-_P+kM99P6...@mail.gmail.com>
<CAD-FghyTOvdoMsn9z8b+PkJTnZymf78Fx6fap1oRKDnp6J3...@mail.gmail.com>
<B01B43A3B67F4C3D94E3E639426B2755@Furious>
From: Otto <o...@ottodestruct.com>
Date: Thu, 21 Jun 2012 13:35:37 -0500
Message-ID: <CAD-FghxKqHx6ouih5mQF0ZOcbvKHD08PFdNez43duvV_omW...@mail.gmail.com>
To: wp-test...@lists.automattic.com
X-Gm-Message-State: ALoCoQmCq82pI1bv5hY/TYtkPIa0kK1ysjLDDiIsWrNJhDW4o3mb/6C06jWnVpxL3kB2+l92Ptku
Subject: Re: [wp-testers] sorta an off the wall bug
X-BeenThere: wp-test...@lists.automattic.com
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: wp-test...@lists.automattic.com
List-Id: <wp-testers.lists.automattic.com>
List-Unsubscribe: <http://lists.automattic.com/mailman/options/wp-testers>,
<mailto:wp-testers-requ...@lists.automattic.com?subject=unsubscribe>
List-Archive: <http://lists.automattic.com/pipermail/wp-testers>
List-Post: <mailto:wp-test...@lists.automattic.com>
List-Help: <mailto:wp-testers-requ...@lists.automattic.com?subject=help>
List-Subscribe: <http://lists.automattic.com/mailman/listinfo/wp-testers>,
<mailto:wp-testers-requ...@lists.automattic.com?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: wp-testers-boun...@lists.automattic.com
Errors-To: wp-testers-boun...@lists.automattic.com
On Thu, Jun 21, 2012 at 1:32 PM, Philip M. Hofer (Frumph)
<phi...@frumph.net> wrote:
> upload_path =3D "/home/funk/wp-content/uploads
> SAVED ABSPATH IN upload_path =3D "/home/funk"
> NEW CURRENT ABSPATH =A0=3D "/home/foo"
>
> echo substr( WP_CONTENT_DIR, strlen( ABSPATH ) ).'uploads';
>
> will produce "/home/funk/wp-content/uploads".
a) No, it won't.
b) You didn't say what WP_CONTENT_DIR is set to.
c) Doesn't actually matter what that produces, because that code is
only run on new installs. You're in schema.php. That code doesn't run
when moving old installs.
The upload_path is set in the database. It doesn't change when you
move an install somewhere else.
So why was upload_path set to /home/funk/wp-content/uploads in the
first place? On a new install, it is *not* set to an absolute path.
Just tested that myself.
-Otto
_______________________________________________
wp-testers mailing list
wp-test...@lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-testers