---------- Sent from the Verizon network using Mobile Email
------Original Message------ From: <[email protected]> To: <[email protected]> Date: Fri, Jul 23, 12:00 PM +0000 Subject: wp-testers Digest, Vol 65, Issue 12 Send wp-testers mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://lists.automattic.com/mailman/listinfo/wp-testers or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of wp-testers digest..." Today's Topics: 1. Re: wp3 loading multiple pages unnecessarily (Steve Zehngut) ---------------------------------------------------------------------- Message: 1 Date: Thu, 22 Jul 2010 09:36:03 -0700 From: Steve Zehngut <[email protected]> Subject: Re: [wp-testers] wp3 loading multiple pages unnecessarily To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=us-ascii FYI, I have logged this here: http://core.trac.wordpress.org/ticket/14382 On Jul 21, 2010, at 1:02 PM, Steve Zehngut wrote: > I have a WP3 issue that I came across and I thought it should be posted here. > I apologize if this has been posted previously. Please let me know if this > issue exists as a current known bug. > > I am coding a plugin that needs to do something on 'wp_head'. I was noticing > that it was executing my code twice. I am now using error_log() to display > the post ID and it is displaying the ID of the page I am loading plus another > page ID. > > This only happens when loading pages that have subpages associated with them. > This bug occurs when a custom permalink structure is chosen. It does not > happen when using the default permalink structure. > > Here are steps to reproduce this issue: > > 1) Create a new WP3 site and create a .htaccess file. > > 2) Install and activate this plugin: > > <?php > > /* > * Plugin Name: Post ID Test > */ > > function display_post_id() { > global $post; > error_log('post id: ' . $post->ID . ' | post title: ' . > $post->post_title); > } > > add_action('wp_head', 'display_post_id'); > > ?> > > 3) Create the following pages: > > Page 1 (no parent) > Page 1.1 (parent = Page 1) > Page 1.2 (parent = Page 1) > Page 2 (no parent) > > 4) Change the permalink settings to "Day and Name". > > 5) Visit the front end for Page 2. Your error log will be something like this: > > [21-Jul-2010 19:59:04] post id: 10 | post title: Page 2 > > 6) Now visit the front end for Page 1. Your error log will be something like > this: > > [21-Jul-2010 20:00:46] post id: 4 | post title: Page 1 > [21-Jul-2010 20:00:47] post id: 6 | post title: Page 1.1 > > 7) Page 1.1 generates the following: > > [21-Jul-2010 20:00:58] post id: 6 | post title: Page 1.1 > [21-Jul-2010 20:00:58] post id: 8 | post title: Page 1.2 > > > I tried this in W 2.9.2 and the issue does not exist. > > > > Steve Zehngut > Zeek Interactive, Inc. > > 5267 Warner Avenue #189 > Huntington Beach, CA 92649 > > 714-596-ZEEK (9335) Tel > 714-843-9251 Fax > 310-666-7000 Cell > > http://www.zeek.com > mailto:[email protected] > AIM: Zengy > Facebook: http://facebook.com/zengy > Twitter: @zengy > Skype: stevezehngut > > > > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers Steve Zehngut Zeek Interactive, Inc. 5267 Warner Avenue #189 Huntington Beach, CA 92649 714-596-ZEEK (9335) Tel 714-843-9251 Fax 310-666-7000 Cell http://www.zeek.com mailto:[email protected] AIM: Zengy Facebook: http://facebook.com/zengy Twitter: @zengy Skype: stevezehngut ------------------------------ _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers End of wp-testers Digest, Vol 65, Issue 12 ****************************************** _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
