From wp at xentek.net Tue Sep 1 00:41:37 2009 From: wp at xentek.net (Eric Marden) Date: Mon, 31 Aug 2009 20:41:37 -0400 Subject: [wp-hackers] Can't use the same conditional tag twice? In-Reply-To: <58410e2e0908301937sa6a2345ye07b91ec68b09dc2@mail.gmail.com> References: <58410e2e0908261810o6c8f06ealc0de0ea40122833d@mail.gmail.com> <58410e2e0908301937sa6a2345ye07b91ec68b09dc2@mail.gmail.com> Message-ID: On Aug 30, 2009, at 10:37 PM, Bryan Harley wrote: >
  • href="URLHERE">Welcome
  • > >
  • Welcome
  • > FYI: is_home() and is_front_page() aren't always equivalent and depending on the configuration of WordPress, can be testing different things: http://codex.wordpress.org/Conditional_Tags - Eric Marden __________________________________ http://xentek.net/code/wordpress/ From bryanharley at gmail.com Tue Sep 1 00:43:09 2009 From: bryanharley at gmail.com (Bryan Harley) Date: Mon, 31 Aug 2009 17:43:09 -0700 Subject: [wp-hackers] Can't use the same conditional tag twice? In-Reply-To: References: <58410e2e0908261810o6c8f06ealc0de0ea40122833d@mail.gmail.com> <58410e2e0908301937sa6a2345ye07b91ec68b09dc2@mail.gmail.com> Message-ID: <58410e2e0908311743l117522cg44cb9fa13a87bbbd@mail.gmail.com> Yes, I'm using query_posts. On Mon, Aug 31, 2009 at 1:13 AM, Dion Hulse (dd32) wrote: > are you using query_posts()? > > query_posts overrides the current query, Its not the best way to go about > what most people use it for. > > try adding wp_reset_query() iin your footer and see if that helps (for > future reference) - Or call it after query_posts is finished. > > > On Mon, 31 Aug 2009 12:37:00 +1000, Bryan Harley > wrote: > > Peter/Jeremy, >> >> I'm using the following code in both my header and footer. >> >>
  • > href="URLHERE">Welcome
  • >> >> Here's the CSS: >> >> li.current_page_item a{border-bottom: 3px solid #ec1c24;} >> >> But the border is only showing in the header, not the footer. To >> correct this, I left my header code the same and changed the footer >> code to: >> >>
  • Welcome
  • >> >> That solved the problem, but I don't understand why it just didn't >> WORK in the first place. Which lead me to believe maybe you can only >> use one conditional tag per page. >> >> -Bryan >> >> >> On Thu, Aug 27, 2009 at 10:58 AM, Jeremy Clarke >> wrote: >> >>> On Wed, Aug 26, 2009 at 9:10 PM, Bryan Harley >>> wrote: >>> >>>> It seems to me that you can't use the same conditional tag on the same >>>> page twice. Can anyone else confirm this. Why is this so? >>>> >>> >>> In my experience this is definitely not the case. You probably have >>> some kind of other issue with your template. Conditional tags would be >>> practically useless if they were limited to once per page. >>> >>> >>> -- >>> Jeremy Clarke | http://jeremyclarke.org >>> Code and Design | http://globalvoicesonline.org >>> _______________________________________________ >>> wp-hackers mailing list >>> wp-hackers at lists.automattic.com >>> http://lists.automattic.com/mailman/listinfo/wp-hackers >>> >>> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> > > -- > -- > Dion Hulse > e: contact at dd32.id.au > w: http://dd32.id.au/ > m: 04 6621 9112 (+614 6621 9112) > WordPressQI: http://wordpressqi.com/ > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From scribu at gmail.com Tue Sep 1 01:03:35 2009 From: scribu at gmail.com (scribu) Date: Tue, 1 Sep 2009 04:03:35 +0300 Subject: [wp-hackers] Rewrite endpoints In-Reply-To: <674b4a3b0908311655t5532ef16t1f6292898a16bd1f@mail.gmail.com> References: <349fe48b0908311633q319633f7tf902702f08590a79@mail.gmail.com> <349fe48b0908311647s2848695dy1d3921371cc5425a@mail.gmail.com> <674b4a3b0908311655t5532ef16t1f6292898a16bd1f@mail.gmail.com> Message-ID: <349fe48b0908311803yc94e973v987710c9cf155506@mail.gmail.com> On Tue, Sep 1, 2009 at 2:55 AM, Austin Matzko wrote: > Perhaps, but the way it works currently is that you have to explicitly > declare it as a query variable, by calling > $wp->add_query_var('foobar'). > That line is already included in $wp_rewrite->add_endpoint(). And foobar shows up in [query_vars] when it's not empty. -- http://scribu.net From r at schestowitz.com Tue Sep 1 01:10:01 2009 From: r at schestowitz.com (Roy Schestowitz) Date: Tue, 01 Sep 2009 02:10:01 +0100 Subject: [wp-hackers] WP-Hackers Stats for August 2009 Message-ID: <4A9C7469.7090505@schestowitz.com> ? Times are Greenwich Mean Time (GMT) +0:00 ? Statistics span a period of one month ? Subject line formatted consistently "WP-Hackers Stats for " ? Killfile if uninterested ____________________________________________________________ Stats for wp-hackers ~~~~~~~~~~~~~~~~~~~~ ***** People who have written most messages: +----+-----Author-----------------------------------+--Msg-+-Percent-+ | 1 | scribu gmail.com | 26 | 7.60 % | | 2 | wordpress dd32.id.au | 15 | 4.39 % | | 3 | peter.westwood ftwr.co.uk | 14 | 4.09 % | | 4 | otto ottodestruct.com | 14 | 4.09 % | | 5 | wp-hackers itsananderson.com | 12 | 3.51 % | | 6 | mikeschinkel newclarity.net | 10 | 2.92 % | | 7 | gaarai gaarai.com | 8 | 2.34 % | | 8 | handy.solo gmail.com | 8 | 2.34 % | | 9 | wp-hackers striderweb.com | 7 | 2.05 % | | 10 | wp xentek.net | 7 | 2.05 % | | 11 | ozh planetozh.com | 7 | 2.05 % | | 12 | matt sivel.net | 7 | 2.05 % | | 13 | websweetweb gmail.com | 7 | 2.05 % | | 14 | wordpress santosj.name | 6 | 1.75 % | | 15 | simon sweetinteraction.com | 6 | 1.75 % | | 16 | jason findingsimple.com | 6 | 1.75 % | | 17 | jordi jcanals.net | 5 | 1.46 % | | 18 | photofantaisie gmail.com | 5 | 1.46 % | | 19 | kontakt joernroeder.de | 5 | 1.46 % | | 20 | admin laptoptips.ca | 5 | 1.46 % | | 21 | ricardo.cezar gmail.com | 5 | 1.46 % | | 22 | aaron xavisys.com | 4 | 1.17 % | | 23 | steph sillybean.net | 4 | 1.17 % | | 24 | ashok.padda gmail.com | 4 | 1.17 % | | 25 | dragonfly dragonflyeye.net | 4 | 1.17 % | +----+----------------------------------------------+------+---------+ | | other | 141 | 41.23 % | +----+----------------------------------------------+------+---------+ ***** Best authors, by total size of their messages (w/o quoting): +----+-----Author-------------------------------------------+-KBytes-+ | 1 | peter.westwood ftwr.co.uk | 15.4 | | 2 | wordpress dd32.id.au | 14.8 | | 3 | scribu gmail.com | 13.0 | | 4 | mikeschinkel newclarity.net | 10.7 | | 5 | wordpress santosj.name | 9.3 | | 6 | wp-hackers itsananderson.com | 8.3 | | 7 | otto ottodestruct.com | 7.5 | | 8 | gaarai gaarai.com | 7.5 | | 9 | liste srpski.biz | 6.8 | | 10 | shane bugssite.org | 6.8 | | 11 | casey.bisson gmail.com | 5.6 | | 12 | wp xentek.net | 5.4 | | 13 | jane automattic.com | 5.2 | | 14 | jordi jcanals.net | 4.9 | | 15 | matt sivel.net | 4.9 | | 16 | dragonfly dragonflyeye.net | 4.9 | | 17 | handy.solo gmail.com | 4.6 | | 18 | spellham gmail.com | 4.6 | | 19 | simon sweetinteraction.com | 4.4 | | 20 | ozh planetozh.com | 3.8 | | 21 | jason findingsimple.com | 3.4 | | 22 | wp-hackers striderweb.com | 3.4 | | 23 | ashok.padda gmail.com | 3.3 | | 24 | steph sillybean.net | 3.2 | | 25 | websweetweb gmail.com | 3.2 | +----+------------------------------------------------------+--------+ ***** Best authors, by average size of their message (w/o quoting): +----+-----Author--------------------------------------------+-bytes-+ | 1 | shane bugssite.org | 6923 | | 2 | james om4.com.au | 3114 | | 3 | jane automattic.com | 2659 | | 4 | liste srpski.biz | 2337 | | 5 | eric ericmmartin.com | 2193 | | 6 | casey.bisson gmail.com | 1919 | | 7 | wordpress santosj.name | 1595 | | 8 | spellham gmail.com | 1555 | | 9 | dragonfly dragonflyeye.net | 1243 | | 10 | davemee gmail.com | 1233 | | 11 | speedboxer gmail.com | 1177 | | 12 | spuriousdata gmail.com | 1161 | | 13 | peter.westwood ftwr.co.uk | 1122 | | 14 | mikeschinkel newclarity.net | 1098 | | 15 | batmoo gmail.com | 1087 | | 16 | yahgrp poplarware.com | 1075 | | 17 | rapperajm yahoo.com | 1072 | | 18 | jordi jcanals.net | 1012 | | 19 | wordpress dd32.id.au | 1007 | | 20 | gaarai gaarai.com | 961 | | 21 | joseph josephscott.org | 957 | | 22 | tim silentgap.com | 919 | | 23 | lynne.pope gmail.com | 917 | | 24 | joelfisher gmail.com | 915 | | 25 | ashok.padda gmail.com | 855 | +----+-------------------------------------------------------+-------+ ***** Table showing the most successful subjects: +----+----Subject-----------------------------------+--Msg-+-Percent-+ | 1 | [wp-hackers] Meta tables: Take 5 | 22 | 6.43 % | | 2 | [wp-hackers] what the ? | 15 | 4.39 % | | 3 | [wp-hackers] Quest for Self Pingbacks | 14 | 4.09 % | | 4 | [wp-hackers] WPMU VHOST constant | 12 | 3.51 % | | 5 | [wp-hackers] Changeset 11804 | 12 | 3.51 % | | 6 | [wp-hackers] WPMU Category Table | 12 | 3.51 % | | 7 | [wp-hackers] Plugin API: Unique ID explanati | 11 | 3.22 % | | 8 | [wp-hackers] Tiny pach for options-misc.php | 10 | 2.92 % | | 9 | [wp-hackers] WordPress tricks | 10 | 2.92 % | | 10 | [wp-hackers] meta_value contains text | 9 | 2.63 % | | 11 | [wp-hackers] Load Balancing | Media Uploads | 8 | 2.34 % | | 12 | [wp-hackers] widget select field problems? | 8 | 2.34 % | | 13 | [wp-hackers] Use WP User Validation for Non- | 8 | 2.34 % | | 14 | [wp-hackers] Somehow critical wp.org/extend/ | 8 | 2.34 % | | 15 | [wp-hackers] Custom Taxonomies for Pages | 8 | 2.34 % | | 16 | [wp-hackers] Reason for Replacement in the_c | 7 | 2.05 % | | 17 | [wp-hackers] How to set up crons in WP? | 7 | 2.05 % | | 18 | [wp-hackers] Activation hook exist for theme | 7 | 2.05 % | | 19 | [wp-hackers] Multi-level page nav | 6 | 1.75 % | | 20 | [wp-hackers] WP_Query and multiple pages | 6 | 1.75 % | | 21 | [wp-hackers] Request for new mailing list wp | 6 | 1.75 % | | 22 | [wp-hackers] Plugins Receiving Emails | 6 | 1.75 % | | 23 | [wp-hackers] WP Universal Login | 6 | 1.75 % | | 24 | [wp-hackers] JavaScript,wp_enqueue_script an | 6 | 1.75 % | | 25 | [wp-hackers] Ability to compare arrays in ch | 5 | 1.46 % | +----+----------------------------------------------+------+---------+ | | other | 113 | 33.04 % | +----+----------------------------------------------+------+---------+ ***** Most used email clients: +----+----Mailer------------------------------------+--Msg-+-Percent-+ | 1 | Google Mail/Other | 200 | 58.48 % | | 2 | Apple Mail (2.935.3) | 30 | 8.77 % | | 3 | Apple Mail (2.936) | 28 | 8.19 % | | 4 | Thunderbird 2.0.0.22 (Windows/20090605) | 16 | 4.68 % | | 5 | Opera Mail/10.10 (Win32) | 11 | 3.22 % | | 6 | Thunderbird 2.0.0.22 (X11/20090608) | 8 | 2.34 % | | 7 | iPhone Mail (7A400) | 6 | 1.75 % | | 8 | Postbox 1.0b15 (Windows/2009081716) | 6 | 1.75 % | | 9 | Opera Mail/10.00 (Win32) | 4 | 1.17 % | | 10 | Industrious bit-pushing elves | 4 | 1.17 % | | 11 | Evolution 2.26.1 | 3 | 0.88 % | | 12 | Thunderbird 2.0.0.12 (Windows/20080213) | 3 | 0.88 % | | 13 | Microsoft-Entourage/12.20.0.090605 | 3 | 0.88 % | | 14 | Microsoft Office Outlook 12.0 | 3 | 0.88 % | | 15 | Thunderbird 2.0.0.21 (Windows/20090302) | 2 | 0.58 % | | 16 | Sylpheed 2.6.0 (GTK+ 2.10.14; i686-pc-mingw3 | 2 | 0.58 % | | 17 | Thunderbird 2.0.0.22 (Macintosh/20090605) | 2 | 0.58 % | | 18 | Mozilla/5.x | 2 | 0.58 % | | 19 | RoundCube Webmail/0.2.1 | 1 | 0.29 % | | 20 | Postbox 1.0b14 (Windows/2009072715) | 1 | 0.29 % | | 21 | Opera Mail/9.64 (Win32) | 1 | 0.29 % | | 22 | G2/1.0 | 1 | 0.29 % | | 23 | YahooMailClassic/6.1.2 YahooMailWebService/0 | 1 | 0.29 % | | 24 | Apple Mail (2.753.1) | 1 | 0.29 % | | 25 | SquirrelMail/1.4.15 | 1 | 0.29 % | +----+----------------------------------------------+------+---------+ | | other | 2 | 0.58 % | +----+----------------------------------------------+------+---------+ ***** Table of maximal quoting: +----+-----Author------------------------------------------+-Percent-+ | 1 | shacat_2 hotmail.com | 97.62 % | | 2 | wordpress tekartist.org | 88.83 % | | 3 | handy.solo gmail.com | 86.23 % | | 4 | niladam gmail.com | 84.81 % | | 5 | night815 gmail.com | 84.06 % | | 6 | alan verselogic.net | 83.24 % | | 7 | emartin24 gmail.com | 81.34 % | | 8 | aruniihtmeerut gmail.com | 79.94 % | | 9 | admin simply-basic.com | 76.16 % | | 10 | somani.mayur gmail.com | 75.76 % | | 11 | chris clwill.com | 73.33 % | | 12 | david davidsaccess.com | 72.60 % | | 13 | paul codehooligans.com | 70.08 % | | 14 | mpwalsh8 gmail.com | 67.08 % | | 15 | frank bueltge.de | 66.43 % | | 16 | simon sweetinteraction.com | 65.23 % | | 17 | cjscott69 gmail.com | 65.05 % | | 18 | kontakt joernroeder.de | 64.72 % | | 19 | otto ottodestruct.com | 64.54 % | | 20 | jason findingsimple.com | 64.14 % | | 21 | navjotjsingh gmail.com | 62.03 % | | 22 | scompt scompt.com | 61.06 % | | 23 | list johnkolbert.com | 60.21 % | | 24 | pauamma gundo.com | 56.00 % | | 25 | matt sivel.net | 54.91 % | +----+-----------------------------------------------------+---------+ | | average | 48.08 % | +----+-----------------------------------------------------+---------+ ***** Graph showing number of messages written during hours of day: 100% ---------------------------------#--------------- - 27 90% ---------------------------#---#-#--------------- msgs 80% ---------------------------#-#-#-#---#-------#--- 70% -----------------------#-#-#-#-#-#---#-------#--- 60% -----------------------#-#-#-#-#-#---#---#---#--- 50% -----------------#-#-#-#-#-#-#-#-#-#-#-#-#-#-#--- 40% -----------------#-#-#-#-#-#-#-#-#-#-#-#-#-#-#--- 30% -----------------#-#-#-#-#-#-#-#-#-#-#-#-#-#-#--- 20% -#-#-#---------#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- 10% -#-#-#-#-#-----#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- * * * * * * * * * * * * * * * * * * * * * * * * hour 0 5 11 17 23 ***** Graph showing number of messages written during days of month: 100% ---------#----------------------------------------------------- - 33 90% ---------#----------------------------------------------------- msgs 80% ---------#-#--------------------------------------------------- 70% ---------#-#--------------------------------------------------- 60% ---------#-#-#-----------------------------------------#------- 50% -----#---#-#-#-------#---------------------------------#-----#- 40% -----#---#-#-#-------#-----#-----------#---#-----------#-----#- 30% -----#-#-#-#-#-------#-----#---#-#-----#-#-#-----------#-#-#-#- 20% -#---#-#-#-#-#-#---#-#---#-#---#-#-----#-#-#---#-------#-#-#-#- 10% -#-#-#-#-#-#-#-#---#-#---#-#-#-#-#-#---#-#-#-#-#-----#-#-#-#-#- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * day 1 6 12 18 24 31 ***** Graph showing number of messages written during days of week: 100% -----------------#----------- - 73 90% -----------------#----------- msgs 80% -#---------------#----------- 70% -#-----------#---#----------- 60% -#-----------#---#---#------- 50% -#-----------#---#---#------- 40% -#---#---#---#---#---#---#--- 30% -#---#---#---#---#---#---#--- 20% -#---#---#---#---#---#---#--- 10% -#---#---#---#---#---#---#--- * * * * * * * Mon Tue Wed Thu Fri Sat Sun ***** Maximal quoting: Author : shacat_2 hotmail.com Subject : [wp-hackers] wp-hackers Digest, Vol 53, Issue 48 Date : Fri, 7 Aug 2009 14:35:21 +0200 Quote ratio: 97.63% / 16940 bytes ***** Longest message: Author : shacat_2 hotmail.com Subject : [wp-hackers] wp-hackers Digest, Vol 53, Issue 48 Date : Fri, 7 Aug 2009 14:35:21 +0200 Size : 16940 bytes ***** Most successful subject: Subject : [wp-hackers] Meta tables: Take 5 No. of msgs: 22 Total size : 38711 bytes ***** Final summary: Total number of messages: 342 Total number of different authors: 99 Total number of different subjects: 66 Total size of messages (w/o headers): 502896 bytes Average size of a message: 1470 bytes ***** Generated by MailListStat v1.3, (C) 2001-2003 ***** See http://freshmeat.net/projects/mls for details... DISCLAIMER: Stats automatically produced. Remember that stats are often meaningless and deceiving. From if.website at gmail.com Tue Sep 1 01:59:52 2009 From: if.website at gmail.com (Austin Matzko) Date: Mon, 31 Aug 2009 20:59:52 -0500 Subject: [wp-hackers] Rewrite endpoints In-Reply-To: <349fe48b0908311803yc94e973v987710c9cf155506@mail.gmail.com> References: <349fe48b0908311633q319633f7tf902702f08590a79@mail.gmail.com> <349fe48b0908311647s2848695dy1d3921371cc5425a@mail.gmail.com> <674b4a3b0908311655t5532ef16t1f6292898a16bd1f@mail.gmail.com> <349fe48b0908311803yc94e973v987710c9cf155506@mail.gmail.com> Message-ID: <674b4a3b0908311859t70f0fa15uc2ad379cdf8def5b@mail.gmail.com> On Mon, Aug 31, 2009 at 8:03 PM, scribu wrote: > On Tue, Sep 1, 2009 at 2:55 AM, Austin Matzko wrote: > >> Perhaps, but the way it works currently is that you have to explicitly >> declare it as a query variable, by calling >> $wp->add_query_var('foobar'). >> > > That line is already included in $wp_rewrite->add_endpoint(). You're right. My mistake. > And foobar shows up in [query_vars] when it's not empty. The problem lies in the $wp->parse_request() method, which sets permalink query variables only if they're not empty, instead of checking whether they're set. From bernard at vanhpc.org Tue Sep 1 04:19:53 2009 From: bernard at vanhpc.org (Bernard Li) Date: Mon, 31 Aug 2009 21:19:53 -0700 Subject: [wp-hackers] WordPress Plugins Directory code Message-ID: Hello all: I was wondering if the WordPress Plugins Directory's source code is available as a "plugin" for WordPress. I am interested in hosting my own plugins repository with our WordPress installation and was wondering if the code is readily available. Thanks in advance for your help. Cheers, Bernard From ozh at planetozh.com Tue Sep 1 07:38:30 2009 From: ozh at planetozh.com (Olivier-Bernard RICHARD) Date: Tue, 1 Sep 2009 09:38:30 +0200 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: Message-ID: > I was wondering if the WordPress Plugins Directory's source code is > available as a "plugin" for WordPress. I am interested in hosting my > own plugins repository with our WordPress installation and was > wondering if the code is readily available. I have no authority on this subject but I think the short answer is "No" Ozh From nb at nikolay.bg Tue Sep 1 07:47:06 2009 From: nb at nikolay.bg (Nikolay Bachiyski) Date: Tue, 1 Sep 2009 10:47:06 +0300 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: References: Message-ID: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> On Tue, Sep 1, 2009 at 07:19, Bernard Li wrote: > Hello all: > > I was wondering if the WordPress Plugins Directory's source code is > available as a "plugin" for WordPress. ?I am interested in hosting my > own plugins repository with our WordPress installation and was > wondering if the code is readily available. > The code is available. The system is not very easy to set up, though: http://bbpress.org/plugins/topic/svn-browser/ Happy hacking, Nikolay. From ozh at planetozh.com Tue Sep 1 08:39:53 2009 From: ozh at planetozh.com (Olivier-Bernard RICHARD) Date: Tue, 1 Sep 2009 10:39:53 +0200 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> Message-ID: > The code is available. The system is not very easy to set up, though: > > http://bbpress.org/plugins/topic/svn-browser/ > > Happy hacking, > Nikolay. (ah, I said I had no authority:) From otto at ottodestruct.com Tue Sep 1 15:27:51 2009 From: otto at ottodestruct.com (Otto) Date: Tue, 1 Sep 2009 10:27:51 -0500 Subject: [wp-hackers] Quest for Self Pingbacks In-Reply-To: <2b0d85240908311414r2a5d23d7id1ca9d2548e1c134@mail.gmail.com> References: <2b0d85240908290704t7180fceepa0a90fa7c7f7ba70@mail.gmail.com> <2b0d85240908291441y440e20d6kb968dbe672c1ad1@mail.gmail.com> <2b0d85240908291911q1026dc6fi7c759f3e764e983f@mail.gmail.com> <2b0d85240908291917j36feadafgda0be9555aa6eb66@mail.gmail.com> <5812287B-C104-453E-A7AB-954C0F1FD776@ftwr.co.uk> <2b0d85240908300631u19b37b46hf49d2a6174fb69a0@mail.gmail.com> <2b0d85240908300713g6f8d6100n3c0b13d8e212d35c@mail.gmail.com> <161617690908311344t56bd44e8s2ac32001e2be1480@mail.gmail.com> <2b0d85240908311414r2a5d23d7id1ca9d2548e1c134@mail.gmail.com> Message-ID: <161617690909010827o1551556dg85d3f518d9734e4e@mail.gmail.com> No, the to_ping column only holds manual trackback values you inserted on a post. You should look for a meta_key on the post named "_pingme". That gets set for new posts, and the do_all_pings function processes those posts for links and then does the pingbacks for them. pinged + to_ping = trackbacks. _pingme = pingbacks. -Otto On Mon, Aug 31, 2009 at 4:14 PM, Chris Kasten wrote: > My theme has that which then shows up like this in a "view source": > /> > > But... wouldn't you think the DB entries should be there FIRST? > > I hate to keep kicking this same dead & tired horse, but since I never get > values in "pinged" / "to_ping" columns in the Posts table it ain't ever > going to try to ping, right? > > What would stop the self-pingbacks from getting added to those columns in > the DB? Seems like maybe that's my root cause. > > > > Chris Kasten > Solo Technology > > > On Mon, Aug 31, 2009 at 2:44 PM, Otto wrote: > >> In your theme, is this line in the header? >> >> >> >> Pingbacks need that to work. >> >> -Otto >> >> >> >> On Sun, Aug 30, 2009 at 9:13 AM, Chris Kasten wrote: >> > The patch made no changes in my lack of ability to self-ping. >> > >> > On Sun, Aug 30, 2009 at 7:31 AM, Chris Kasten >> wrote: >> > >> >> I'll give it a shot and report back. >> >> Meanwhile... It alarms me that my self links never get collected and >> added >> >> to the to_ping / pinged columns in the Posts table. Or are they briefly >> >> there and removed when the pingback fails? >> >> >> >> >> >> On Sun, Aug 30, 2009 at 12:05 AM, Peter Westwood < >> >> peter.westwood at ftwr.co.uk> wrote: >> >> >> >>> Could you try on your test blog with the patch on this ticket applied. >> >>> >> >>> http://core.trac.wordpress.org/ticket/10588 >> >>> >> >>> This switches the IXR class over to use the WordPress HTTP api instead >> of >> >>> fsockopen for connections it should be more reliable. >> >>> >> >>> Please leave feedback on your sucess/lack there of on the ticket. >> >>> >> >>> -- >> >>> Peter Westwood >> >>> http://peter.westwood.name >> >>> >> >>> On 30 Aug 2009, at 03:17, Chris Kasten wrote: >> >>> >> >>> ?Future posts do indeed work (mentioned a couple stanzas below your >> reply >> >>>> ;-) >> >>>> ) >> >>>> >> >>>> >> >>>> >> >>>> On Sat, Aug 29, 2009 at 8:13 PM, Dion Hulse (dd32) < >> wordpress at dd32.id.au >> >>>> >wrote: >> >>>> >> >>>> ?Is the cron system working? >> >>>>> >> >>>>> Try a future-publish post, See if that gets published (Thats based on >> >>>>> the >> >>>>> Cron system). >> >>>>> >> >>>>> >> >>>>> On Sun, 30 Aug 2009 12:11:44 +1000, Chris Kasten < >> handy.solo at gmail.com> >> >>>>> wrote: >> >>>>> >> >>>>> On a fresh locally install blog self pingbacks work just fine. I >> guess >> >>>>> >> >>>>>> this >> >>>>>> may be a Dreamhost related issue?What a bummer. >> >>>>>> >> >>>>>> I poked around through the access and error logs but didn't see any >> >>>>>> obvious >> >>>>>> errors. >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> On Sat, Aug 29, 2009 at 3:41 PM, Chris Kasten > > >> >>>>>> wrote: >> >>>>>> >> >>>>>> I'm hosted on Dreamhost. As mentioned earlier, self pings were good >> >>>>>> until >> >>>>>> >> >>>>>>> the beginning of this year (which may coincide with a WP release? I >> >>>>>>> can't >> >>>>>>> recall now). >> >>>>>>> I also tried a pingback from one of my blogs to the other (but both >> on >> >>>>>>> Dreamhost and both in same domain). Same deal, no pingback and >> nothing >> >>>>>>> in >> >>>>>>> the ping fields in the Posts table. >> >>>>>>> >> >>>>>>> I just tested a future post and it worked. What else would you like >> me >> >>>>>>> to >> >>>>>>> try? I get the same results with my blog as I do with a test blog >> (no >> >>>>>>> plugins / default theme). >> >>>>>>> >> >>>>>>> I guess one next step would be to get one going locally (as in not >> on >> >>>>>>> Dreamhost) and see how self pings go there. Anything else I should >> >>>>>>> look >> >>>>>>> at? >> >>>>>>> >> >>>>>>> >> >>>>>>> From your note, it sounds like I can assume that self pings >> _should_ >> >>>>>>> still >> >>>>>>> work? >> >>>>>>> >> >>>>>>> >> >>>>>>> On Sat, Aug 29, 2009 at 2:54 PM, Peter Westwood < >> >>>>>>> peter.westwood at ftwr.co.uk >> >>>>>>> >> >>>>>>>> wrote: >> >>>>>>>> >> >>>>>>> >> >>>>>>> It sounds like you are suffering from oases which prevent the self >> >>>>>>> pings >> >>>>>>> >> >>>>>>>> from working. >> >>>>>>>> >> >>>>>>>> This is normally due to hosting confug in relation to connections >> >>>>>>>> back >> >>>>>>>> to >> >>>>>>>> your server from your server. >> >>>>>>>> >> >>>>>>>> Does the built in cron system work for you? For example does >> future >> >>>>>>>> publishing posts work? >> >>>>>>>> >> >>>>>>>> -- >> >>>>>>>> Peter Westwood >> >>>>>>>> http://peter.westwood.name >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> On 29 Aug 2009, at 18:47, Chris Kasten >> wrote: >> >>>>>>>> >> >>>>>>>> Yes thanks. I realize a lot of people don't like them. ?That's why >> >>>>>>>> that >> >>>>>>>> >> >>>>>>>> ?No >> >>>>>>>>> Pings plugin was invented! But I do like 'em and WP used to >> generate >> >>>>>>>>> them. >> >>>>>>>>> Like or dislike, I just wish to confirm that they (self pings) >> are >> >>>>>>>>> indeed >> >>>>>>>>> dropped by WP now. If so, A nudge on how to re-enable them with a >> >>>>>>>>> plugin >> >>>>>>>>> would be really groovy. >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> Chris Kasten >> >>>>>>>>> Solo Technology >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> On Sat, Aug 29, 2009 at 11:19 AM, Rics >> >>>>>>>>> wrote: >> >>>>>>>>> >> >>>>>>>>> Personally, I don't like self trackbacks... it's anoying. >> >>>>>>>>> >> >>>>>>>>> ?I prefer to have related posts and use trackback only from other >> >>>>>>>>>> websites. >> >>>>>>>>>> --- >> >>>>>>>>>> Rics >> >>>>>>>>>> http://www.pensarics.com >> >>>>>>>>>> http://www.meadiciona.com/rics >> >>>>>>>>>> Maring?, PR - Brasil >> >>>>>>>>>> >> >>>>>>>>>> >> >>>>>>>>>> 2009/8/29 scribu >> >>>>>>>>>> >> >>>>>>>>>> That's ironic, since there's a plugin that does the opposite. >> It's >> >>>>>>>>>> >> >>>>>>>>>> ?called >> >>>>>>>>>>> No >> >>>>>>>>>>> Self Pings. >> >>>>>>>>>>> >> >>>>>>>>>>> -- >> >>>>>>>>>>> http://scribu.net >> >>>>>>>>>>> _______________________________________________ >> >>>>>>>>>>> wp-hackers mailing list >> >>>>>>>>>>> wp-hackers at lists.automattic.com >> >>>>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>>>>>>>>>> >> >>>>>>>>>>> _______________________________________________ >> >>>>>>>>>>> >> >>>>>>>>>>> ?wp-hackers mailing list >> >>>>>>>>>> wp-hackers at lists.automattic.com >> >>>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>>>>>>>>> >> >>>>>>>>>> _______________________________________________ >> >>>>>>>>>> >> >>>>>>>>>> ?wp-hackers mailing list >> >>>>>>>>> wp-hackers at lists.automattic.com >> >>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>>>>>>>> >> >>>>>>>>> _______________________________________________ >> >>>>>>>>> >> >>>>>>>> wp-hackers mailing list >> >>>>>>>> wp-hackers at lists.automattic.com >> >>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> >> >>>>>>> _______________________________________________ >> >>>>>>> >> >>>>>> wp-hackers mailing list >> >>>>>> wp-hackers at lists.automattic.com >> >>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>> -- >> >>>>> -- >> >>>>> Dion Hulse >> >>>>> e: contact at dd32.id.au >> >>>>> w: http://dd32.id.au/ >> >>>>> m: 04 6621 9112 (+614 6621 9112) >> >>>>> WordPressQI: http://wordpressqi.com/ >> >>>>> >> >>>>> _______________________________________________ >> >>>>> wp-hackers mailing list >> >>>>> wp-hackers at lists.automattic.com >> >>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>>>> >> >>>>> ?_______________________________________________ >> >>>> wp-hackers mailing list >> >>>> wp-hackers at lists.automattic.com >> >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>>> >> >>> _______________________________________________ >> >>> wp-hackers mailing list >> >>> wp-hackers at lists.automattic.com >> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>> >> >> >> >> >> > _______________________________________________ >> > wp-hackers mailing list >> > wp-hackers at lists.automattic.com >> > http://lists.automattic.com/mailman/listinfo/wp-hackers >> > >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From harish.mlists at gmail.com Tue Sep 1 15:36:58 2009 From: harish.mlists at gmail.com (Harish Narayanan) Date: Tue, 01 Sep 2009 17:36:58 +0200 Subject: [wp-hackers] WXR format documentation Message-ID: <4A9D3F9A.5080006@gmail.com> I have an old photo blog running a really old version of WordPress (some Frankensteinian hybrid of b2 and 1.0, I think). I would like to export its content to my current journal performing some useful transformations (like moving old categories to corresponding tags, working around some hacks that I did to store just an image URL and its title as my post content etc.). I was wondering if someone could point me to the canonical documentation on the WordPress WXR file format so I could construct it and suitably import it into my journal. (I thought about upgrading 1.0 -> 1.2 -> 1.5 ... until I reach a WordPress version that can export itself as an XML file, but I must transform the file heavily anyway afterwards. It seems easier to construct an appropriate XML export directly from the database.) Thanks, Harish From bernard at vanhpc.org Tue Sep 1 17:31:43 2009 From: bernard at vanhpc.org (Bernard Li) Date: Tue, 1 Sep 2009 10:31:43 -0700 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: References: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> Message-ID: Hi Nikolay, Olivier-Bernard: On Tue, Sep 1, 2009 at 1:39 AM, Olivier-Bernard RICHARD wrote: >> The code is available. The system is not very easy to set up, though: >> >> http://bbpress.org/plugins/topic/svn-browser/ >> >> Happy hacking, >> Nikolay. > > (ah, I said I had no authority:) Thanks for the link. I noticed that the plugin is for bbPress -- are plugins from bbPress interchangeable with WordPress? Also, are there any plans to further extend this code to make it more setup friendly? Assuming we are going to go ahead and use this to power our plugins repository, we may be able to contribute something back. Cheers, Bernard From otto at ottodestruct.com Tue Sep 1 17:52:07 2009 From: otto at ottodestruct.com (Otto) Date: Tue, 1 Sep 2009 12:52:07 -0500 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: References: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> Message-ID: <161617690909011052q17a2c20flcb1764634d7f01fc@mail.gmail.com> On Tue, Sep 1, 2009 at 12:31 PM, Bernard Li wrote: > I noticed that the plugin is for bbPress -- are plugins from bbPress > interchangeable with WordPress? No, but wordpress.org has large sections of it run by bbPress. The forums, for example. -Otto From bernard at vanhpc.org Tue Sep 1 17:58:27 2009 From: bernard at vanhpc.org (Bernard Li) Date: Tue, 1 Sep 2009 10:58:27 -0700 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: <161617690909011052q17a2c20flcb1764634d7f01fc@mail.gmail.com> References: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> <161617690909011052q17a2c20flcb1764634d7f01fc@mail.gmail.com> Message-ID: Hi Otto: On Tue, Sep 1, 2009 at 10:52 AM, Otto wrote: > No, but wordpress.org has large sections of it run by bbPress. The > forums, for example. I see -- so it sounds like in order for me to setup the Plugins Directory for our WordPress installation, we'll need to setup bbPress alongside WordPress, have it talk to WordPress and then install the plugin -- is this correct? Thanks, Bernard From scribu at gmail.com Tue Sep 1 18:27:36 2009 From: scribu at gmail.com (scribu) Date: Tue, 1 Sep 2009 21:27:36 +0300 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: References: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> <161617690909011052q17a2c20flcb1764634d7f01fc@mail.gmail.com> Message-ID: <349fe48b0909011127h28f92a44m7f8a7c043f66c117@mail.gmail.com> On Tue, Sep 1, 2009 at 8:58 PM, Bernard Li wrote: > Hi Otto: > > On Tue, Sep 1, 2009 at 10:52 AM, Otto wrote: > > > No, but wordpress.org has large sections of it run by bbPress. The > > forums, for example. > > I see -- so it sounds like in order for me to setup the Plugins > Directory for our WordPress installation, we'll need to setup bbPress > alongside WordPress, have it talk to WordPress and then install the > plugin -- is this correct? > I don't think the repository plugin for bbPress needs to be connected to a WordPress install. But you'll probably want some integration, since I presume your site is powered by WP. -- http://scribu.net From nb at nikolay.bg Tue Sep 1 19:31:33 2009 From: nb at nikolay.bg (Nikolay Bachiyski) Date: Tue, 1 Sep 2009 22:31:33 +0300 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: References: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> <161617690909011052q17a2c20flcb1764634d7f01fc@mail.gmail.com> Message-ID: <87e663fa0909011231s12f8147bw5a2addee5cc21c2a@mail.gmail.com> On Tue, Sep 1, 2009 at 20:58, Bernard Li wrote: > I see -- so it sounds like in order for me to setup the Plugins > Directory for our WordPress installation, we'll need to setup bbPress > alongside WordPress, have it talk to WordPress and then install the > plugin -- is this correct? > Exactly. The plugin repository runs on bbPress. Happy hacking, Nikolay. From bernard at vanhpc.org Tue Sep 1 21:30:54 2009 From: bernard at vanhpc.org (Bernard Li) Date: Tue, 1 Sep 2009 14:30:54 -0700 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: <349fe48b0909011127h28f92a44m7f8a7c043f66c117@mail.gmail.com> References: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> <161617690909011052q17a2c20flcb1764634d7f01fc@mail.gmail.com> <349fe48b0909011127h28f92a44m7f8a7c043f66c117@mail.gmail.com> Message-ID: On Tue, Sep 1, 2009 at 11:27 AM, scribu wrote: > I ?don't think the repository plugin for bbPress needs to be connected to a > WordPress install. > But you'll probably want some integration, since I presume your site is > powered by WP. Yeah I think we'll look into setting up the integration. If we were to run into issues setting this up, is this a good place for questions or should I ask them some place else? Thanks, Bernard From scribu at gmail.com Tue Sep 1 21:57:26 2009 From: scribu at gmail.com (scribu) Date: Wed, 2 Sep 2009 00:57:26 +0300 Subject: [wp-hackers] WordPress Plugins Directory code In-Reply-To: References: <87e663fa0909010047u24078220q151b7262946a6297@mail.gmail.com> <161617690909011052q17a2c20flcb1764634d7f01fc@mail.gmail.com> <349fe48b0909011127h28f92a44m7f8a7c043f66c117@mail.gmail.com> Message-ID: <349fe48b0909011457n6a9a3c0ua64493675464924c@mail.gmail.com> On Wed, Sep 2, 2009 at 12:30 AM, Bernard Li wrote: > On Tue, Sep 1, 2009 at 11:27 AM, scribu wrote: > > > I don't think the repository plugin for bbPress needs to be connected to > a > > WordPress install. > > But you'll probably want some integration, since I presume your site is > > powered by WP. > > Yeah I think we'll look into setting up the integration. > > If we were to run into issues setting this up, is this a good place > for questions or should I ask them some place else? > For issues with bbPress, you'll want to go to the support forums there: http://bbpress.org/forums/ -- http://scribu.net From handy.solo at gmail.com Tue Sep 1 22:23:07 2009 From: handy.solo at gmail.com (Chris Kasten) Date: Tue, 1 Sep 2009 16:23:07 -0600 Subject: [wp-hackers] Quest for Self Pingbacks In-Reply-To: <161617690909010827o1551556dg85d3f518d9734e4e@mail.gmail.com> References: <2b0d85240908290704t7180fceepa0a90fa7c7f7ba70@mail.gmail.com> <2b0d85240908291911q1026dc6fi7c759f3e764e983f@mail.gmail.com> <2b0d85240908291917j36feadafgda0be9555aa6eb66@mail.gmail.com> <5812287B-C104-453E-A7AB-954C0F1FD776@ftwr.co.uk> <2b0d85240908300631u19b37b46hf49d2a6174fb69a0@mail.gmail.com> <2b0d85240908300713g6f8d6100n3c0b13d8e212d35c@mail.gmail.com> <161617690908311344t56bd44e8s2ac32001e2be1480@mail.gmail.com> <2b0d85240908311414r2a5d23d7id1ca9d2548e1c134@mail.gmail.com> <161617690909010827o1551556dg85d3f518d9734e4e@mail.gmail.com> Message-ID: <2b0d85240909011523m4827a480lbefd1c05733de6a0@mail.gmail.com> After pingbacks the meta key must get cleared then, huh? SELECT * FROM `wp_postmeta` where meta_value like '%ping%' ORDER BY `post_id` DESC Results in 0 rows found Curiouser and curiouser. On Tue, Sep 1, 2009 at 9:27 AM, Otto wrote: > No, the to_ping column only holds manual trackback values you inserted > on a post. > > You should look for a meta_key on the post named "_pingme". That gets > set for new posts, and the do_all_pings function processes those posts > for links and then does the pingbacks for them. > > pinged + to_ping = trackbacks. > _pingme = pingbacks. > > -Otto > > > > On Mon, Aug 31, 2009 at 4:14 PM, Chris Kasten wrote: > > My theme has that which then shows up like this in a "view source": > > > /> > > > > But... wouldn't you think the DB entries should be there FIRST? > > > > I hate to keep kicking this same dead & tired horse, but since I never > get > > values in "pinged" / "to_ping" columns in the Posts table it ain't ever > > going to try to ping, right? > > > > What would stop the self-pingbacks from getting added to those columns in > > the DB? Seems like maybe that's my root cause. > > > > > > > > Chris Kasten > > Solo Technology > > > > > > On Mon, Aug 31, 2009 at 2:44 PM, Otto wrote: > > > >> In your theme, is this line in the header? > >> > >> > >> > >> Pingbacks need that to work. > >> > >> -Otto > >> > >> > >> > >> On Sun, Aug 30, 2009 at 9:13 AM, Chris Kasten > wrote: > >> > The patch made no changes in my lack of ability to self-ping. > >> > > >> > On Sun, Aug 30, 2009 at 7:31 AM, Chris Kasten > >> wrote: > >> > > >> >> I'll give it a shot and report back. > >> >> Meanwhile... It alarms me that my self links never get collected and > >> added > >> >> to the to_ping / pinged columns in the Posts table. Or are they > briefly > >> >> there and removed when the pingback fails? > >> >> > >> >> > >> >> On Sun, Aug 30, 2009 at 12:05 AM, Peter Westwood < > >> >> peter.westwood at ftwr.co.uk> wrote: > >> >> > >> >>> Could you try on your test blog with the patch on this ticket > applied. > >> >>> > >> >>> http://core.trac.wordpress.org/ticket/10588 > >> >>> > >> >>> This switches the IXR class over to use the WordPress HTTP api > instead > >> of > >> >>> fsockopen for connections it should be more reliable. > >> >>> > >> >>> Please leave feedback on your sucess/lack there of on the ticket. > >> >>> > >> >>> -- > >> >>> Peter Westwood > >> >>> http://peter.westwood.name > >> >>> > >> >>> On 30 Aug 2009, at 03:17, Chris Kasten > wrote: > >> >>> > >> >>> Future posts do indeed work (mentioned a couple stanzas below your > >> reply > >> >>>> ;-) > >> >>>> ) > >> >>>> > >> >>>> > >> >>>> > >> >>>> On Sat, Aug 29, 2009 at 8:13 PM, Dion Hulse (dd32) < > >> wordpress at dd32.id.au > >> >>>> >wrote: > >> >>>> > >> >>>> Is the cron system working? > >> >>>>> > >> >>>>> Try a future-publish post, See if that gets published (Thats based > on > >> >>>>> the > >> >>>>> Cron system). > >> >>>>> > >> >>>>> > >> >>>>> On Sun, 30 Aug 2009 12:11:44 +1000, Chris Kasten < > >> handy.solo at gmail.com> > >> >>>>> wrote: > >> >>>>> > >> >>>>> On a fresh locally install blog self pingbacks work just fine. I > >> guess > >> >>>>> > >> >>>>>> this > >> >>>>>> may be a Dreamhost related issue?What a bummer. > >> >>>>>> > >> >>>>>> I poked around through the access and error logs but didn't see > any > >> >>>>>> obvious > >> >>>>>> errors. > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>>> On Sat, Aug 29, 2009 at 3:41 PM, Chris Kasten < > handy.solo at gmail.com > >> > > >> >>>>>> wrote: > >> >>>>>> > >> >>>>>> I'm hosted on Dreamhost. As mentioned earlier, self pings were > good > >> >>>>>> until > >> >>>>>> > >> >>>>>>> the beginning of this year (which may coincide with a WP > release? I > >> >>>>>>> can't > >> >>>>>>> recall now). > >> >>>>>>> I also tried a pingback from one of my blogs to the other (but > both > >> on > >> >>>>>>> Dreamhost and both in same domain). Same deal, no pingback and > >> nothing > >> >>>>>>> in > >> >>>>>>> the ping fields in the Posts table. > >> >>>>>>> > >> >>>>>>> I just tested a future post and it worked. What else would you > like > >> me > >> >>>>>>> to > >> >>>>>>> try? I get the same results with my blog as I do with a test > blog > >> (no > >> >>>>>>> plugins / default theme). > >> >>>>>>> > >> >>>>>>> I guess one next step would be to get one going locally (as in > not > >> on > >> >>>>>>> Dreamhost) and see how self pings go there. Anything else I > should > >> >>>>>>> look > >> >>>>>>> at? > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> From your note, it sounds like I can assume that self pings > >> _should_ > >> >>>>>>> still > >> >>>>>>> work? > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> On Sat, Aug 29, 2009 at 2:54 PM, Peter Westwood < > >> >>>>>>> peter.westwood at ftwr.co.uk > >> >>>>>>> > >> >>>>>>>> wrote: > >> >>>>>>>> > >> >>>>>>> > >> >>>>>>> It sounds like you are suffering from oases which prevent the > self > >> >>>>>>> pings > >> >>>>>>> > >> >>>>>>>> from working. > >> >>>>>>>> > >> >>>>>>>> This is normally due to hosting confug in relation to > connections > >> >>>>>>>> back > >> >>>>>>>> to > >> >>>>>>>> your server from your server. > >> >>>>>>>> > >> >>>>>>>> Does the built in cron system work for you? For example does > >> future > >> >>>>>>>> publishing posts work? > >> >>>>>>>> > >> >>>>>>>> -- > >> >>>>>>>> Peter Westwood > >> >>>>>>>> http://peter.westwood.name > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>> On 29 Aug 2009, at 18:47, Chris Kasten > >> wrote: > >> >>>>>>>> > >> >>>>>>>> Yes thanks. I realize a lot of people don't like them. That's > why > >> >>>>>>>> that > >> >>>>>>>> > >> >>>>>>>> No > >> >>>>>>>>> Pings plugin was invented! But I do like 'em and WP used to > >> generate > >> >>>>>>>>> them. > >> >>>>>>>>> Like or dislike, I just wish to confirm that they (self pings) > >> are > >> >>>>>>>>> indeed > >> >>>>>>>>> dropped by WP now. If so, A nudge on how to re-enable them > with a > >> >>>>>>>>> plugin > >> >>>>>>>>> would be really groovy. > >> >>>>>>>>> > >> >>>>>>>>> > >> >>>>>>>>> Chris Kasten > >> >>>>>>>>> Solo Technology > >> >>>>>>>>> > >> >>>>>>>>> > >> >>>>>>>>> On Sat, Aug 29, 2009 at 11:19 AM, Rics < > ricardo.cezar at gmail.com> > >> >>>>>>>>> wrote: > >> >>>>>>>>> > >> >>>>>>>>> Personally, I don't like self trackbacks... it's anoying. > >> >>>>>>>>> > >> >>>>>>>>> I prefer to have related posts and use trackback only from > other > >> >>>>>>>>>> websites. > >> >>>>>>>>>> --- > >> >>>>>>>>>> Rics > >> >>>>>>>>>> http://www.pensarics.com > >> >>>>>>>>>> http://www.meadiciona.com/rics > >> >>>>>>>>>> Maring?, PR - Brasil > >> >>>>>>>>>> > >> >>>>>>>>>> > >> >>>>>>>>>> 2009/8/29 scribu > >> >>>>>>>>>> > >> >>>>>>>>>> That's ironic, since there's a plugin that does the opposite. > >> It's > >> >>>>>>>>>> > >> >>>>>>>>>> called > >> >>>>>>>>>>> No > >> >>>>>>>>>>> Self Pings. > >> >>>>>>>>>>> > >> >>>>>>>>>>> -- > >> >>>>>>>>>>> http://scribu.net > >> >>>>>>>>>>> _______________________________________________ > >> >>>>>>>>>>> wp-hackers mailing list > >> >>>>>>>>>>> wp-hackers at lists.automattic.com > >> >>>>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >>>>>>>>>>> > >> >>>>>>>>>>> _______________________________________________ > >> >>>>>>>>>>> > >> >>>>>>>>>>> wp-hackers mailing list > >> >>>>>>>>>> wp-hackers at lists.automattic.com > >> >>>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >>>>>>>>>> > >> >>>>>>>>>> _______________________________________________ > >> >>>>>>>>>> > >> >>>>>>>>>> wp-hackers mailing list > >> >>>>>>>>> wp-hackers at lists.automattic.com > >> >>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >>>>>>>>> > >> >>>>>>>>> _______________________________________________ > >> >>>>>>>>> > >> >>>>>>>> wp-hackers mailing list > >> >>>>>>>> wp-hackers at lists.automattic.com > >> >>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>> _______________________________________________ > >> >>>>>>> > >> >>>>>> wp-hackers mailing list > >> >>>>>> wp-hackers at lists.automattic.com > >> >>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>> -- > >> >>>>> -- > >> >>>>> Dion Hulse > >> >>>>> e: contact at dd32.id.au > >> >>>>> w: http://dd32.id.au/ > >> >>>>> m: 04 6621 9112 (+614 6621 9112) > >> >>>>> WordPressQI: http://wordpressqi.com/ > >> >>>>> > >> >>>>> _______________________________________________ > >> >>>>> wp-hackers mailing list > >> >>>>> wp-hackers at lists.automattic.com > >> >>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >>>>> > >> >>>>> _______________________________________________ > >> >>>> wp-hackers mailing list > >> >>>> wp-hackers at lists.automattic.com > >> >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >>>> > >> >>> _______________________________________________ > >> >>> wp-hackers mailing list > >> >>> wp-hackers at lists.automattic.com > >> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >>> > >> >> > >> >> > >> > _______________________________________________ > >> > wp-hackers mailing list > >> > wp-hackers at lists.automattic.com > >> > http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > >> _______________________________________________ > >> wp-hackers mailing list > >> wp-hackers at lists.automattic.com > >> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From jeremy at visser.name Wed Sep 2 09:58:40 2009 From: jeremy at visser.name (Jeremy Visser) Date: Wed, 02 Sep 2009 19:58:40 +1000 Subject: [wp-hackers] WXR format documentation In-Reply-To: <4A9D3F9A.5080006@gmail.com> References: <4A9D3F9A.5080006@gmail.com> Message-ID: <1251885520.12909.2.camel@rillian.narnia.sunriseroad.net> On Tue, 2009-09-01 at 17:36 +0200, Harish Narayanan wrote: > (I thought about upgrading 1.0 -> 1.2 -> 1.5 ... until I reach a > WordPress version that can export itself as an XML file, but I must > transform the file heavily anyway afterwards. It seems easier to > construct an appropriate XML export directly from the database.) I'm not sure whether it contains upgrade code for 1.2 or 1.5, but versions of WordPress today contain upgrade code for all previous versions (at least back to 1.5, possibly further). So you can jump from WordPress 1.5 to 2.8, for instance. Might be worth making a copy of your DB into a new database and seeing what happens if you throw it at WordPress 2.8. From harish.mlists at gmail.com Wed Sep 2 11:36:11 2009 From: harish.mlists at gmail.com (Harish Narayanan) Date: Wed, 02 Sep 2009 13:36:11 +0200 Subject: [wp-hackers] WXR format documentation In-Reply-To: <1251885520.12909.2.camel@rillian.narnia.sunriseroad.net> References: <4A9D3F9A.5080006@gmail.com> <1251885520.12909.2.camel@rillian.narnia.sunriseroad.net> Message-ID: <4A9E58AB.8050204@gmail.com> Jeremy Visser wrote: > On Tue, 2009-09-01 at 17:36 +0200, Harish Narayanan wrote: >> (I thought about upgrading 1.0 -> 1.2 -> 1.5 ... until I reach a >> WordPress version that can export itself as an XML file, but I must >> transform the file heavily anyway afterwards. It seems easier to >> construct an appropriate XML export directly from the database.) > > I'm not sure whether it contains upgrade code for 1.2 or 1.5, but > versions of WordPress today contain upgrade code for all previous > versions (at least back to 1.5, possibly further). > > So you can jump from WordPress 1.5 to 2.8, for instance. > > Might be worth making a copy of your DB into a new database and seeing > what happens if you throw it at WordPress 2.8. Hmm. Perhaps I will try this. I have been googling for reference documentation on WXR for a couple of days and I haven't stumbled upon anything. I guess the plan then reads: Make a DB copy -> Try upgrading to 2.8 (either directly or via an intermediate step) -> Extract WXR -> Transform WXR -> Import WXR into another DB. Thanks, Harish From otto at ottodestruct.com Wed Sep 2 12:54:05 2009 From: otto at ottodestruct.com (Otto) Date: Wed, 2 Sep 2009 07:54:05 -0500 Subject: [wp-hackers] Quest for Self Pingbacks In-Reply-To: <2b0d85240909011523m4827a480lbefd1c05733de6a0@mail.gmail.com> References: <2b0d85240908290704t7180fceepa0a90fa7c7f7ba70@mail.gmail.com> <2b0d85240908291917j36feadafgda0be9555aa6eb66@mail.gmail.com> <5812287B-C104-453E-A7AB-954C0F1FD776@ftwr.co.uk> <2b0d85240908300631u19b37b46hf49d2a6174fb69a0@mail.gmail.com> <2b0d85240908300713g6f8d6100n3c0b13d8e212d35c@mail.gmail.com> <161617690908311344t56bd44e8s2ac32001e2be1480@mail.gmail.com> <2b0d85240908311414r2a5d23d7id1ca9d2548e1c134@mail.gmail.com> <161617690909010827o1551556dg85d3f518d9734e4e@mail.gmail.com> <2b0d85240909011523m4827a480lbefd1c05733de6a0@mail.gmail.com> Message-ID: <161617690909020554u49ed8dd1q95ad5a0575b9b3cd@mail.gmail.com> No, not meta_value. meta_key = '_pingme' -Otto On Tue, Sep 1, 2009 at 5:23 PM, Chris Kasten wrote: > After pingbacks the meta key must get cleared then, huh? > SELECT * FROM `wp_postmeta` where meta_value like '%ping%' ORDER BY > `post_id` DESC > > Results in 0 rows found > > Curiouser and curiouser. > > > On Tue, Sep 1, 2009 at 9:27 AM, Otto wrote: > >> No, the to_ping column only holds manual trackback values you inserted >> on a post. >> >> You should look for a meta_key on the post named "_pingme". That gets >> set for new posts, and the do_all_pings function processes those posts >> for links and then does the pingbacks for them. >> >> pinged + to_ping = trackbacks. >> _pingme = pingbacks. >> >> -Otto >> >> >> >> On Mon, Aug 31, 2009 at 4:14 PM, Chris Kasten wrote: >> > My theme has that which then shows up like this in a "view source": >> > > > /> >> > >> > But... wouldn't you think the DB entries should be there FIRST? >> > >> > I hate to keep kicking this same dead & tired horse, but since I never >> get >> > values in "pinged" / "to_ping" columns in the Posts table it ain't ever >> > going to try to ping, right? >> > >> > What would stop the self-pingbacks from getting added to those columns in >> > the DB? Seems like maybe that's my root cause. >> > >> > >> > >> > Chris Kasten >> > Solo Technology >> > >> > >> > On Mon, Aug 31, 2009 at 2:44 PM, Otto wrote: >> > >> >> In your theme, is this line in the header? >> >> >> >> >> >> >> >> Pingbacks need that to work. >> >> >> >> -Otto >> >> >> >> >> >> >> >> On Sun, Aug 30, 2009 at 9:13 AM, Chris Kasten >> wrote: >> >> > The patch made no changes in my lack of ability to self-ping. >> >> > >> >> > On Sun, Aug 30, 2009 at 7:31 AM, Chris Kasten >> >> wrote: >> >> > >> >> >> I'll give it a shot and report back. >> >> >> Meanwhile... It alarms me that my self links never get collected and >> >> added >> >> >> to the to_ping / pinged columns in the Posts table. Or are they >> briefly >> >> >> there and removed when the pingback fails? >> >> >> >> >> >> >> >> >> On Sun, Aug 30, 2009 at 12:05 AM, Peter Westwood < >> >> >> peter.westwood at ftwr.co.uk> wrote: >> >> >> >> >> >>> Could you try on your test blog with the patch on this ticket >> applied. >> >> >>> >> >> >>> http://core.trac.wordpress.org/ticket/10588 >> >> >>> >> >> >>> This switches the IXR class over to use the WordPress HTTP api >> instead >> >> of >> >> >>> fsockopen for connections it should be more reliable. >> >> >>> >> >> >>> Please leave feedback on your sucess/lack there of on the ticket. >> >> >>> >> >> >>> -- >> >> >>> Peter Westwood >> >> >>> http://peter.westwood.name >> >> >>> >> >> >>> On 30 Aug 2009, at 03:17, Chris Kasten >> wrote: >> >> >>> >> >> >>> ?Future posts do indeed work (mentioned a couple stanzas below your >> >> reply >> >> >>>> ;-) >> >> >>>> ) >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> On Sat, Aug 29, 2009 at 8:13 PM, Dion Hulse (dd32) < >> >> wordpress at dd32.id.au >> >> >>>> >wrote: >> >> >>>> >> >> >>>> ?Is the cron system working? >> >> >>>>> >> >> >>>>> Try a future-publish post, See if that gets published (Thats based >> on >> >> >>>>> the >> >> >>>>> Cron system). >> >> >>>>> >> >> >>>>> >> >> >>>>> On Sun, 30 Aug 2009 12:11:44 +1000, Chris Kasten < >> >> handy.solo at gmail.com> >> >> >>>>> wrote: >> >> >>>>> >> >> >>>>> On a fresh locally install blog self pingbacks work just fine. I >> >> guess >> >> >>>>> >> >> >>>>>> this >> >> >>>>>> may be a Dreamhost related issue?What a bummer. >> >> >>>>>> >> >> >>>>>> I poked around through the access and error logs but didn't see >> any >> >> >>>>>> obvious >> >> >>>>>> errors. >> >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> >> >>>>>> On Sat, Aug 29, 2009 at 3:41 PM, Chris Kasten < >> handy.solo at gmail.com >> >> > >> >> >>>>>> wrote: >> >> >>>>>> >> >> >>>>>> I'm hosted on Dreamhost. As mentioned earlier, self pings were >> good >> >> >>>>>> until >> >> >>>>>> >> >> >>>>>>> the beginning of this year (which may coincide with a WP >> release? I >> >> >>>>>>> can't >> >> >>>>>>> recall now). >> >> >>>>>>> I also tried a pingback from one of my blogs to the other (but >> both >> >> on >> >> >>>>>>> Dreamhost and both in same domain). Same deal, no pingback and >> >> nothing >> >> >>>>>>> in >> >> >>>>>>> the ping fields in the Posts table. >> >> >>>>>>> >> >> >>>>>>> I just tested a future post and it worked. What else would you >> like >> >> me >> >> >>>>>>> to >> >> >>>>>>> try? I get the same results with my blog as I do with a test >> blog >> >> (no >> >> >>>>>>> plugins / default theme). >> >> >>>>>>> >> >> >>>>>>> I guess one next step would be to get one going locally (as in >> not >> >> on >> >> >>>>>>> Dreamhost) and see how self pings go there. Anything else I >> should >> >> >>>>>>> look >> >> >>>>>>> at? >> >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>> From your note, it sounds like I can assume that self pings >> >> _should_ >> >> >>>>>>> still >> >> >>>>>>> work? >> >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>> On Sat, Aug 29, 2009 at 2:54 PM, Peter Westwood < >> >> >>>>>>> peter.westwood at ftwr.co.uk >> >> >>>>>>> >> >> >>>>>>>> wrote: >> >> >>>>>>>> >> >> >>>>>>> >> >> >>>>>>> It sounds like you are suffering from oases which prevent the >> self >> >> >>>>>>> pings >> >> >>>>>>> >> >> >>>>>>>> from working. >> >> >>>>>>>> >> >> >>>>>>>> This is normally due to hosting confug in relation to >> connections >> >> >>>>>>>> back >> >> >>>>>>>> to >> >> >>>>>>>> your server from your server. >> >> >>>>>>>> >> >> >>>>>>>> Does the built in cron system work for you? For example does >> >> future >> >> >>>>>>>> publishing posts work? >> >> >>>>>>>> >> >> >>>>>>>> -- >> >> >>>>>>>> Peter Westwood >> >> >>>>>>>> http://peter.westwood.name >> >> >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>> On 29 Aug 2009, at 18:47, Chris Kasten >> >> wrote: >> >> >>>>>>>> >> >> >>>>>>>> Yes thanks. I realize a lot of people don't like them. ?That's >> why >> >> >>>>>>>> that >> >> >>>>>>>> >> >> >>>>>>>> ?No >> >> >>>>>>>>> Pings plugin was invented! But I do like 'em and WP used to >> >> generate >> >> >>>>>>>>> them. >> >> >>>>>>>>> Like or dislike, I just wish to confirm that they (self pings) >> >> are >> >> >>>>>>>>> indeed >> >> >>>>>>>>> dropped by WP now. If so, A nudge on how to re-enable them >> with a >> >> >>>>>>>>> plugin >> >> >>>>>>>>> would be really groovy. >> >> >>>>>>>>> >> >> >>>>>>>>> >> >> >>>>>>>>> Chris Kasten >> >> >>>>>>>>> Solo Technology >> >> >>>>>>>>> >> >> >>>>>>>>> >> >> >>>>>>>>> On Sat, Aug 29, 2009 at 11:19 AM, Rics < >> ricardo.cezar at gmail.com> >> >> >>>>>>>>> wrote: >> >> >>>>>>>>> >> >> >>>>>>>>> Personally, I don't like self trackbacks... it's anoying. >> >> >>>>>>>>> >> >> >>>>>>>>> ?I prefer to have related posts and use trackback only from >> other >> >> >>>>>>>>>> websites. >> >> >>>>>>>>>> --- >> >> >>>>>>>>>> Rics >> >> >>>>>>>>>> http://www.pensarics.com >> >> >>>>>>>>>> http://www.meadiciona.com/rics >> >> >>>>>>>>>> Maring?, PR - Brasil >> >> >>>>>>>>>> >> >> >>>>>>>>>> >> >> >>>>>>>>>> 2009/8/29 scribu >> >> >>>>>>>>>> >> >> >>>>>>>>>> That's ironic, since there's a plugin that does the opposite. >> >> It's >> >> >>>>>>>>>> >> >> >>>>>>>>>> ?called >> >> >>>>>>>>>>> No >> >> >>>>>>>>>>> Self Pings. >> >> >>>>>>>>>>> >> >> >>>>>>>>>>> -- >> >> >>>>>>>>>>> http://scribu.net >> >> >>>>>>>>>>> _______________________________________________ >> >> >>>>>>>>>>> wp-hackers mailing list >> >> >>>>>>>>>>> wp-hackers at lists.automattic.com >> >> >>>>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >>>>>>>>>>> >> >> >>>>>>>>>>> _______________________________________________ >> >> >>>>>>>>>>> >> >> >>>>>>>>>>> ?wp-hackers mailing list >> >> >>>>>>>>>> wp-hackers at lists.automattic.com >> >> >>>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >>>>>>>>>> >> >> >>>>>>>>>> _______________________________________________ >> >> >>>>>>>>>> >> >> >>>>>>>>>> ?wp-hackers mailing list >> >> >>>>>>>>> wp-hackers at lists.automattic.com >> >> >>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >>>>>>>>> >> >> >>>>>>>>> _______________________________________________ >> >> >>>>>>>>> >> >> >>>>>>>> wp-hackers mailing list >> >> >>>>>>>> wp-hackers at lists.automattic.com >> >> >>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>> _______________________________________________ >> >> >>>>>>> >> >> >>>>>> wp-hackers mailing list >> >> >>>>>> wp-hackers at lists.automattic.com >> >> >>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> >> >>>>> -- >> >> >>>>> -- >> >> >>>>> Dion Hulse >> >> >>>>> e: contact at dd32.id.au >> >> >>>>> w: http://dd32.id.au/ >> >> >>>>> m: 04 6621 9112 (+614 6621 9112) >> >> >>>>> WordPressQI: http://wordpressqi.com/ >> >> >>>>> >> >> >>>>> _______________________________________________ >> >> >>>>> wp-hackers mailing list >> >> >>>>> wp-hackers at lists.automattic.com >> >> >>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >>>>> >> >> >>>>> ?_______________________________________________ >> >> >>>> wp-hackers mailing list >> >> >>>> wp-hackers at lists.automattic.com >> >> >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >>>> >> >> >>> _______________________________________________ >> >> >>> wp-hackers mailing list >> >> >>> wp-hackers at lists.automattic.com >> >> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >>> >> >> >> >> >> >> >> >> > _______________________________________________ >> >> > wp-hackers mailing list >> >> > wp-hackers at lists.automattic.com >> >> > http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> > >> >> _______________________________________________ >> >> wp-hackers mailing list >> >> wp-hackers at lists.automattic.com >> >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >> > _______________________________________________ >> > wp-hackers mailing list >> > wp-hackers at lists.automattic.com >> > http://lists.automattic.com/mailman/listinfo/wp-hackers >> > >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From pauamma at gundo.com Wed Sep 2 13:04:06 2009 From: pauamma at gundo.com (Pau Amma) Date: Wed, 2 Sep 2009 13:04:06 -0000 (GMT) Subject: [wp-hackers] WP-Hackers Stats for August 2009 In-Reply-To: <4A9C7469.7090505@schestowitz.com> References: <4A9C7469.7090505@schestowitz.com> Message-ID: <26707.129.102.254.253.1251896646.squirrel@www.gundo.net> On Tue, September 1, 2009 1:10 am, Roy Schestowitz wrote: > > [snip] > > ***** Table of maximal quoting: > +----+-----Author------------------------------------------+-Percent-+ > [snip list in descending order of Percent] > | 25 | matt sivel.net | 54.91 % | > +----+-----------------------------------------------------+---------+ > | | average | 48.08 % | > +----+-----------------------------------------------------+---------+ I assume this list is truncated? (Otherwise, I don't see how the average could be smaller than the smallest datapoint.) From handy.solo at gmail.com Wed Sep 2 13:29:31 2009 From: handy.solo at gmail.com (Chris Kasten) Date: Wed, 2 Sep 2009 07:29:31 -0600 Subject: [wp-hackers] Quest for Self Pingbacks In-Reply-To: <161617690909020554u49ed8dd1q95ad5a0575b9b3cd@mail.gmail.com> References: <2b0d85240908290704t7180fceepa0a90fa7c7f7ba70@mail.gmail.com> <2b0d85240908291917j36feadafgda0be9555aa6eb66@mail.gmail.com> <5812287B-C104-453E-A7AB-954C0F1FD776@ftwr.co.uk> <2b0d85240908300631u19b37b46hf49d2a6174fb69a0@mail.gmail.com> <2b0d85240908300713g6f8d6100n3c0b13d8e212d35c@mail.gmail.com> <161617690908311344t56bd44e8s2ac32001e2be1480@mail.gmail.com> <2b0d85240908311414r2a5d23d7id1ca9d2548e1c134@mail.gmail.com> <161617690909010827o1551556dg85d3f518d9734e4e@mail.gmail.com> <2b0d85240909011523m4827a480lbefd1c05733de6a0@mail.gmail.com> <161617690909020554u49ed8dd1q95ad5a0575b9b3cd@mail.gmail.com> Message-ID: <2b0d85240909020629p172cfcefq32f3b58010fa7c3c@mail.gmail.com> Ooops, sorry. Well, I have exactly two records with meta_key = '_pingme' in my postsmeta table. They appear to be referring to posts that don't exist from 3 years ago (based on post_id). On Wed, Sep 2, 2009 at 6:54 AM, Otto wrote: > No, not meta_value. > > meta_key = '_pingme' > > -Otto > > > > On Tue, Sep 1, 2009 at 5:23 PM, Chris Kasten wrote: > > After pingbacks the meta key must get cleared then, huh? > > SELECT * FROM `wp_postmeta` where meta_value like '%ping%' ORDER BY > > `post_id` DESC > > > > Results in 0 rows found > > > > Curiouser and curiouser. > > > > > > On Tue, Sep 1, 2009 at 9:27 AM, Otto wrote: > > > >> No, the to_ping column only holds manual trackback values you inserted > >> on a post. > >> > >> You should look for a meta_key on the post named "_pingme". That gets > >> set for new posts, and the do_all_pings function processes those posts > >> for links and then does the pingbacks for them. > >> > >> pinged + to_ping = trackbacks. > >> _pingme = pingbacks. > >> > >> -Otto > >> > >> > >> > >> On Mon, Aug 31, 2009 at 4:14 PM, Chris Kasten > wrote: > >> > My theme has that which then shows up like this in a "view source": > >> > >> > /> > >> > > >> > But... wouldn't you think the DB entries should be there FIRST? > >> > > >> > I hate to keep kicking this same dead & tired horse, but since I never > >> get > >> > values in "pinged" / "to_ping" columns in the Posts table it ain't > ever > >> > going to try to ping, right? > >> > > >> > What would stop the self-pingbacks from getting added to those columns > in > >> > the DB? Seems like maybe that's my root cause. > >> > > >> > > >> > > >> > Chris Kasten > >> > Solo Technology > >> > > >> > > >> > On Mon, Aug 31, 2009 at 2:44 PM, Otto wrote: > >> > > >> >> In your theme, is this line in the header? > >> >> > >> >> > >> >> > >> >> Pingbacks need that to work. > >> >> > >> >> -Otto > >> >> > >> >> > >> >> > >> >> On Sun, Aug 30, 2009 at 9:13 AM, Chris Kasten > >> wrote: > >> >> > The patch made no changes in my lack of ability to self-ping. > >> >> > > >> >> > On Sun, Aug 30, 2009 at 7:31 AM, Chris Kasten < > handy.solo at gmail.com> > >> >> wrote: > >> >> > > >> >> >> I'll give it a shot and report back. > >> >> >> Meanwhile... It alarms me that my self links never get collected > and > >> >> added > >> >> >> to the to_ping / pinged columns in the Posts table. Or are they > >> briefly > >> >> >> there and removed when the pingback fails? > >> >> >> > >> >> >> > >> >> >> On Sun, Aug 30, 2009 at 12:05 AM, Peter Westwood < > >> >> >> peter.westwood at ftwr.co.uk> wrote: > >> >> >> > >> >> >>> Could you try on your test blog with the patch on this ticket > >> applied. > >> >> >>> > >> >> >>> http://core.trac.wordpress.org/ticket/10588 > >> >> >>> > >> >> >>> This switches the IXR class over to use the WordPress HTTP api > >> instead > >> >> of > >> >> >>> fsockopen for connections it should be more reliable. > >> >> >>> > >> >> >>> Please leave feedback on your sucess/lack there of on the ticket. > >> >> >>> > >> >> >>> -- > >> >> >>> Peter Westwood > >> >> >>> http://peter.westwood.name > >> >> >>> > >> >> >>> On 30 Aug 2009, at 03:17, Chris Kasten > >> wrote: > >> >> >>> > >> >> >>> Future posts do indeed work (mentioned a couple stanzas below > your > >> >> reply > >> >> >>>> ;-) > >> >> >>>> ) > >> >> >>>> > >> >> >>>> > >> >> >>>> > >> >> >>>> On Sat, Aug 29, 2009 at 8:13 PM, Dion Hulse (dd32) < > >> >> wordpress at dd32.id.au > >> >> >>>> >wrote: > >> >> >>>> > >> >> >>>> Is the cron system working? > >> >> >>>>> > >> >> >>>>> Try a future-publish post, See if that gets published (Thats > based > >> on > >> >> >>>>> the > >> >> >>>>> Cron system). > >> >> >>>>> > >> >> >>>>> > >> >> >>>>> On Sun, 30 Aug 2009 12:11:44 +1000, Chris Kasten < > >> >> handy.solo at gmail.com> > >> >> >>>>> wrote: > >> >> >>>>> > >> >> >>>>> On a fresh locally install blog self pingbacks work just fine. > I > >> >> guess > >> >> >>>>> > >> >> >>>>>> this > >> >> >>>>>> may be a Dreamhost related issue?What a bummer. > >> >> >>>>>> > >> >> >>>>>> I poked around through the access and error logs but didn't > see > >> any > >> >> >>>>>> obvious > >> >> >>>>>> errors. > >> >> >>>>>> > >> >> >>>>>> > >> >> >>>>>> > >> >> >>>>>> > >> >> >>>>>> On Sat, Aug 29, 2009 at 3:41 PM, Chris Kasten < > >> handy.solo at gmail.com > >> >> > > >> >> >>>>>> wrote: > >> >> >>>>>> > >> >> >>>>>> I'm hosted on Dreamhost. As mentioned earlier, self pings were > >> good > >> >> >>>>>> until > >> >> >>>>>> > >> >> >>>>>>> the beginning of this year (which may coincide with a WP > >> release? I > >> >> >>>>>>> can't > >> >> >>>>>>> recall now). > >> >> >>>>>>> I also tried a pingback from one of my blogs to the other > (but > >> both > >> >> on > >> >> >>>>>>> Dreamhost and both in same domain). Same deal, no pingback > and > >> >> nothing > >> >> >>>>>>> in > >> >> >>>>>>> the ping fields in the Posts table. > >> >> >>>>>>> > >> >> >>>>>>> I just tested a future post and it worked. What else would > you > >> like > >> >> me > >> >> >>>>>>> to > >> >> >>>>>>> try? I get the same results with my blog as I do with a test > >> blog > >> >> (no > >> >> >>>>>>> plugins / default theme). > >> >> >>>>>>> > >> >> >>>>>>> I guess one next step would be to get one going locally (as > in > >> not > >> >> on > >> >> >>>>>>> Dreamhost) and see how self pings go there. Anything else I > >> should > >> >> >>>>>>> look > >> >> >>>>>>> at? > >> >> >>>>>>> > >> >> >>>>>>> > >> >> >>>>>>> From your note, it sounds like I can assume that self pings > >> >> _should_ > >> >> >>>>>>> still > >> >> >>>>>>> work? > >> >> >>>>>>> > >> >> >>>>>>> > >> >> >>>>>>> On Sat, Aug 29, 2009 at 2:54 PM, Peter Westwood < > >> >> >>>>>>> peter.westwood at ftwr.co.uk > >> >> >>>>>>> > >> >> >>>>>>>> wrote: > >> >> >>>>>>>> > >> >> >>>>>>> > >> >> >>>>>>> It sounds like you are suffering from oases which prevent the > >> self > >> >> >>>>>>> pings > >> >> >>>>>>> > >> >> >>>>>>>> from working. > >> >> >>>>>>>> > >> >> >>>>>>>> This is normally due to hosting confug in relation to > >> connections > >> >> >>>>>>>> back > >> >> >>>>>>>> to > >> >> >>>>>>>> your server from your server. > >> >> >>>>>>>> > >> >> >>>>>>>> Does the built in cron system work for you? For example does > >> >> future > >> >> >>>>>>>> publishing posts work? > >> >> >>>>>>>> > >> >> >>>>>>>> -- > >> >> >>>>>>>> Peter Westwood > >> >> >>>>>>>> http://peter.westwood.name > >> >> >>>>>>>> > >> >> >>>>>>>> > >> >> >>>>>>>> On 29 Aug 2009, at 18:47, Chris Kasten < > handy.solo at gmail.com> > >> >> wrote: > >> >> >>>>>>>> > >> >> >>>>>>>> Yes thanks. I realize a lot of people don't like them. > That's > >> why > >> >> >>>>>>>> that > >> >> >>>>>>>> > >> >> >>>>>>>> No > >> >> >>>>>>>>> Pings plugin was invented! But I do like 'em and WP used to > >> >> generate > >> >> >>>>>>>>> them. > >> >> >>>>>>>>> Like or dislike, I just wish to confirm that they (self > pings) > >> >> are > >> >> >>>>>>>>> indeed > >> >> >>>>>>>>> dropped by WP now. If so, A nudge on how to re-enable them > >> with a > >> >> >>>>>>>>> plugin > >> >> >>>>>>>>> would be really groovy. > >> >> >>>>>>>>> > >> >> >>>>>>>>> > >> >> >>>>>>>>> Chris Kasten > >> >> >>>>>>>>> Solo Technology > >> >> >>>>>>>>> > >> >> >>>>>>>>> > >> >> >>>>>>>>> On Sat, Aug 29, 2009 at 11:19 AM, Rics < > >> ricardo.cezar at gmail.com> > >> >> >>>>>>>>> wrote: > >> >> >>>>>>>>> > >> >> >>>>>>>>> Personally, I don't like self trackbacks... it's anoying. > >> >> >>>>>>>>> > >> >> >>>>>>>>> I prefer to have related posts and use trackback only from > >> other > >> >> >>>>>>>>>> websites. > >> >> >>>>>>>>>> --- > >> >> >>>>>>>>>> Rics > >> >> >>>>>>>>>> http://www.pensarics.com > >> >> >>>>>>>>>> http://www.meadiciona.com/rics > >> >> >>>>>>>>>> Maring?, PR - Brasil > >> >> >>>>>>>>>> > >> >> >>>>>>>>>> > >> >> >>>>>>>>>> 2009/8/29 scribu > >> >> >>>>>>>>>> > >> >> >>>>>>>>>> That's ironic, since there's a plugin that does the > opposite. > >> >> It's > >> >> >>>>>>>>>> > >> >> >>>>>>>>>> called > >> >> >>>>>>>>>>> No > >> >> >>>>>>>>>>> Self Pings. > >> >> >>>>>>>>>>> > >> >> >>>>>>>>>>> -- > >> >> >>>>>>>>>>> http://scribu.net > >> >> >>>>>>>>>>> _______________________________________________ > >> >> >>>>>>>>>>> wp-hackers mailing list > >> >> >>>>>>>>>>> wp-hackers at lists.automattic.com > >> >> >>>>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> >>>>>>>>>>> > >> >> >>>>>>>>>>> _______________________________________________ > >> >> >>>>>>>>>>> > >> >> >>>>>>>>>>> wp-hackers mailing list > >> >> >>>>>>>>>> wp-hackers at lists.automattic.com > >> >> >>>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> >>>>>>>>>> > >> >> >>>>>>>>>> _______________________________________________ > >> >> >>>>>>>>>> > >> >> >>>>>>>>>> wp-hackers mailing list > >> >> >>>>>>>>> wp-hackers at lists.automattic.com > >> >> >>>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> >>>>>>>>> > >> >> >>>>>>>>> _______________________________________________ > >> >> >>>>>>>>> > >> >> >>>>>>>> wp-hackers mailing list > >> >> >>>>>>>> wp-hackers at lists.automattic.com > >> >> >>>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> >>>>>>>> > >> >> >>>>>>>> > >> >> >>>>>>>> > >> >> >>>>>>> _______________________________________________ > >> >> >>>>>>> > >> >> >>>>>> wp-hackers mailing list > >> >> >>>>>> wp-hackers at lists.automattic.com > >> >> >>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> >>>>>> > >> >> >>>>>> > >> >> >>>>>> > >> >> >>>>> -- > >> >> >>>>> -- > >> >> >>>>> Dion Hulse > >> >> >>>>> e: contact at dd32.id.au > >> >> >>>>> w: http://dd32.id.au/ > >> >> >>>>> m: 04 6621 9112 (+614 6621 9112) > >> >> >>>>> WordPressQI: http://wordpressqi.com/ > >> >> >>>>> > >> >> >>>>> _______________________________________________ > >> >> >>>>> wp-hackers mailing list > >> >> >>>>> wp-hackers at lists.automattic.com > >> >> >>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> >>>>> > >> >> >>>>> _______________________________________________ > >> >> >>>> wp-hackers mailing list > >> >> >>>> wp-hackers at lists.automattic.com > >> >> >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> >>>> > >> >> >>> _______________________________________________ > >> >> >>> wp-hackers mailing list > >> >> >>> wp-hackers at lists.automattic.com > >> >> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> >>> > >> >> >> > >> >> >> > >> >> > _______________________________________________ > >> >> > wp-hackers mailing list > >> >> > wp-hackers at lists.automattic.com > >> >> > http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> > > >> >> _______________________________________________ > >> >> wp-hackers mailing list > >> >> wp-hackers at lists.automattic.com > >> >> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> >> > >> > _______________________________________________ > >> > wp-hackers mailing list > >> > wp-hackers at lists.automattic.com > >> > http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > >> _______________________________________________ > >> wp-hackers mailing list > >> wp-hackers at lists.automattic.com > >> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From derek at amphibian.info Wed Sep 2 13:51:44 2009 From: derek at amphibian.info (Derek Hogue) Date: Wed, 2 Sep 2009 06:51:44 -0700 (PDT) Subject: [wp-hackers] remove_action for dashboard feeds? Message-ID: <0b5f8e7c-5a2c-4e1d-84c9-e449292a879b@z16g2000yqe.googlegroups.com> I tried digging around the source to see if I could find this on my own, but couldn't sort it out. I'd like to disable the fetching of the three Wordpress-related feeds in the dashboard altogether. I know they can be hidden on a per-user basis from the screen settings, but I'd like to just nix the functions - no fetching and no caching of the feeds, for all users. Is there an action I can remove to do this? Can I use remove_action on a function *within* the do_action function (as believe this is how these feeds are called)? Any help would be great - thanks. Derek From dougal at gunters.org Wed Sep 2 16:55:11 2009 From: dougal at gunters.org (Dougal Campbell) Date: Wed, 02 Sep 2009 12:55:11 -0400 Subject: [wp-hackers] WXR format documentation In-Reply-To: <4A9E58AB.8050204@gmail.com> References: <4A9D3F9A.5080006@gmail.com> <1251885520.12909.2.camel@rillian.narnia.sunriseroad.net> <4A9E58AB.8050204@gmail.com> Message-ID: <4A9EA36F.2080208@gunters.org> On Sep 2 2009 7:36 AM, Harish Narayanan wrote: > Hmm. Perhaps I will try this. I have been googling for reference > documentation on WXR for a couple of days and I haven't stumbled upon > anything. > As far as I know, nobody has created any reference documentation for WXR. The best reference is really the PHP source for the importer and exporter in WordPress itself. As the name (WordPress eXtended RSS) implies, it's basically RSS with some extra WP-specific elements added in. I worked on a project involving WXR a while back, but it hasn't been released to the public (yet), so I'm afraid I can't say much about that. But I can say that looking at the source for the importer will give you a pretty good idea of what it's expecting. -- Dougal Campbell http://dougal.gunters.org/ http://twitter.com/dougal http://twitual.com/ From otto at ottodestruct.com Wed Sep 2 16:57:56 2009 From: otto at ottodestruct.com (Otto) Date: Wed, 2 Sep 2009 11:57:56 -0500 Subject: [wp-hackers] Quest for Self Pingbacks In-Reply-To: <2b0d85240909020629p172cfcefq32f3b58010fa7c3c@mail.gmail.com> References: <2b0d85240908290704t7180fceepa0a90fa7c7f7ba70@mail.gmail.com> <5812287B-C104-453E-A7AB-954C0F1FD776@ftwr.co.uk> <2b0d85240908300631u19b37b46hf49d2a6174fb69a0@mail.gmail.com> <2b0d85240908300713g6f8d6100n3c0b13d8e212d35c@mail.gmail.com> <161617690908311344t56bd44e8s2ac32001e2be1480@mail.gmail.com> <2b0d85240908311414r2a5d23d7id1ca9d2548e1c134@mail.gmail.com> <161617690909010827o1551556dg85d3f518d9734e4e@mail.gmail.com> <2b0d85240909011523m4827a480lbefd1c05733de6a0@mail.gmail.com> <161617690909020554u49ed8dd1q95ad5a0575b9b3cd@mail.gmail.com> <2b0d85240909020629p172cfcefq32f3b58010fa7c3c@mail.gmail.com> Message-ID: <161617690909020957g208c2015ld3dcbb250bc6efcc@mail.gmail.com> Okay, let's run down how pingbacks work, then you can figure out where the breakage is. 1. When a post is published, if the default_pingback_flag option is set, then _pingme gets added to the postmeta as a key. The default_pingback_flag is the "Attempt to notify any blogs linked to from the article" checkbox on the Settings->Discussions page. 2. Publishing also schedules the do_pings event for immediate execution in the wp-cron system. 3. When wp-cron fires, it runs the do_pings hook, which is connected to do_all_pings(). 4. First thing do_all_pings() does is to look for posts that have _pingme on them. For each one, it removes the _pingme and passes it to the pingback() function. 5. pingback() sifts through the post_content, looking for any urls. For each one, it loads the URL and looks for the pingback link in it. If it finds one, it sends out an XML-RPC ping to it. 6. On a ping success, it pops the URL into the pinged column of the post, to prevent later edits from pinging it again. Any break in the steps along that path will break pings. -Otto On Wed, Sep 2, 2009 at 8:29 AM, Chris Kasten wrote: > Ooops, sorry. > Well, I have exactly two records with meta_key = '_pingme' in my postsmeta > table. > They appear to be referring to posts that don't exist from 3 years ago > (based on post_id). From antonin at delpeuch.eu Wed Sep 2 18:19:24 2009 From: antonin at delpeuch.eu (Antonin Delpeuch) Date: Wed, 02 Sep 2009 20:19:24 +0200 Subject: [wp-hackers] help: Create a public page and handle results of a public formulary Message-ID: <4A9EB72C.7030003@delpeuch.eu> Hi all, I just discovered the WP API and it seems really powerful. The documentation is quite deep, and I didn't find answers to my questions yet. First, I would like to create automaticly a public page (a static page, as the "About me" one). I didn't found functions for that. Then, I have to handle data coming from a public formular (method POST). I saw how to save options from a formular, but what if I have to store the data in a database ? Thanks ! Antonin Delpeuch From scribu at gmail.com Wed Sep 2 18:59:50 2009 From: scribu at gmail.com (scribu) Date: Wed, 2 Sep 2009 21:59:50 +0300 Subject: [wp-hackers] remove_action for dashboard feeds? In-Reply-To: <0b5f8e7c-5a2c-4e1d-84c9-e449292a879b@z16g2000yqe.googlegroups.com> References: <0b5f8e7c-5a2c-4e1d-84c9-e449292a879b@z16g2000yqe.googlegroups.com> Message-ID: <349fe48b0909021159p7f204fdby44e357dbbc53e313@mail.gmail.com> remove_meta_box('dashboard_primary', 'dashboard', 'normal'); remove_meta_box('dashboard_secondary', 'dashboard', 'normal'); remove_meta_box('dashboard_plugins', 'dashboard', 'normal'); -- http://scribu.net From scribu at gmail.com Wed Sep 2 19:03:47 2009 From: scribu at gmail.com (scribu) Date: Wed, 2 Sep 2009 22:03:47 +0300 Subject: [wp-hackers] help: Create a public page and handle results of a public formulary In-Reply-To: <4A9EB72C.7030003@delpeuch.eu> References: <4A9EB72C.7030003@delpeuch.eu> Message-ID: <349fe48b0909021203n1c3d3ae9y908e923ce9d86ee2@mail.gmail.com> Hello, please use the support forums: http://wordpress.org/support/ -- http://scribu.net From frank at bueltge.de Thu Sep 3 06:36:50 2009 From: frank at bueltge.de (Frank Bueltge) Date: Thu, 3 Sep 2009 08:36:50 +0200 Subject: [wp-hackers] remove_action for dashboard feeds? In-Reply-To: <349fe48b0909021159p7f204fdby44e357dbbc53e313@mail.gmail.com> References: <0b5f8e7c-5a2c-4e1d-84c9-e449292a879b@z16g2000yqe.googlegroups.com> <349fe48b0909021159p7f204fdby44e357dbbc53e313@mail.gmail.com> Message-ID: Alternativ you can use the plugin Adminimize and create your own admin: http://wordpress.org/extend/plugins/adminimize/ http://bueltge.de : frank at bueltge.de http://wpengineer.com : frank at wpengineer.com On Wed, Sep 2, 2009 at 8:59 PM, scribu wrote: > ? ? ? ?remove_meta_box('dashboard_primary', 'dashboard', 'normal'); > ? ? ? ?remove_meta_box('dashboard_secondary', 'dashboard', 'normal'); > ? ? ? ?remove_meta_box('dashboard_plugins', 'dashboard', 'normal'); > > -- > http://scribu.net > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From leon.ash at tawnylion.com Thu Sep 3 10:42:06 2009 From: leon.ash at tawnylion.com (leon.ash at tawnylion.com) Date: Thu, 3 Sep 2009 04:42:06 -0600 Subject: [wp-hackers] 404 Pages displaying as blank Message-ID: <3a53d87b$28bf2566$79372914$@com> Hello, I'm experiencing a strange problem I'm hoping someone here may have some suggestions on how to solve. I started a thread here: http://wordpress.org/support/topic/305273 but haven't received any replies. To save me having to retype it all I'd appreciate it if you could look there for the details. In summary I've got my first WordPress site up and running with rewrites working as expected for everything apart from one small, but annoying glitch. My 404 pages are all shown as 'blank' pages. If you look at the details I've confirmed this behaviour on a fresh install with no plugins. Pemalinks is set to /%postname%/, the site is hosted on IIS 6 and has Helicon's ISAPI_Rewrite installed. I've inserted error_log statments into parse_query in classes.php and can confirm that the 'query' for 404 pages is 'name=error=404&page='. The headers of returned pages indicate a 404 Not Found code, but the pages are blank. This implies the rewriting is fine. The last interesting thing is that I also added error_log statements into many of the theme files and the 'log entries' per invalid url request terminate in different components of the 'theme'. Details in post. Any suggestions and help appreciated. Thank you Leon From wordpress at dd32.id.au Thu Sep 3 10:46:35 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Thu, 03 Sep 2009 20:46:35 +1000 Subject: [wp-hackers] 404 Pages displaying as blank In-Reply-To: <3a53d87b$28bf2566$79372914$@com> References: <3a53d87b$28bf2566$79372914$@com> Message-ID: Can you disable the rewriting and see if that changes anything? What about adding: define('WP_DEBUG', true); to your wp-config.php file, does that reveal anything? On Thu, 03 Sep 2009 20:42:06 +1000, leon.ash at tawnylion.com wrote: > Hello, > > I'm experiencing a strange problem I'm hoping someone here may have some > suggestions on how to solve. > > I started a thread here: http://wordpress.org/support/topic/305273 but > haven't received any replies. To save me having to retype it all I'd > appreciate it if you could look there for the details. > > In summary I've got my first WordPress site up and running with rewrites > working as expected for everything apart from one small, but annoying > glitch. > > My 404 pages are all shown as 'blank' pages. If you look at the details > I've confirmed this behaviour on a fresh install with no plugins. > Pemalinks > is set to /%postname%/, the site is hosted on IIS 6 and has Helicon's > ISAPI_Rewrite installed. > > I've inserted error_log statments into parse_query in classes.php and can > confirm that the 'query' for 404 pages is 'name=error=404&page='. The > headers of returned pages indicate a 404 Not Found code, but the pages > are > blank. This implies the rewriting is fine. > > The last interesting thing is that I also added error_log statements into > many of the theme files and the 'log entries' per invalid url request > terminate in different components of the 'theme'. Details in post. > > Any suggestions and help appreciated. > > Thank you > Leon > >_______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) WordPressQI: http://wordpressqi.com/ From leon.ash at tawnylion.com Thu Sep 3 11:07:29 2009 From: leon.ash at tawnylion.com (leon.ash at tawnylion.com) Date: Thu, 3 Sep 2009 05:07:29 -0600 Subject: [wp-hackers] 404 Pages displaying as blank Message-ID: <8ea491c$65ac29dd$662a956f$@com> Dion, I have WP_Debug defined as true and there are no 'error' message that I can see. I know the log is working as I get the error_log output :-) When you say disable rewriting, what do you mean. Remove the 'default' entries from .htaccess and switch of permalinks? L ---------------------------------------- From: "leon.ash at tawnylion.com" Sent: 03 September 2009 11:42 To: wp-hackers at lists.automattic.com Subject: 404 Pages displaying as blank Hello, I'm experiencing a strange problem I'm hoping someone here may have some suggestions on how to solve. I started a thread here: http://wordpress.org/support/topic/305273 but haven't received any replies. To save me having to retype it all I'd appreciate it if you could look there for the details. In summary I've got my first WordPress site up and running with rewrites working as expected for everything apart from one small, but annoying glitch. My 404 pages are all shown as 'blank' pages. If you look at the details I've confirmed this behaviour on a fresh install with no plugins. Pemalinks is set to /%postname%/, the site is hosted on IIS 6 and has Helicon's ISAPI_Rewrite installed. I've inserted error_log statments into parse_query in classes.php and can confirm that the 'query' for 404 pages is 'name=error=404&page='. The headers of returned pages indicate a 404 Not Found code, but the pages are blank. This implies the rewriting is fine. The last interesting thing is that I also added error_log statements into many of the theme files and the 'log entries' per invalid url request terminate in different components of the 'theme'. Details in post. Any suggestions and help appreciated. Thank you Leon From wordpress at dd32.id.au Thu Sep 3 11:13:34 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Thu, 03 Sep 2009 21:13:34 +1000 Subject: [wp-hackers] 404 Pages displaying as blank In-Reply-To: <8ea491c$65ac29dd$662a956f$@com> References: <8ea491c$65ac29dd$662a956f$@com> Message-ID: Yep, I meant disabling the use of rewrites all together. On Thu, 03 Sep 2009 21:07:29 +1000, leon.ash at tawnylion.com wrote: > Dion, > > I have WP_Debug defined as true and there are no 'error' message that I > can > see. I know the log is working as I get the error_log output :-) > > When you say disable rewriting, what do you mean. Remove the 'default' > entries from .htaccess and switch of permalinks? > > L > > ---------------------------------------- > From: "leon.ash at tawnylion.com" > Sent: 03 September 2009 11:42 > To: wp-hackers at lists.automattic.com > Subject: 404 Pages displaying as blank > > Hello, > > I'm experiencing a strange problem I'm hoping someone here may have some > suggestions on how to solve. > > I started a thread here: http://wordpress.org/support/topic/305273 but > haven't received any replies. To save me having to retype it all I'd > appreciate it if you could look there for the details. > > In summary I've got my first WordPress site up and running with rewrites > working as expected for everything apart from one small, but annoying > glitch. > > My 404 pages are all shown as 'blank' pages. If you look at the details > I've confirmed this behaviour on a fresh install with no plugins. > Pemalinks > is set to /%postname%/, the site is hosted on IIS 6 and has Helicon's > ISAPI_Rewrite installed. > > I've inserted error_log statments into parse_query in classes.php and can > confirm that the 'query' for 404 pages is 'name=error=404&page='. The > headers of returned pages indicate a 404 Not Found code, but the pages > are > blank. This implies the rewriting is fine. > > The last interesting thing is that I also added error_log statements into > many of the theme files and the 'log entries' per invalid url request > terminate in different components of the 'theme'. Details in post. > > Any suggestions and help appreciated. > > Thank you > Leon > >_______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) WordPressQI: http://wordpressqi.com/ From leon.ash at tawnylion.com Thu Sep 3 11:34:04 2009 From: leon.ash at tawnylion.com (leon.ash at tawnylion.com) Date: Thu, 3 Sep 2009 05:34:04 -0600 Subject: [wp-hackers] 404 Pages displaying as blank Message-ID: <1c8d6fd$3851870f$33d86e04$@com> Apologies if this is either a new thread or multiple mails. I haven't used a mailing list for a couple of years. I'm unable to access my hosted files from my current location so can't remove the redirection. Will be able to do so in about 5-6 hours and will report outcome here. If you wanted to 'see' what I have I have done a 'vanilla' install at preview.tawnylion.com that is currently configured to /%postname% as permalinks and the 'default' redirection of RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] If my memory serves me right with a default install, using the default permalinks settings I kept getting the index page. This is with IIS6 configured to a custom error page of /index.php?error=404. With redirection as described it displays blank as it 'dies' somewhere whilst processing the 404.php file L ---------------------------------------- From: "Dion Hulse (dd32)" Sent: 03 September 2009 12:13 To: wp-hackers at lists.automattic.com Subject: Re: [wp-hackers] 404 Pages displaying as blank Yep, I meant disabling the use of rewrites all together. On Thu, 03 Sep 2009 21:07:29 +1000, leon.ash at tawnylion.com wrote: > Dion, > > I have WP_Debug defined as true and there are no 'error' message that I > can > see. I know the log is working as I get the error_log output :-) > > When you say disable rewriting, what do you mean. Remove the 'default' > entries from .htaccess and switch of permalinks? > > L > > ---------------------------------------- > From: "leon.ash at tawnylion.com" > Sent: 03 September 2009 11:42 > To: wp-hackers at lists.automattic.com > Subject: 404 Pages displaying as blank > > Hello, > > I'm experiencing a strange problem I'm hoping someone here may have some > suggestions on how to solve. > > I started a thread here: http://wordpress.org/support/topic/305273 but > haven't received any replies. To save me having to retype it all I'd > appreciate it if you could look there for the details. > > In summary I've got my first WordPress site up and running with rewrites > working as expected for everything apart from one small, but annoying > glitch. > > My 404 pages are all shown as 'blank' pages. If you look at the details > I've confirmed this behaviour on a fresh install with no plugins. > Pemalinks > is set to /%postname%/, the site is hosted on IIS 6 and has Helicon's > ISAPI_Rewrite installed. > > I've inserted error_log statments into parse_query in classes.php and can > confirm that the 'query' for 404 pages is 'name=error=404&page='. The > headers of returned pages indicate a 404 Not Found code, but the pages > are > blank. This implies the rewriting is fine. > > The last interesting thing is that I also added error_log statements into > many of the theme files and the 'log entries' per invalid url request > terminate in different components of the 'theme'. Details in post. > > Any suggestions and help appreciated. > > Thank you > Leon > >_______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) WordPressQI: http://wordpressqi.com/ _______________________________________________ wp-hackers mailing list wp-hackers at lists.automattic.com http://lists.automattic.com/mailman/listinfo/wp-hackers From alex.cologne at googlemail.com Thu Sep 3 17:48:45 2009 From: alex.cologne at googlemail.com (Alex Rabe) Date: Thu, 3 Sep 2009 10:48:45 -0700 (PDT) Subject: [wp-hackers] WordPress.org API search failed for plugins with dashes Message-ID: <173f7a9a-9682-4623-8888-a5f553012f59@z24g2000yqb.googlegroups.com> Hi, I'm playing with plugins_api() function to retrieve other plugins which added the tag 'nextgen-gallery' as tag in the readme.txt file, but the API convert the dash into a space : see here http://wordpress.org/extend/plugins/tags/nextgen-gallery Has somebody a workaround or whom can I contact for a search fix ? Thanks for any tip Alex From otto at ottodestruct.com Thu Sep 3 18:06:23 2009 From: otto at ottodestruct.com (Otto) Date: Thu, 3 Sep 2009 13:06:23 -0500 Subject: [wp-hackers] WordPress.org API search failed for plugins with dashes In-Reply-To: <173f7a9a-9682-4623-8888-a5f553012f59@z24g2000yqb.googlegroups.com> References: <173f7a9a-9682-4623-8888-a5f553012f59@z24g2000yqb.googlegroups.com> Message-ID: <161617690909031106v12bbdf11tf11dcccdfdd1e833@mail.gmail.com> Well, one easy workaround is to not use tags with dashes in them. Seems the best way. Tags should be simple, since humans see and type them. Expecting people to use odd punctuation is not a good way to go. -Otto On Thu, Sep 3, 2009 at 12:48 PM, Alex Rabe wrote: > Hi, > > I'm playing with plugins_api() function to retrieve other plugins > which added the tag 'nextgen-gallery' as tag in the readme.txt file, > but the API convert the dash into a space : see here > http://wordpress.org/extend/plugins/tags/nextgen-gallery > > Has somebody a workaround or whom can I contact for a search fix ? > > Thanks for any tip > Alex > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From otto at ottodestruct.com Thu Sep 3 18:10:13 2009 From: otto at ottodestruct.com (Otto) Date: Thu, 3 Sep 2009 13:10:13 -0500 Subject: [wp-hackers] 404 Pages displaying as blank In-Reply-To: <1c8d6fd$3851870f$33d86e04$@com> References: <1c8d6fd$3851870f$33d86e04$@com> Message-ID: <161617690909031110j62b477d4y443133e69ecdeeaa@mail.gmail.com> WordPress handles 404's internally. You don't need to define a custom error page. Just let it redirect to the index.php like normal. The 404 page served by WordPress is whatever is in 404.php in your theme directory. -Otto Sent from Memphis, TN, United States On Thu, Sep 3, 2009 at 6:34 AM, leon.ash at tawnylion.com wrote: > Apologies if this is either a new thread or multiple mails. I haven't used > a mailing list for a couple of years. > > I'm unable to access my hosted files from my current location so can't > remove the redirection. Will be able to do so in about 5-6 hours and will > report outcome here. If you wanted to 'see' what I have I have done a > 'vanilla' install at preview.tawnylion.com that is currently configured to > /%postname% as permalinks and the 'default' redirection of > > RewriteEngine On > RewriteBase / > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule . /index.php [L] > > If my memory serves me right with a default install, using the default > permalinks settings I kept getting the index page. This is with IIS6 > configured to a custom error page of /index.php?error=404. > > With redirection as described it displays blank as it 'dies' somewhere > whilst processing the 404.php file > > L > > ---------------------------------------- > ?From: "Dion Hulse (dd32)" > Sent: 03 September 2009 12:13 > To: wp-hackers at lists.automattic.com > Subject: Re: [wp-hackers] 404 Pages displaying as blank > > Yep, I meant disabling the use of rewrites all together. > > On Thu, 03 Sep 2009 21:07:29 +1000, leon.ash at tawnylion.com > wrote: > >> Dion, >> >> I have WP_Debug defined as true and there are no 'error' message that I >> can >> see. I know the log is working as I get the error_log output :-) >> >> When you say disable rewriting, what do you mean. Remove the 'default' >> entries from .htaccess and switch of permalinks? >> >> L >> >> ---------------------------------------- >> From: "leon.ash at tawnylion.com" >> Sent: 03 September 2009 11:42 >> To: wp-hackers at lists.automattic.com >> Subject: 404 Pages displaying as blank >> >> Hello, >> >> I'm experiencing a strange problem I'm hoping someone here may have some >> suggestions on how to solve. >> >> I started a thread here: http://wordpress.org/support/topic/305273 but >> haven't received any replies. To save me having to retype it all I'd >> appreciate it if you could look there for the details. >> >> In summary I've got my first WordPress site up and running with rewrites >> working as expected for everything apart from one small, but annoying >> glitch. >> >> My 404 pages are all shown as 'blank' pages. If you look at the details >> I've confirmed this behaviour on a fresh install with no plugins. >> Pemalinks >> is set to /%postname%/, the site is hosted on IIS 6 and has Helicon's >> ISAPI_Rewrite installed. >> >> I've inserted error_log statments into parse_query in classes.php and > can >> confirm that the 'query' for 404 pages is 'name=error=404&page='. The >> headers of returned pages indicate a 404 Not Found code, but the pages >> are >> blank. This implies the rewriting is fine. >> >> The last interesting thing is that I also added error_log statements > into >> many of the theme files and the 'log entries' per invalid url request >> terminate in different components of the 'theme'. Details in post. >> >> Any suggestions and help appreciated. >> >> Thank you >> Leon >> >>_______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > > -- > -- > Dion Hulse > e: contact at dd32.id.au > w: http://dd32.id.au/ > m: 04 6621 9112 (+614 6621 9112) > WordPressQI: http://wordpressqi.com/ > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From leon.ash at tawnylion.com Thu Sep 3 18:28:34 2009 From: leon.ash at tawnylion.com (Leon Ash) Date: Thu, 3 Sep 2009 20:28:34 +0200 Subject: [wp-hackers] 404 Pages displaying as blank In-Reply-To: <161617690909031110j62b477d4y443133e69ecdeeaa@mail.gmail.com> References: <1c8d6fd$3851870f$33d86e04$@com> <161617690909031110j62b477d4y443133e69ecdeeaa@mail.gmail.com> Message-ID: <0FCEC649-BF11-4314-B361-5AF2E90968D5@tawnylion.com> Dion and Otto, I'm currently testing and playing on http://preview.tawnylion.com I've followed Dion's suggestion of completely removing the htaccess/ redirection. If I remove the IIS6 custom 404 handler pointing to /index.php? error=404 then the 'home' page works, but nothing else. Everything returns 404 pages? With the /index.php?error=404 on the IIS6 custom handler all works whether I have .htaccess or not. All, except the 'real' 404 errors. L On Sep 3, 2009, at 8:10 PM, Otto wrote: > WordPress handles 404's internally. You don't need to define a custom > error page. Just let it redirect to the index.php like normal. > > The 404 page served by WordPress is whatever is in 404.php in your > theme directory. > > -Otto > Sent from Memphis, TN, United States > > > On Thu, Sep 3, 2009 at 6:34 AM, > leon.ash at tawnylion.com wrote: >> Apologies if this is either a new thread or multiple mails. I >> haven't used >> a mailing list for a couple of years. >> >> I'm unable to access my hosted files from my current location so >> can't >> remove the redirection. Will be able to do so in about 5-6 hours >> and will >> report outcome here. If you wanted to 'see' what I have I have done a >> 'vanilla' install at preview.tawnylion.com that is currently >> configured to >> /%postname% as permalinks and the 'default' redirection of >> >> RewriteEngine On >> RewriteBase / >> RewriteCond %{REQUEST_FILENAME} !-f >> RewriteCond %{REQUEST_FILENAME} !-d >> RewriteRule . /index.php [L] >> >> If my memory serves me right with a default install, using the >> default >> permalinks settings I kept getting the index page. This is with IIS6 >> configured to a custom error page of /index.php?error=404. >> >> With redirection as described it displays blank as it 'dies' >> somewhere >> whilst processing the 404.php file >> >> L >> >> ---------------------------------------- >> From: "Dion Hulse (dd32)" >> Sent: 03 September 2009 12:13 >> To: wp-hackers at lists.automattic.com >> Subject: Re: [wp-hackers] 404 Pages displaying as blank >> >> Yep, I meant disabling the use of rewrites all together. >> >> On Thu, 03 Sep 2009 21:07:29 +1000, leon.ash at tawnylion.com >> wrote: >> >>> Dion, >>> >>> I have WP_Debug defined as true and there are no 'error' message >>> that I >>> can >>> see. I know the log is working as I get the error_log output :-) >>> >>> When you say disable rewriting, what do you mean. Remove the >>> 'default' >>> entries from .htaccess and switch of permalinks? >>> >>> L >>> >>> ---------------------------------------- >>> From: "leon.ash at tawnylion.com" >>> Sent: 03 September 2009 11:42 >>> To: wp-hackers at lists.automattic.com >>> Subject: 404 Pages displaying as blank >>> >>> Hello, >>> >>> I'm experiencing a strange problem I'm hoping someone here may >>> have some >>> suggestions on how to solve. >>> >>> I started a thread here: http://wordpress.org/support/topic/305273 >>> but >>> haven't received any replies. To save me having to retype it all I'd >>> appreciate it if you could look there for the details. >>> >>> In summary I've got my first WordPress site up and running with >>> rewrites >>> working as expected for everything apart from one small, but >>> annoying >>> glitch. >>> >>> My 404 pages are all shown as 'blank' pages. If you look at the >>> details >>> I've confirmed this behaviour on a fresh install with no plugins. >>> Pemalinks >>> is set to /%postname%/, the site is hosted on IIS 6 and has >>> Helicon's >>> ISAPI_Rewrite installed. >>> >>> I've inserted error_log statments into parse_query in classes.php >>> and >> can >>> confirm that the 'query' for 404 pages is 'name=error=404&page='. >>> The >>> headers of returned pages indicate a 404 Not Found code, but the >>> pages >>> are >>> blank. This implies the rewriting is fine. >>> >>> The last interesting thing is that I also added error_log statements >> into >>> many of the theme files and the 'log entries' per invalid url >>> request >>> terminate in different components of the 'theme'. Details in post. >>> >>> Any suggestions and help appreciated. >>> >>> Thank you >>> Leon >>> >>> _______________________________________________ >>> wp-hackers mailing list >>> wp-hackers at lists.automattic.com >>> http://lists.automattic.com/mailman/listinfo/wp-hackers >>> >> >> -- >> -- >> Dion Hulse >> e: contact at dd32.id.au >> w: http://dd32.id.au/ >> m: 04 6621 9112 (+614 6621 9112) >> WordPressQI: http://wordpressqi.com/ >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From websweetweb at gmail.com Fri Sep 4 03:15:18 2009 From: websweetweb at gmail.com (rajasekharan) Date: Fri, 04 Sep 2009 08:45:18 +0530 Subject: [wp-hackers] Adding a front end page without adding a "page" Message-ID: <4AA08646.9040101@gmail.com> Hi all, In a plugin I am trying to add a front end page. This page should use the template as generated by the single.php template. In Contact Form 7, the user creates a page using the Add page interface and places a shortcode to make the form appear in the page. I would like to be able to do this automatically without the use having to do anything. Any idea how I can achieve this? Raj Sekharan From derek at amphibian.info Fri Sep 4 03:32:37 2009 From: derek at amphibian.info (Derek) Date: Thu, 3 Sep 2009 20:32:37 -0700 (PDT) Subject: [wp-hackers] remove_action for dashboard feeds? In-Reply-To: <349fe48b0909021159p7f204fdby44e357dbbc53e313@mail.gmail.com> References: <0b5f8e7c-5a2c-4e1d-84c9-e449292a879b@z16g2000yqe.googlegroups.com> <349fe48b0909021159p7f204fdby44e357dbbc53e313@mail.gmail.com> Message-ID: Thanks! That's what I was looking for. Derek On Sep 2, 3:59?pm, scribu wrote: > ? ? ? ? remove_meta_box('dashboard_primary', 'dashboard', 'normal'); > ? ? ? ? remove_meta_box('dashboard_secondary', 'dashboard', 'normal'); > ? ? ? ? remove_meta_box('dashboard_plugins', 'dashboard', 'normal'); > > --http://scribu.net > _______________________________________________ > wp-hackers mailing list > wp-hack... at lists.automattic.comhttp://lists.automattic.com/mailman/listinfo/wp-hackers From wordpress at dd32.id.au Fri Sep 4 06:01:18 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Fri, 04 Sep 2009 16:01:18 +1000 Subject: [wp-hackers] Adding a front end page without adding a "page" In-Reply-To: <4AA08646.9040101@gmail.com> References: <4AA08646.9040101@gmail.com> Message-ID: your best bet is going to be to insert a page with a shortcode automatically in the page. look into wp_insert_post() with post_type = 'page' On Fri, 04 Sep 2009 13:15:18 +1000, rajasekharan wrote: > Hi all, > > In a plugin I am trying to add a front end page. This page should use > the template as generated by the single.php template. > > In Contact Form 7, the user creates a page using the Add page interface > and places a shortcode to make the form appear in the > page. I would like to be able to do this automatically without the use > having to do anything. > > Any idea how I can achieve this? > > Raj Sekharan > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) WordPressQI: http://wordpressqi.com/ From johnbillion+wp at gmail.com Fri Sep 4 07:45:54 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Fri, 4 Sep 2009 08:45:54 +0100 Subject: [wp-hackers] Adding a front end page without adding a "page" In-Reply-To: References: <4AA08646.9040101@gmail.com> Message-ID: <1fa535a70909040045u138c2ba0uaa46f27470e0b7d6@mail.gmail.com> Don't forget to include a message informing the user that a new page will automatically be created (or better still, give them an option). 2009/9/4 Dion Hulse (dd32) : > your best bet is going to be to insert a page with a shortcode automatically > in the page. > > look into wp_insert_post() with post_type = 'page' > > > On Fri, 04 Sep 2009 13:15:18 +1000, rajasekharan > wrote: > >> Hi all, >> >> In a plugin I am trying to add a front end page. This page should use >> the template as generated by the single.php template. >> >> In Contact Form 7, the user creates a page using the Add page interface >> and places a shortcode to make the form appear in the >> page. I would like to be able to do this automatically without the use >> having to do anything. >> >> Any idea how I can achieve this? >> >> Raj Sekharan >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > > > -- > -- > Dion Hulse > e: contact at dd32.id.au > w: http://dd32.id.au/ > m: 04 6621 9112 (+614 6621 9112) > WordPressQI: http://wordpressqi.com/ > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From harish.mlists at gmail.com Fri Sep 4 11:48:12 2009 From: harish.mlists at gmail.com (Harish Narayanan) Date: Fri, 04 Sep 2009 13:48:12 +0200 Subject: [wp-hackers] WXR format documentation In-Reply-To: <4A9EA36F.2080208@gunters.org> References: <4A9D3F9A.5080006@gmail.com> <1251885520.12909.2.camel@rillian.narnia.sunriseroad.net> <4A9E58AB.8050204@gmail.com> <4A9EA36F.2080208@gunters.org> Message-ID: <4AA0FE7C.8080802@gmail.com> Dougal Campbell wrote: > On Sep 2 2009 7:36 AM, Harish Narayanan wrote: >> Hmm. Perhaps I will try this. I have been googling for reference >> documentation on WXR for a couple of days and I haven't stumbled upon >> anything. >> > > As far as I know, nobody has created any reference documentation for > WXR. The best reference is really the PHP source for the importer and > exporter in WordPress itself. As the name (WordPress eXtended RSS) > implies, it's basically RSS with some extra WP-specific elements added in. I was able to go through the exporter code and modify it for my needs. Thanks! Harish From leon.ash at tawnylion.com Fri Sep 4 13:59:53 2009 From: leon.ash at tawnylion.com (Leon Ash) Date: Fri, 4 Sep 2009 15:59:53 +0200 Subject: [wp-hackers] 404 Pages displaying as blank In-Reply-To: References: <8ea491c$65ac29dd$662a956f$@com> Message-ID: <3ED0970E-C948-433B-A4CF-97EB55155B79@tawnylion.com> Hi, Any other suggestions or ideas. Thank you Leon On Sep 3, 2009, at 1:13 PM, Dion Hulse (dd32) wrote: > Yep, I meant disabling the use of rewrites all together. > > On Thu, 03 Sep 2009 21:07:29 +1000, leon.ash at tawnylion.com > wrote: > >> Dion, >> >> I have WP_Debug defined as true and there are no 'error' message >> that I can >> see. I know the log is working as I get the error_log output :-) >> >> When you say disable rewriting, what do you mean. Remove the >> 'default' >> entries from .htaccess and switch of permalinks? >> >> L >> >> ---------------------------------------- >> From: "leon.ash at tawnylion.com" >> Sent: 03 September 2009 11:42 >> To: wp-hackers at lists.automattic.com >> Subject: 404 Pages displaying as blank >> >> Hello, >> >> I'm experiencing a strange problem I'm hoping someone here may have >> some >> suggestions on how to solve. >> >> I started a thread here: http://wordpress.org/support/topic/305273 >> but >> haven't received any replies. To save me having to retype it all I'd >> appreciate it if you could look there for the details. >> >> In summary I've got my first WordPress site up and running with >> rewrites >> working as expected for everything apart from one small, but annoying >> glitch. >> >> My 404 pages are all shown as 'blank' pages. If you look at the >> details >> I've confirmed this behaviour on a fresh install with no plugins. >> Pemalinks >> is set to /%postname%/, the site is hosted on IIS 6 and has Helicon's >> ISAPI_Rewrite installed. >> >> I've inserted error_log statments into parse_query in classes.php >> and can >> confirm that the 'query' for 404 pages is 'name=error=404&page='. The >> headers of returned pages indicate a 404 Not Found code, but the >> pages are >> blank. This implies the rewriting is fine. >> >> The last interesting thing is that I also added error_log >> statements into >> many of the theme files and the 'log entries' per invalid url request >> terminate in different components of the 'theme'. Details in post. >> >> Any suggestions and help appreciated. >> >> Thank you >> Leon >> >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > > > -- > -- > Dion Hulse > e: contact at dd32.id.au > w: http://dd32.id.au/ > m: 04 6621 9112 (+614 6621 9112) > WordPressQI: http://wordpressqi.com/ > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From dougal at gunters.org Fri Sep 4 15:14:14 2009 From: dougal at gunters.org (Dougal Campbell) Date: Fri, 04 Sep 2009 11:14:14 -0400 Subject: [wp-hackers] 404 Pages displaying as blank In-Reply-To: <3ED0970E-C948-433B-A4CF-97EB55155B79@tawnylion.com> References: <8ea491c$65ac29dd$662a956f$@com> <3ED0970E-C948-433B-A4CF-97EB55155B79@tawnylion.com> Message-ID: <4AA12EC6.7040704@gunters.org> On Sep 4 2009 9:59 AM, Leon Ash wrote: > Hi, > > Any other suggestions or ideas. I don't suppose ditching IIS and using Apache is an option, huh? :) Seriously, though, AFAIK you should be able to get WordPress working fine with IIS7 and the rewrite module you mentioned. But I haven't touched IIS in forever, so I don't have any practical advice to offer (other than switching to Apache). -- Dougal Campbell http://dougal.gunters.org/ http://twitter.com/dougal http://twitual.com/ From ravi-lists at g8o.net Fri Sep 4 15:27:50 2009 From: ravi-lists at g8o.net (// ravi) Date: Fri, 4 Sep 2009 11:27:50 -0400 Subject: [wp-hackers] shortcodes, BR tags and feed/XML-RPC interfaces Message-ID: Hello all, I wrote a quick and dirty shortcode as part of my WP theme that lets me use a multi-line shortcode: [qfgallery] URL-to-image-1 URL-to-image-2 [/qfgallery] to generate a custom image gallery using FancyBox. Despite what this thread (http://bit.ly/u2kvv) seems to suggests (or perhaps I am reading it wrong), it seems that in my shortcode handler, I get
    tags after each line in $content. I am parsing it out but I am curious if this is expected behaviour. Also, one shortcoming of my quick and dirty trick seems to be that though my splendid FancyBox gallery is rendered correctly in the browser, when the content is pulled via the feed or XML-RPC the shortcode is left as-is -- which is understandable I guess since the theme only applies to browser rendering. Is this correct? i.e., there is no way for me, in my theme code, to enable shortcode expansion for post content for feeds and XML-RPC? One way to overcome this may be to add an action or filter, which would entail (if I am getting it right) the creation of a plugin. I do not want the plugin to modify the content as it is saved i.e., I do not want it to hook into the post editing function. That would cause the shortcode to be expanded/replaced on saving, preventing future edits. I could instead, I hope, add a filter that would kick in when the content is accessed (irrespective of the reason/means of access, whether it be for rendering in browser, or for feed or XML-RPC). Any suggestions, comments or advice would be great. Thank you, --ravi From emartin24 at gmail.com Fri Sep 4 15:40:24 2009 From: emartin24 at gmail.com (Eric Martin) Date: Fri, 4 Sep 2009 08:40:24 -0700 (PDT) Subject: [wp-hackers] JavaScript,wp_enqueue_script and concatenation In-Reply-To: <77c8b7bf0908280335i1fcce177o12c6aa81487afa1a@mail.gmail.com> References: <29b5b0d30908010846n3514603au1c971b62dae2a9a0@mail.gmail.com> <161617690908030611w6b58b7cbh2f9a7007b66ed263@mail.gmail.com> <77c8b7bf0908030800td56b98ai357f479598fae9e7@mail.gmail.com> <4f9525dc0908030814s1e2802eet6b43258bd0deae4c@mail.gmail.com> <77c8b7bf0908280335i1fcce177o12c6aa81487afa1a@mail.gmail.com> Message-ID: <90fc480b-6dfd-4f16-8629-2ce004cadae1@a37g2000prf.googlegroups.com> Simon, I did not find a solution that met all of my requirements, but it works for me. I just put all of the scripts in a single file and load it using one wp_enqueue_script call. The problem is that I lose all of the extra features of wp_enqueue_script by doing it this way. I might look into dequeueing the scripts, but I haven't looked to see how that fits into the lifecycle yet. My ticket about it was closed, but there is another similar one still open (from 3 years ago): http://core.trac.wordpress.org/ticket/3372 On Aug 28, 3:35?am, Simon Wheatley wrote: > Hi Eric, > > Did you get any further with this? Any hints. > > S > > > > On Tue, Aug 11, 2009 at 9:31 PM, Eric Martin wrote: > > As far as I can tell, the script concatenation only works in the admin > > section. > > > So, I'm just trying to figure out how to usewp_enqueue_scriptfor > > multiple scripts, but then force WP to print out one script tag for a > > certain set of them. Any suggestions? > > > Thanks! > > > On Aug 3, 8:14?am, Tynan Colin Beatty wrote: > >> It does not happen on its own. I chose to include a modified > >> load-scripts.php from wp-admin into my theme's files (modified to allow > >> concatenation of scripts from my theme as well as those in wp-includes/js > >> scripts), but haven't had time to determine an optimal method of also > >> including plugin scripts (there are other variables to consider when trying > >> to include them as well, since some of them need to load in header, whereas > >> I choose to load my concatenated script into the footer). The solution > >> speeds things up a fair amount even without including plugins in the > >> concatenated script (and if your theme doesn't have any js, would be even > >> easier to implement). I'm thinking a nice approach might be to have 1 call > >> to the concated script in head to take care of whatever has to be loaded > >> there, and then a 2nd call to the same load-scripts.php, concatenating all > >> the files that can wait for the footer. > > >> On Mon, Aug 3, 2009 at 10:00 AM, Simon Wheatley > >> wrote: > > >> > On Mon, Aug 3, 2009 at 2:11 PM, Otto wrote: > >> > > On Sat, Aug 1, 2009 at 10:46 AM, Eric Martin > >> > wrote: > >> > >> I use jQuery on my site and a handful of jquery plugins. I've been > >> > >> doing quite a bit of thinking about ways to concatenate the scripts > >> > >> together in order to reduce the number of requests made, while > >> > >> maintaining the usefulness and features provided bywp_enqueue_script. > > >> > > I'm pretty sure that 2.8 already has this built in. All scripts get > >> > > concatenated into a single call to load-scripts.php, if everything > >> > > supports it properly. > > >> > Does this happen outside the admin area? I haven't noticed it myself, > >> > but maybe my scripts calls aren't configured correctly. > > >> > S > > >> > --- > >> > Sweet Interaction Ltd is Registered in England/Wales, no. 6610741 > >> > Registered office: 7 Malton Av, Manchester, M21 8AT > >> > _______________________________________________ > >> > wp-hackers mailing list > >> > wp-hack... at lists.automattic.com > >> >http://lists.automattic.com/mailman/listinfo/wp-hackers > > >> _______________________________________________ > >> wp-hackers mailing list > >> wp-hack... at lists.automattic.comhttp://lists.automattic.com/mailman/listinfo/wp-hackers > > _______________________________________________ > > wp-hackers mailing list > > wp-hack... at lists.automattic.com > >http://lists.automattic.com/mailman/listinfo/wp-hackers > > -- > Simon Wheatley > Sweet Interaction Ltd > Web Interaction Design & Development > Tel: 07971 687295 > > WordPress blog development for Stephen Fry:http://stephenfry.com/ > WordPress blog development for DfID -http://blogs.dfid.gov.uk/ > House of Illustration site -http://houseofillustration.org.uk/ > Blog for the Royal Navy -http://jackspeak.royalnavy.mod.uk/ > > --- > Sweet Interaction Ltd is Registered in England/Wales, no. 6610741 > Registered office: 7 Malton Av, Manchester, M21 8AT > _______________________________________________ > wp-hackers mailing list > wp-hack... at lists.automattic.comhttp://lists.automattic.com/mailman/listinfo/wp-hackers From jer at simianuprising.com Fri Sep 4 16:11:58 2009 From: jer at simianuprising.com (Jeremy Clarke) Date: Fri, 4 Sep 2009 12:11:58 -0400 Subject: [wp-hackers] Can't use the same conditional tag twice? In-Reply-To: <58410e2e0908311743l117522cg44cb9fa13a87bbbd@mail.gmail.com> References: <58410e2e0908261810o6c8f06ealc0de0ea40122833d@mail.gmail.com> <58410e2e0908301937sa6a2345ye07b91ec68b09dc2@mail.gmail.com> <58410e2e0908311743l117522cg44cb9fa13a87bbbd@mail.gmail.com> Message-ID: Bryan, query_posts() effectively says to WordPress "I know you THOUGHT you should load these XYZ posts (home page, category listing, single article, whatever), but actually what this page *IS* is something else, and i'll tell you what with query_posts()". When you use it you completely reset the page. So if you are on the homepage and you do a query_posts('cat=1'); then right before that line is_home() will be true but right after it will be false. After that is_cat() would return true instead. If you need extra queries you should just use the object instead: $myposts = new WP_Query('cat=1'); Then you just need a slightly modified loop: if ($myposts->have_posts() ) : while ($myposts->have_posts()) : $myposts->the_post() ; Until I figured that one out I was constantly having problems with conditional tags not doing what I expected. Clean up your extra queries and your life will be a lot simpler. -- Jeremy Clarke | http://jeremyclarke.org Code and Design | http://globalvoicesonline.org On Mon, Aug 31, 2009 at 8:43 PM, Bryan Harley wrote: > Yes, I'm using query_posts. > > On Mon, Aug 31, 2009 at 1:13 AM, Dion Hulse (dd32) wrote: > >> are you using query_posts()? >> >> query_posts overrides the current query, Its not the best way to go about >> what most people use it for. >> >> try adding wp_reset_query() iin your footer and see if that helps (for >> future reference) - Or call it after query_posts is finished. >> >> >> On Mon, 31 Aug 2009 12:37:00 +1000, Bryan Harley >> wrote: >> >> ?Peter/Jeremy, >>> >>> I'm using the following code in both my header and footer. >>> >>>
  • >> href="URLHERE">Welcome
  • >>> >>> Here's the CSS: >>> >>> li.current_page_item a{border-bottom: 3px solid #ec1c24;} >>> >>> But the border is only showing in the header, not the footer. ?To >>> correct this, I left my header code the same and changed the footer >>> code to: >>> >>>
  • Welcome
  • >>> >>> That solved the problem, but I don't understand why it just didn't >>> WORK in the first place. ?Which lead me to believe maybe you can only >>> use one conditional tag per page. >>> >>> -Bryan >>> >>> >>> On Thu, Aug 27, 2009 at 10:58 AM, Jeremy Clarke >>> wrote: >>> >>>> On Wed, Aug 26, 2009 at 9:10 PM, Bryan Harley >>>> wrote: >>>> >>>>> It seems to me that you can't use the same conditional tag on the same >>>>> page twice. ?Can anyone else confirm this. ?Why is this so? >>>>> >>>> >>>> In my experience this is definitely not the case. You probably have >>>> some kind of other issue with your template. Conditional tags would be >>>> practically useless if they were limited to once per page. >>>> >>>> >>>> -- >>>> Jeremy Clarke | http://jeremyclarke.org >>>> Code and Design | http://globalvoicesonline.org >>>> _______________________________________________ >>>> wp-hackers mailing list >>>> wp-hackers at lists.automattic.com >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >>>> >>>> ?_______________________________________________ >>> wp-hackers mailing list >>> wp-hackers at lists.automattic.com >>> http://lists.automattic.com/mailman/listinfo/wp-hackers >>> >>> >> >> -- >> -- >> Dion Hulse >> e: contact at dd32.id.au >> w: http://dd32.id.au/ >> m: 04 6621 9112 (+614 6621 9112) >> WordPressQI: http://wordpressqi.com/ >> >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From otto at ottodestruct.com Fri Sep 4 16:11:20 2009 From: otto at ottodestruct.com (Otto) Date: Fri, 4 Sep 2009 11:11:20 -0500 Subject: [wp-hackers] 404 Pages displaying as blank In-Reply-To: <0FCEC649-BF11-4314-B361-5AF2E90968D5@tawnylion.com> References: <1c8d6fd$3851870f$33d86e04$@com> <161617690909031110j62b477d4y443133e69ecdeeaa@mail.gmail.com> <0FCEC649-BF11-4314-B361-5AF2E90968D5@tawnylion.com> Message-ID: <161617690909040911i4ca46b11w5be57d3f992e378b@mail.gmail.com> On Thu, Sep 3, 2009 at 1:28 PM, Leon Ash wrote: > If I remove the IIS6 custom 404 handler pointing to /index.php?error=404 > then the 'home' page works, but nothing else. Everything returns 404 pages? > With the /index.php?error=404 on the IIS6 custom handler all works whether I > have .htaccess or not. All, except the 'real' 404 errors. Ahh. IIS. Ugh. IIS doesn't use .htaccess and doesn't know about URL rewriting without custom addons. So, I don't know much about IIS, but I do know that you're not currently using any of the "rewrite" functionality for IIS, because you're using the 404 trick. Basically, by redirecting 404's to WordPress, you're accomplishing a cheap form of rewriting. That's why you can't get 404's to work, because you're using them to redirect to the main site instead. -Otto From leon.ash at tawnylion.com Fri Sep 4 17:30:11 2009 From: leon.ash at tawnylion.com (Leon Ash) Date: Fri, 4 Sep 2009 19:30:11 +0200 Subject: [wp-hackers] 404 Pages displaying as blank In-Reply-To: <161617690909040911i4ca46b11w5be57d3f992e378b@mail.gmail.com> References: <1c8d6fd$3851870f$33d86e04$@com> <161617690909031110j62b477d4y443133e69ecdeeaa@mail.gmail.com> <0FCEC649-BF11-4314-B361-5AF2E90968D5@tawnylion.com> <161617690909040911i4ca46b11w5be57d3f992e378b@mail.gmail.com> Message-ID: <41C13A7C-4216-4244-8215-B44E317E5714@tawnylion.com> Uh, yes. Switching to Apache isn't an option at this stage :-) I guess I'll keep plodding aliong. Hosting provider reckons they'll be able to upgrade me to IIS7 soon. What I find strange is that WordPress processes all the existing pages as it should. Even when it is a non-existing URL WordPress detects this and start going through the 404.php file in the template. It just never gets to finish. But, it fails in what seems a random fashion, almost as if it is a timeout of some sort. Thank you all for the help and I'll continue the quest once I've been upgraded to IIS 7. L On Sep 4, 2009, at 6:11 PM, Otto wrote: > On Thu, Sep 3, 2009 at 1:28 PM, Leon Ash > wrote: >> If I remove the IIS6 custom 404 handler pointing to /index.php? >> error=404 >> then the 'home' page works, but nothing else. Everything returns >> 404 pages? >> With the /index.php?error=404 on the IIS6 custom handler all works >> whether I >> have .htaccess or not. All, except the 'real' 404 errors. > > Ahh. IIS. Ugh. IIS doesn't use .htaccess and doesn't know about URL > rewriting without custom addons. > > So, I don't know much about IIS, but I do know that you're not > currently using any of the "rewrite" functionality for IIS, because > you're using the 404 trick. > > Basically, by redirecting 404's to WordPress, you're accomplishing a > cheap form of rewriting. That's why you can't get 404's to work, > because you're using them to redirect to the main site instead. > > > -Otto > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From liste at srpski.biz Fri Sep 4 21:20:34 2009 From: liste at srpski.biz (=?UTF-8?B?TWlsYW4gRGluacSH?=) Date: Fri, 4 Sep 2009 23:20:34 +0200 Subject: [wp-hackers] JavaScript,wp_enqueue_script and concatenation In-Reply-To: <90fc480b-6dfd-4f16-8629-2ce004cadae1@a37g2000prf.googlegroups.com> References: <29b5b0d30908010846n3514603au1c971b62dae2a9a0@mail.gmail.com> <161617690908030611w6b58b7cbh2f9a7007b66ed263@mail.gmail.com> <77c8b7bf0908030800td56b98ai357f479598fae9e7@mail.gmail.com> <4f9525dc0908030814s1e2802eet6b43258bd0deae4c@mail.gmail.com> <77c8b7bf0908280335i1fcce177o12c6aa81487afa1a@mail.gmail.com> <90fc480b-6dfd-4f16-8629-2ce004cadae1@a37g2000prf.googlegroups.com> Message-ID: <9b6c20460909041420v40e0993elb6da2e7ecdd7f8b9@mail.gmail.com> There are several scripts that do this on front end: WP Minify W3 Total Cache Script Compressor PHP Speedy Autoptimize Note that all of them have different features and give different results so test results with tools like Live HTTP Headers extension for Firefox or online tools http://www.webpagetest.org/test and http://www.websiteoptimization.com/services/analyze/ (check cache/expiry headers and gziping, see what scripts are concatenated (you don't want to include popular external files like Google Analytics, AdSense, Google Ajax Libraries or other statistics, ads and similar files which are common and are probably already cached on user's browser) and so on). And tell us what you did! 2009/9/4, Eric Martin : > > Simon, > > I did not find a solution that met all of my requirements, but it > works for me. I just put all of the scripts in a single file and load > it using one wp_enqueue_script call. The problem is that I lose all of > the extra features of wp_enqueue_script by doing it this way. > > I might look into dequeueing the scripts, but I haven't looked to see > how that fits into the lifecycle yet. My ticket about it was closed, > but there is another similar one still open (from 3 years ago): > > http://core.trac.wordpress.org/ticket/3372 > > On Aug 28, 3:35 am, Simon Wheatley wrote: > > Hi Eric, > > > > Did you get any further with this? Any hints. > > > > S > > > > > > > > On Tue, Aug 11, 2009 at 9:31 PM, Eric Martin wrote: > > > As far as I can tell, the script concatenation only works in the admin > > > section. > > > > > So, I'm just trying to figure out how to usewp_enqueue_scriptfor > > > multiple scripts, but then force WP to print out one script tag for a > > > certain set of them. Any suggestions? > > > > > Thanks! > > > > > On Aug 3, 8:14 am, Tynan Colin Beatty wrote: > > >> It does not happen on its own. I chose to include a modified > > >> load-scripts.php from wp-admin into my theme's files (modified to > allow > > >> concatenation of scripts from my theme as well as those in > wp-includes/js > > >> scripts), but haven't had time to determine an optimal method of also > > >> including plugin scripts (there are other variables to consider when > trying > > >> to include them as well, since some of them need to load in header, > whereas > > >> I choose to load my concatenated script into the footer). The solution > > >> speeds things up a fair amount even without including plugins in the > > >> concatenated script (and if your theme doesn't have any js, would be > even > > >> easier to implement). I'm thinking a nice approach might be to have 1 > call > > >> to the concated script in head to take care of whatever has to be > loaded > > >> there, and then a 2nd call to the same load-scripts.php, concatenating > all > > >> the files that can wait for the footer. > > > > >> On Mon, Aug 3, 2009 at 10:00 AM, Simon Wheatley > > >> wrote: > > > > >> > On Mon, Aug 3, 2009 at 2:11 PM, Otto wrote: > > >> > > On Sat, Aug 1, 2009 at 10:46 AM, Eric Martin > > > >> > wrote: > > >> > >> I use jQuery on my site and a handful of jquery plugins. I've > been > > >> > >> doing quite a bit of thinking about ways to concatenate the > scripts > > >> > >> together in order to reduce the number of requests made, while > > >> > >> maintaining the usefulness and features provided > bywp_enqueue_script. > > > > >> > > I'm pretty sure that 2.8 already has this built in. All scripts > get > > >> > > concatenated into a single call to load-scripts.php, if everything > > >> > > supports it properly. > > > > >> > Does this happen outside the admin area? I haven't noticed it > myself, > > >> > but maybe my scripts calls aren't configured correctly. > > > > >> > S > > > > >> > --- > > >> > Sweet Interaction Ltd is Registered in England/Wales, no. 6610741 > > >> > Registered office: 7 Malton Av, Manchester, M21 8AT > > >> > _______________________________________________ > > >> > wp-hackers mailing list > > >> > wp-hack... at lists.automattic.com > > >> >http://lists.automattic.com/mailman/listinfo/wp-hackers > > > > >> _______________________________________________ > > >> wp-hackers mailing list > > >> wp-hack... at lists.automattic.comhttp:// > lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > > > wp-hackers mailing list > > > wp-hack... at lists.automattic.com > > >http://lists.automattic.com/mailman/listinfo/wp-hackers > > > > -- > > Simon Wheatley > > Sweet Interaction Ltd > > Web Interaction Design & Development > > Tel: 07971 687295 > > > > WordPress blog development for Stephen Fry:http://stephenfry.com/ > > WordPress blog development for DfID -http://blogs.dfid.gov.uk/ > > House of Illustration site -http://houseofillustration.org.uk/ > > Blog for the Royal Navy -http://jackspeak.royalnavy.mod.uk/ > > > > --- > > Sweet Interaction Ltd is Registered in England/Wales, no. 6610741 > > Registered office: 7 Malton Av, Manchester, M21 8AT > > _______________________________________________ > > wp-hackers mailing list > > wp-hack... at lists.automattic.comhttp:// > lists.automattic.com/mailman/listinfo/wp-hackers > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From bryanharley at gmail.com Sat Sep 5 03:15:39 2009 From: bryanharley at gmail.com (Bryan Harley) Date: Fri, 4 Sep 2009 20:15:39 -0700 Subject: [wp-hackers] Can't use the same conditional tag twice? In-Reply-To: References: <58410e2e0908261810o6c8f06ealc0de0ea40122833d@mail.gmail.com> <58410e2e0908301937sa6a2345ye07b91ec68b09dc2@mail.gmail.com> <58410e2e0908311743l117522cg44cb9fa13a87bbbd@mail.gmail.com> Message-ID: <58410e2e0909042015l5c9ca670q486b7a54ab8b4aa1@mail.gmail.com> Thanks Jeremy, that explains it! On Fri, Sep 4, 2009 at 9:11 AM, Jeremy Clarke wrote: > Bryan, > > query_posts() effectively says to WordPress "I know you THOUGHT you > should load these XYZ posts (home page, category listing, single > article, whatever), but actually what this page *IS* is something > else, and i'll tell you what with query_posts()". When you use it you > completely reset the page. > > So if you are on the homepage and you do a query_posts('cat=1'); then > right before that line is_home() will be true but right after it will > be false. After that is_cat() would return true instead. > > If you need extra queries you should just use the object instead: > > $myposts = new WP_Query('cat=1'); > > Then you just need a slightly modified loop: > > if ($myposts->have_posts() ) : while ($myposts->have_posts()) : > $myposts->the_post() ; > > Until I figured that one out I was constantly having problems with > conditional tags not doing what I expected. Clean up your extra > queries and your life will be a lot simpler. > > -- > Jeremy Clarke | http://jeremyclarke.org > Code and Design | http://globalvoicesonline.org > > > > > > On Mon, Aug 31, 2009 at 8:43 PM, Bryan Harley > wrote: > > Yes, I'm using query_posts. > > > > On Mon, Aug 31, 2009 at 1:13 AM, Dion Hulse (dd32) >wrote: > > > >> are you using query_posts()? > >> > >> query_posts overrides the current query, Its not the best way to go > about > >> what most people use it for. > >> > >> try adding wp_reset_query() iin your footer and see if that helps (for > >> future reference) - Or call it after query_posts is finished. > >> > >> > >> On Mon, 31 Aug 2009 12:37:00 +1000, Bryan Harley > > >> wrote: > >> > >> Peter/Jeremy, > >>> > >>> I'm using the following code in both my header and footer. > >>> > >>>
  • >>> href="URLHERE">Welcome
  • > >>> > >>> Here's the CSS: > >>> > >>> li.current_page_item a{border-bottom: 3px solid #ec1c24;} > >>> > >>> But the border is only showing in the header, not the footer. To > >>> correct this, I left my header code the same and changed the footer > >>> code to: > >>> > >>>
  • Welcome
  • > >>> > >>> That solved the problem, but I don't understand why it just didn't > >>> WORK in the first place. Which lead me to believe maybe you can only > >>> use one conditional tag per page. > >>> > >>> -Bryan > >>> > >>> > >>> On Thu, Aug 27, 2009 at 10:58 AM, Jeremy Clarke > > >>> wrote: > >>> > >>>> On Wed, Aug 26, 2009 at 9:10 PM, Bryan Harley > >>>> wrote: > >>>> > >>>>> It seems to me that you can't use the same conditional tag on the > same > >>>>> page twice. Can anyone else confirm this. Why is this so? > >>>>> > >>>> > >>>> In my experience this is definitely not the case. You probably have > >>>> some kind of other issue with your template. Conditional tags would be > >>>> practically useless if they were limited to once per page. > >>>> > >>>> > >>>> -- > >>>> Jeremy Clarke | http://jeremyclarke.org > >>>> Code and Design | http://globalvoicesonline.org > >>>> _______________________________________________ > >>>> wp-hackers mailing list > >>>> wp-hackers at lists.automattic.com > >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >>>> > >>>> _______________________________________________ > >>> wp-hackers mailing list > >>> wp-hackers at lists.automattic.com > >>> http://lists.automattic.com/mailman/listinfo/wp-hackers > >>> > >>> > >> > >> -- > >> -- > >> Dion Hulse > >> e: contact at dd32.id.au > >> w: http://dd32.id.au/ > >> m: 04 6621 9112 (+614 6621 9112) > >> WordPressQI: http://wordpressqi.com/ > >> > >> _______________________________________________ > >> wp-hackers mailing list > >> wp-hackers at lists.automattic.com > >> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From joseph at josephscott.org Sat Sep 5 03:40:57 2009 From: joseph at josephscott.org (Joseph Scott) Date: Fri, 4 Sep 2009 21:40:57 -0600 Subject: [wp-hackers] shortcodes, BR tags and feed/XML-RPC interfaces In-Reply-To: References: Message-ID: I would say that the feed should contain the expanded HTML of the short code and not the raw short code itself. For XML-RPC though the raw short code should be returned, not the expanded HTML. On Fri, Sep 4, 2009 at 9:27 AM, // ravi wrote: > Also, one shortcoming of my quick and dirty trick seems to be that though my > splendid FancyBox gallery is rendered correctly in the browser, when the > content is pulled via the feed or XML-RPC the shortcode is left as-is -- > which is understandable I guess since the theme only applies to browser > rendering. Is this correct? i.e., there is no way for me, in my theme code, > to enable shortcode expansion for post content for feeds and XML-RPC? > > One way to overcome this may be to add an action or filter, which would > entail (if I am getting it right) the creation of a plugin. I do not want > the plugin to modify the content as it is saved i.e., I do not want it to > hook into the post editing function. That would cause the shortcode to be > expanded/replaced on saving, preventing future edits. I could instead, I > hope, add a filter that would kick in when the content is accessed > (irrespective of the reason/means of access, whether it be for rendering in > browser, or for feed or XML-RPC). > > Any suggestions, comments or advice would be great. Thank you, -- Joseph Scott joseph at josephscott.org http://josephscott.org/ From johnbillion+wp at gmail.com Sat Sep 5 06:34:40 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Sat, 5 Sep 2009 07:34:40 +0100 Subject: [wp-hackers] Can't use the same conditional tag twice? In-Reply-To: <58410e2e0909042015l5c9ca670q486b7a54ab8b4aa1@mail.gmail.com> References: <58410e2e0908261810o6c8f06ealc0de0ea40122833d@mail.gmail.com> <58410e2e0908301937sa6a2345ye07b91ec68b09dc2@mail.gmail.com> <58410e2e0908311743l117522cg44cb9fa13a87bbbd@mail.gmail.com> <58410e2e0909042015l5c9ca670q486b7a54ab8b4aa1@mail.gmail.com> Message-ID: <1fa535a70909042334v60f89363wf3c1fff44a5a6144@mail.gmail.com> I've written a small library for easy multiple loops which avoids exactly these kinds of problems. I'll clean it up and see if I can get it released next week. John 2009/9/5 Bryan Harley : > Thanks Jeremy, that explains it! > > > On Fri, Sep 4, 2009 at 9:11 AM, Jeremy Clarke wrote: > >> Bryan, >> >> query_posts() effectively says to WordPress "I know you THOUGHT you >> should load these XYZ posts (home page, category listing, single >> article, whatever), but actually what this page *IS* is something >> else, and i'll tell you what with query_posts()". When you use it you >> completely reset the page. >> >> So if you are on the homepage and you do a query_posts('cat=1'); then >> right before that line is_home() will be true but right after it will >> be false. After that is_cat() would return true instead. >> >> If you need extra queries you should just use the object instead: >> >> $myposts = new WP_Query('cat=1'); >> >> Then you just need a slightly modified loop: >> >> if ($myposts->have_posts() ) : while ($myposts->have_posts()) : >> $myposts->the_post() ; >> >> Until I figured that one out I was constantly having problems with >> conditional tags not doing what I expected. Clean up your extra >> queries and your life will be a lot simpler. >> >> -- >> Jeremy Clarke | http://jeremyclarke.org >> Code and Design | http://globalvoicesonline.org >> >> >> >> >> >> On Mon, Aug 31, 2009 at 8:43 PM, Bryan Harley >> wrote: >> > Yes, I'm using query_posts. >> > >> > On Mon, Aug 31, 2009 at 1:13 AM, Dion Hulse (dd32) > >wrote: >> > >> >> are you using query_posts()? >> >> >> >> query_posts overrides the current query, Its not the best way to go >> about >> >> what most people use it for. >> >> >> >> try adding wp_reset_query() iin your footer and see if that helps (for >> >> future reference) - Or call it after query_posts is finished. >> >> >> >> >> >> On Mon, 31 Aug 2009 12:37:00 +1000, Bryan Harley > > >> >> wrote: >> >> >> >> ?Peter/Jeremy, >> >>> >> >>> I'm using the following code in both my header and footer. >> >>> >> >>>
  • > >>> href="URLHERE">Welcome
  • >> >>> >> >>> Here's the CSS: >> >>> >> >>> li.current_page_item a{border-bottom: 3px solid #ec1c24;} >> >>> >> >>> But the border is only showing in the header, not the footer. ?To >> >>> correct this, I left my header code the same and changed the footer >> >>> code to: >> >>> >> >>>
  • Welcome
  • >> >>> >> >>> That solved the problem, but I don't understand why it just didn't >> >>> WORK in the first place. ?Which lead me to believe maybe you can only >> >>> use one conditional tag per page. >> >>> >> >>> -Bryan >> >>> >> >>> >> >>> On Thu, Aug 27, 2009 at 10:58 AM, Jeremy Clarke> > >> >>> wrote: >> >>> >> >>>> On Wed, Aug 26, 2009 at 9:10 PM, Bryan Harley >> >>>> wrote: >> >>>> >> >>>>> It seems to me that you can't use the same conditional tag on the >> same >> >>>>> page twice. ?Can anyone else confirm this. ?Why is this so? >> >>>>> >> >>>> >> >>>> In my experience this is definitely not the case. You probably have >> >>>> some kind of other issue with your template. Conditional tags would be >> >>>> practically useless if they were limited to once per page. >> >>>> >> >>>> >> >>>> -- >> >>>> Jeremy Clarke | http://jeremyclarke.org >> >>>> Code and Design | http://globalvoicesonline.org >> >>>> _______________________________________________ >> >>>> wp-hackers mailing list >> >>>> wp-hackers at lists.automattic.com >> >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>>> >> >>>> ?_______________________________________________ >> >>> wp-hackers mailing list >> >>> wp-hackers at lists.automattic.com >> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >>> >> >>> >> >> >> >> -- >> >> -- >> >> Dion Hulse >> >> e: contact at dd32.id.au >> >> w: http://dd32.id.au/ >> >> m: 04 6621 9112 (+614 6621 9112) >> >> WordPressQI: http://wordpressqi.com/ >> >> >> >> _______________________________________________ >> >> wp-hackers mailing list >> >> wp-hackers at lists.automattic.com >> >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> >> > _______________________________________________ >> > wp-hackers mailing list >> > wp-hackers at lists.automattic.com >> > http://lists.automattic.com/mailman/listinfo/wp-hackers >> > >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From harish.mlists at gmail.com Sat Sep 5 15:59:00 2009 From: harish.mlists at gmail.com (Harish Narayanan) Date: Sat, 05 Sep 2009 17:59:00 +0200 Subject: [wp-hackers] Strange errors with the link checker Message-ID: <4AA28AC4.9010005@gmail.com> By default, WordPress generates something like the following URI to reply to specific comments: http://foo.org/blog/post/?replytocom=123456#respond When I pass a page with comments through the W3C link checker, I see errors like the following for each comment: Some of the links to this resource point to broken URI fragments (such as index.html#fragment). 1. Does anyone see why this happens? There is a
    on the default page. 2. Is the #respond part of the replytocom link necessary? Thanks, Harish From alan at verselogic.net Sat Sep 5 19:53:00 2009 From: alan at verselogic.net (Alan Castonguay) Date: Sat, 5 Sep 2009 15:53:00 -0400 Subject: [wp-hackers] Strange errors with the link checker In-Reply-To: <4AA28AC4.9010005@gmail.com> References: <4AA28AC4.9010005@gmail.com> Message-ID: <879AFB9A-AB93-4B5D-81D6-251FE91AD275@verselogic.net> Browsers seem to honor a name= fragments and whatever id= the same way. I don't think the w3 checker likes the latter. The fragment is only to scroll down the page to the comment box, and that behavior is not strictly required. Alan J Castonguay Sent from my iPhone On Sep 5, 2009, at 11:59 AM, Harish Narayanan wrote: > By default, WordPress generates something like the following URI to > reply to specific comments: > > http://foo.org/blog/post/?replytocom=123456#respond > > When I pass a page with comments through the W3C link checker, I see > errors like the following for each comment: > > Some of the links to this resource point to broken URI fragments (such > as index.html#fragment). > > > 1. Does anyone see why this happens? There is a
    on > the default page. > 2. Is the #respond part of the replytocom link necessary? > > Thanks, > Harish > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From johnbillion+wp at gmail.com Sat Sep 5 20:30:50 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Sat, 5 Sep 2009 21:30:50 +0100 Subject: [wp-hackers] Strange errors with the link checker In-Reply-To: <879AFB9A-AB93-4B5D-81D6-251FE91AD275@verselogic.net> References: <4AA28AC4.9010005@gmail.com> <879AFB9A-AB93-4B5D-81D6-251FE91AD275@verselogic.net> Message-ID: <1fa535a70909051330s6a3ab672rb80ea6a82a401005@mail.gmail.com> I'd say that providing the user with the convenience of having the page scroll down is better than your page being 100% W3C valid. 2009/9/5 Alan Castonguay : > Browsers seem to honor a name= fragments and whatever id= the same way. I > don't think the w3 checker likes the latter. The fragment is only to scroll > down the page to the comment box, and that behavior is not strictly > required. > > Alan J Castonguay > > Sent from my iPhone > > On Sep 5, 2009, at 11:59 AM, Harish Narayanan > wrote: > >> By default, WordPress generates something like the following URI to >> reply to specific comments: >> >> http://foo.org/blog/post/?replytocom=123456#respond >> >> When I pass a page with comments through the W3C link checker, I see >> errors like the following for each comment: >> >> Some of the links to this resource point to broken URI fragments (such >> as index.html#fragment). >> >> >> 1. Does anyone see why this happens? There is a
    on >> the default page. >> 2. Is the #respond part of the replytocom link necessary? >> >> Thanks, >> Harish >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From sojweb at indiana.edu Sat Sep 5 20:47:00 2009 From: sojweb at indiana.edu (SoJ Web) Date: Sat, 5 Sep 2009 16:47:00 -0400 Subject: [wp-hackers] Strange errors with the link checker In-Reply-To: <1fa535a70909051330s6a3ab672rb80ea6a82a401005@mail.gmail.com> References: <4AA28AC4.9010005@gmail.com> <879AFB9A-AB93-4B5D-81D6-251FE91AD275@verselogic.net> <1fa535a70909051330s6a3ab672rb80ea6a82a401005@mail.gmail.com> Message-ID: <14D39749-5234-403B-8050-84677298FEF5@indiana.edu> That's a valid use. See: http://www.w3.org/TR/html401/struct/links.html#h-12.2.3 http://www.w3.org/TR/xhtml-media-types/#C_8 It is supposed to be case-sensitive... maybe there's mismatch in case between fragment identifier and ID that the browser ignores, but the validator catches? Or maybe the validator itself has a bug. Either way, it's valid. -Jeff On Sep 5, 2009, at 4:30 PM, John Blackbourn wrote: > I'd say that providing the user with the convenience of having the > page scroll down is better than your page being 100% W3C valid. > > 2009/9/5 Alan Castonguay : >> Browsers seem to honor a name= fragments and whatever id= the same >> way. I >> don't think the w3 checker likes the latter. The fragment is only >> to scroll >> down the page to the comment box, and that behavior is not strictly >> required. >> >> Alan J Castonguay >> >> Sent from my iPhone >> >> On Sep 5, 2009, at 11:59 AM, Harish Narayanan > > >> wrote: >> >>> By default, WordPress generates something like the following URI to >>> reply to specific comments: >>> >>> http://foo.org/blog/post/?replytocom=123456#respond >>> >>> When I pass a page with comments through the W3C link checker, I see >>> errors like the following for each comment: >>> >>> Some of the links to this resource point to broken URI fragments >>> (such >>> as index.html#fragment). >>> >>> >>> 1. Does anyone see why this happens? There is a
    >>> on >>> the default page. >>> 2. Is the #respond part of the replytocom link necessary? >>> >>> Thanks, >>> Harish >>> _______________________________________________ >>> wp-hackers mailing list >>> wp-hackers at lists.automattic.com >>> http://lists.automattic.com/mailman/listinfo/wp-hackers >> >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From steve at sltaylor.co.uk Sun Sep 6 01:43:57 2009 From: steve at sltaylor.co.uk (Steve Taylor) Date: Sun, 6 Sep 2009 02:43:57 +0100 Subject: [wp-hackers] cron overload - help! Message-ID: I experimented with wp_schedule_event() on a site a short while ago, without luck. I found another solution, but recently I noticed that my Media Temple GPU usage has flagged the wp-cron.php on that site as taking up about 25% of the total processing time for all my sites. I used http://wordpress.org/extend/plugins/cron-view/, and sure enough, my experiment has inadvertantly left a HUGE number of scheduled events for that hook. When I try to run wp_clear_scheduled_hook( 'my_hook' ), the page doesn't seem to load. The site's running OK, but I really need a way of clearing all these events out. I'm not sure if wp_unschedule_event() is viable - and I've heard that wp_clear_scheduled_hook() is just a wrapper for this anyway. Thanks for any tips... From johnbillion+wp at gmail.com Sun Sep 6 02:01:21 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Sun, 6 Sep 2009 03:01:21 +0100 Subject: [wp-hackers] cron overload - help! In-Reply-To: References: Message-ID: <1fa535a70909051901l6649ecd8h5987f56655ab92e5@mail.gmail.com> Are you passing an $args parameter with wp_clear_scheduled_hook()? There's an outstanding bug that means hooks with parameters aren't cleared with wp_clear_scheduled_hook(). See http://core.trac.wordpress.org/ticket/10468 . 2009/9/6 Steve Taylor : > I experimented with wp_schedule_event() on a site a short while ago, > without luck. I found another solution, but recently I noticed that my > Media Temple GPU usage has flagged the wp-cron.php on that site as > taking up about 25% of the total processing time for all my sites. > > I used http://wordpress.org/extend/plugins/cron-view/, and sure > enough, my experiment has inadvertantly left a HUGE number of > scheduled events for that hook. > > When I try to run wp_clear_scheduled_hook( 'my_hook' ), the page > doesn't seem to load. The site's running OK, but I really need a way > of clearing all these events out. I'm not sure if > wp_unschedule_event() is viable - and I've heard that > wp_clear_scheduled_hook() is just a wrapper for this anyway. > > Thanks for any tips... > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From steve at sltaylor.co.uk Sun Sep 6 02:09:36 2009 From: steve at sltaylor.co.uk (Steve Taylor) Date: Sun, 6 Sep 2009 03:09:36 +0100 Subject: [wp-hackers] cron overload - help! In-Reply-To: <1fa535a70909051901l6649ecd8h5987f56655ab92e5@mail.gmail.com> References: <1fa535a70909051901l6649ecd8h5987f56655ab92e5@mail.gmail.com> Message-ID: My hook never took a parameter. Do I need to pass an empty $args array or something? 2009/9/6 John Blackbourn : > Are you passing an $args parameter with wp_clear_scheduled_hook()? > There's an outstanding bug that means hooks with parameters aren't > cleared with wp_clear_scheduled_hook(). See > http://core.trac.wordpress.org/ticket/10468 . > > 2009/9/6 Steve Taylor : >> I experimented with wp_schedule_event() on a site a short while ago, >> without luck. I found another solution, but recently I noticed that my >> Media Temple GPU usage has flagged the wp-cron.php on that site as >> taking up about 25% of the total processing time for all my sites. >> >> I used http://wordpress.org/extend/plugins/cron-view/, and sure >> enough, my experiment has inadvertantly left a HUGE number of >> scheduled events for that hook. >> >> When I try to run wp_clear_scheduled_hook( 'my_hook' ), the page >> doesn't seem to load. The site's running OK, but I really need a way >> of clearing all these events out. I'm not sure if >> wp_unschedule_event() is viable - and I've heard that >> wp_clear_scheduled_hook() is just a wrapper for this anyway. >> >> Thanks for any tips... >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From johnbillion+wp at gmail.com Sun Sep 6 02:29:06 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Sun, 6 Sep 2009 03:29:06 +0100 Subject: [wp-hackers] cron overload - help! In-Reply-To: References: <1fa535a70909051901l6649ecd8h5987f56655ab92e5@mail.gmail.com> Message-ID: <1fa535a70909051929r426d514vef02a8a9f1374b58@mail.gmail.com> You shouldn't have to, no. It looks like you've got so many events scheduled for that hook that wp_clear_scheduled_hook() can't handle it and that's why your page isn't loading. If you really have got a giant number of events scheduled then your only option might be to clear the 'cron' row from the wp_options table in the database. 2009/9/6 Steve Taylor : > My hook never took a parameter. Do I need to pass an empty $args array > or something? > > > 2009/9/6 John Blackbourn : >> Are you passing an $args parameter with wp_clear_scheduled_hook()? >> There's an outstanding bug that means hooks with parameters aren't >> cleared with wp_clear_scheduled_hook(). See >> http://core.trac.wordpress.org/ticket/10468 . >> >> 2009/9/6 Steve Taylor : >>> I experimented with wp_schedule_event() on a site a short while ago, >>> without luck. I found another solution, but recently I noticed that my >>> Media Temple GPU usage has flagged the wp-cron.php on that site as >>> taking up about 25% of the total processing time for all my sites. >>> >>> I used http://wordpress.org/extend/plugins/cron-view/, and sure >>> enough, my experiment has inadvertantly left a HUGE number of >>> scheduled events for that hook. >>> >>> When I try to run wp_clear_scheduled_hook( 'my_hook' ), the page >>> doesn't seem to load. The site's running OK, but I really need a way >>> of clearing all these events out. I'm not sure if >>> wp_unschedule_event() is viable - and I've heard that >>> wp_clear_scheduled_hook() is just a wrapper for this anyway. >>> >>> Thanks for any tips... >>> _______________________________________________ >>> wp-hackers mailing list >>> wp-hackers at lists.automattic.com >>> http://lists.automattic.com/mailman/listinfo/wp-hackers >>> >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From casey.bisson at gmail.com Sun Sep 6 02:29:56 2009 From: casey.bisson at gmail.com (Casey Bisson) Date: Sat, 5 Sep 2009 22:29:56 -0400 Subject: [wp-hackers] cron overload - help! In-Reply-To: References: Message-ID: Assuming you're not worried about other scheduled tasks[1], you can simply delete the row in your wp_options table with the meta_key = cron. --Casey http://MaisonBisson.com On Sep 5, 2009, at 9:43 PM, Steve Taylor wrote: > I experimented with wp_schedule_event() on a site a short while ago, > without luck. I found another solution, but recently I noticed that my > Media Temple GPU usage has flagged the wp-cron.php on that site as > taking up about 25% of the total processing time for all my sites. > > I used http://wordpress.org/extend/plugins/cron-view/, and sure > enough, my experiment has inadvertantly left a HUGE number of > scheduled events for that hook. > > When I try to run wp_clear_scheduled_hook( 'my_hook' ), the page > doesn't seem to load. The site's running OK, but I really need a way > of clearing all these events out. I'm not sure if > wp_unschedule_event() is viable - and I've heard that > wp_clear_scheduled_hook() is just a wrapper for this anyway. > > Thanks for any tips... > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From steve at sltaylor.co.uk Sun Sep 6 09:59:21 2009 From: steve at sltaylor.co.uk (Steve Taylor) Date: Sun, 6 Sep 2009 10:59:21 +0100 Subject: [wp-hackers] cron overload - help! In-Reply-To: References: Message-ID: Thanks, that's what it needed! The default tasks popped back in fine. 2009/9/6 Casey Bisson : > > Assuming you're not worried about other scheduled tasks[1], you can simply > delete the row in your wp_options table with the meta_key = cron. > > --Casey > > http://MaisonBisson.com > > On Sep 5, 2009, at 9:43 PM, Steve Taylor wrote: > >> I experimented with wp_schedule_event() on a site a short while ago, >> without luck. I found another solution, but recently I noticed that my >> Media Temple GPU usage has flagged the wp-cron.php on that site as >> taking up about 25% of the total processing time for all my sites. >> >> I used http://wordpress.org/extend/plugins/cron-view/, and sure >> enough, my experiment has inadvertantly left a HUGE number of >> scheduled events for that hook. >> >> When I try to run wp_clear_scheduled_hook( 'my_hook' ), the page >> doesn't seem to load. The site's running OK, but I really need a way >> of clearing all these events out. I'm not sure if >> wp_unschedule_event() is viable - and I've heard that >> wp_clear_scheduled_hook() is just a wrapper for this anyway. >> >> Thanks for any tips... >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From hal at burgiss.net Sun Sep 6 14:19:10 2009 From: hal at burgiss.net (Hal Burgiss) Date: Sun, 6 Sep 2009 10:19:10 -0400 Subject: [wp-hackers] Security Message-ID: <20090906141910.GD24777@honey.burgiss.net> Hello, This probably is not the right list for this question, but its the best place I can find to ask it at the moment. I see on slashdot today an announcement of a new worm effecting most previous versions of Wordpress. I maintain many Wordpress sites, most of which will be potentially impacted. Most of these will not be easy upgrade candidates for a variety of reasons. I am left to attempt to secure them without an easy upgrade path. Now I just spent maybe 45 minutes trying to find out the technical details of how this worm worms its way into WP so I can find an alternative solution (hopefully). Well, I still don't know how it does what it does. I haven't a clue. The only thing I find on wordress.org describes the situation in a general way, and the only provided solution is to upgrade. Most of the sites I manage have strict .htaccess rules protecting wp-login and wp-admin. Am I safe in these situations, I wonder? Maybe. Maybe not. So I look to the wp.org security blog in hopes of details. I find 9 total posts over a 4 year period. Not particularly inspiring. Obviously, the level of detail I am looking for does not exist on wordpress.org. Or does it? Is there a better place, a mailing list somewhere? RSS feed? Another blog? I love a lot of things about Wordpress, but an easy/fast way to get detailed security information, at least more than "upgrade now", seems overly difficult. Thx. -- Hal From scribu at gmail.com Sun Sep 6 14:36:14 2009 From: scribu at gmail.com (scribu) Date: Sun, 6 Sep 2009 17:36:14 +0300 Subject: [wp-hackers] Security In-Reply-To: <20090906141910.GD24777@honey.burgiss.net> References: <20090906141910.GD24777@honey.burgiss.net> Message-ID: <349fe48b0909060736j5467cc7bmce5916c9378ea73@mail.gmail.com> It seems obvious why you wouldn't get critical details for an unfixed vulnerabillity like this. If there was a security patch available, you would get that, instead of "Upgrade now". -- http://scribu.net From hal at burgiss.net Sun Sep 6 14:53:12 2009 From: hal at burgiss.net (Hal Burgiss) Date: Sun, 6 Sep 2009 10:53:12 -0400 Subject: [wp-hackers] Security In-Reply-To: <349fe48b0909060736j5467cc7bmce5916c9378ea73@mail.gmail.com> References: <20090906141910.GD24777@honey.burgiss.net> <349fe48b0909060736j5467cc7bmce5916c9378ea73@mail.gmail.com> Message-ID: <20090906145312.GE24777@honey.burgiss.net> On Sun, Sep 06, 2009 at 05:36:14PM +0300, scribu wrote: > It seems obvious why you wouldn't get critical details for an unfixed > vulnerabillity like this. > > If there was a security patch available, you would get that, instead of > "Upgrade now". I never asked for, or expected a patch. What I am looking for, is details. If no one knows how this thing works, that level of detail will have to suffice. If they do know, then that information would be really useful. "Upgrade now" is not helpful (to me, at least in some situations). And I don't expect people on this list to have the answers handy, but thought someone here might be able to point me in the right direction. Do you write the wp.org security blog by any chance? -- Hal From kparsell-wp at kpdesign.net Sun Sep 6 15:07:44 2009 From: kparsell-wp at kpdesign.net (Kim Parsell) Date: Sun, 06 Sep 2009 11:07:44 -0400 Subject: [wp-hackers] Security In-Reply-To: <20090906145312.GE24777@honey.burgiss.net> References: <20090906141910.GD24777@honey.burgiss.net> <349fe48b0909060736j5467cc7bmce5916c9378ea73@mail.gmail.com> <20090906145312.GE24777@honey.burgiss.net> Message-ID: <4AA3D040.8090602@kpdesign.net> Read this post from Matt Mullenweg on the wordpress.org blog about the worm - 2nd paragraph tells you how it works: http://wordpress.org/development/2009/09/keep-wordpress-secure/ Kim --------------------------------- Hal Burgiss wrote: > On Sun, Sep 06, 2009 at 05:36:14PM +0300, scribu wrote: > >> It seems obvious why you wouldn't get critical details for an unfixed >> vulnerabillity like this. >> >> If there was a security patch available, you would get that, instead of >> "Upgrade now". >> > > I never asked for, or expected a patch. What I am looking for, is details. If > no one knows how this thing works, that level of detail will have to suffice. > If they do know, then that information would be really useful. "Upgrade now" > is not helpful (to me, at least in some situations). And I don't expect people > on this list to have the answers handy, but thought someone here might be > able to point me in the right direction. > > Do you write the wp.org security blog by any chance? > > From info at toscho.de Sun Sep 6 15:48:24 2009 From: info at toscho.de (Thomas Scholz) Date: Sun, 06 Sep 2009 17:48:24 +0200 Subject: [wp-hackers] Security In-Reply-To: <349fe48b0909060736j5467cc7bmce5916c9378ea73@mail.gmail.com> References: <20090906141910.GD24777@honey.burgiss.net> <349fe48b0909060736j5467cc7bmce5916c9378ea73@mail.gmail.com> Message-ID: scribu: > It seems obvious why you wouldn't get critical details for an unfixed > vulnerabillity like this. This bug was fixed in v2.8.3, and the new code of this version gives all the details anyone wants to know. Nothing to hide anymore. > If there was a security patch available, you would get that, instead of > "Upgrade now". The main problem was: Registered users without any privileges could just add double slashes (//) into an URL to get some admin privileges (install plugins, mess up the database etc.). So you have to forbid double slashes in all URLs. The .htaccess way would be: RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]+\ /(([^/\ ]+/)*)/+([^\ ]*) RewriteRule ^ /%1%3 [L,R=301] But if you have neither Apache nor mod_rewrite, you may use a little plugin I wrote: http://f.toscho.de/SingleSlash.zip I described the problem en detail (and in German) here: http://toscho.de/2009/wordpress-2-8-3-das-doppelslash-problem/ Be aware! This fixes really just the double slashes. I can?t and won?t guarantee that you?re secure with it. Make the upgrades nevertheless. Thomas -- Redaktion, Druck- und Webdesign http://toscho.de ? 0160/1764727 Twitter: @toscho From hal at burgiss.net Mon Sep 7 13:05:18 2009 From: hal at burgiss.net (Hal Burgiss) Date: Mon, 7 Sep 2009 09:05:18 -0400 Subject: [wp-hackers] Security In-Reply-To: References: <20090906141910.GD24777@honey.burgiss.net> <349fe48b0909060736j5467cc7bmce5916c9378ea73@mail.gmail.com> Message-ID: <20090907130518.GA6541@honey.burgiss.net> On Sun, Sep 06, 2009 at 05:48:24PM +0200, Thomas Scholz wrote: > The main problem was: Registered users without any privileges could just > add double slashes (//) into an URL to get some admin privileges (install > plugins, mess up the database etc.). > > So you have to forbid double slashes in all URLs. The .htaccess way would > be: > > RewriteEngine On > RewriteBase / > RewriteCond %{THE_REQUEST} ^[A-Z]+\ /(([^/\ ]+/)*)/+([^\ ]*) > RewriteRule ^ /%1%3 [L,R=301] Thanks Thomas! Very helpful. -- Hal From brentswordpresslists at gmail.com Mon Sep 7 16:34:09 2009 From: brentswordpresslists at gmail.com (Brent Shepherd) Date: Mon, 7 Sep 2009 18:34:09 +0200 Subject: [wp-hackers] cron overload - help! In-Reply-To: <1fa535a70909051901l6649ecd8h5987f56655ab92e5@mail.gmail.com> References: <1fa535a70909051901l6649ecd8h5987f56655ab92e5@mail.gmail.com> Message-ID: John, thanks so much for pasting the link to this ticket! I lost a good few hours the other night trying to figure out why when i used an $args array with multiple values, only the first value was being passed to functions hooked onto the wp-cron event. On Sun, Sep 6, 2009 at 4:01 AM, John Blackbourn > wrote: > Are you passing an $args parameter with wp_clear_scheduled_hook()? > There's an outstanding bug that means hooks with parameters aren't > cleared with wp_clear_scheduled_hook(). See > http://core.trac.wordpress.org/ticket/10468 . > > 2009/9/6 Steve Taylor : > > I experimented with wp_schedule_event() on a site a short while ago, > > without luck. I found another solution, but recently I noticed that my > > Media Temple GPU usage has flagged the wp-cron.php on that site as > > taking up about 25% of the total processing time for all my sites. > > > > I used http://wordpress.org/extend/plugins/cron-view/, and sure > > enough, my experiment has inadvertantly left a HUGE number of > > scheduled events for that hook. > > > > When I try to run wp_clear_scheduled_hook( 'my_hook' ), the page > > doesn't seem to load. The site's running OK, but I really need a way > > of clearing all these events out. I'm not sure if > > wp_unschedule_event() is viable - and I've heard that > > wp_clear_scheduled_hook() is just a wrapper for this anyway. > > > > Thanks for any tips... > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From steagl4ml at gmail.com Mon Sep 7 18:25:45 2009 From: steagl4ml at gmail.com (Stefano Aglietti) Date: Mon, 07 Sep 2009 20:25:45 +0200 Subject: [wp-hackers] Force login Message-ID: <7pjaa5h6bd8lq7tf6fca63s1fb22o2tg5k@4ax.com> I wanna force WP login fron another DB, i use the externa DB authentication plugin and this works smootly, but i wanna d one more step, the blog header is coming from another system and there i get the info if the user is logged to the other system, if so i wanna foce the login letting the extern DB auth plugin check if the the user exist in WP DB or copyng it locally. This works if users log using WP login screen, i tried to use wp_authentication command with login e password for externa authentication btut looks like it doens't works. Any idea how to foce login to WP passing loginn and password (and letting the plugin intercep wp_authentication function that it plug with tit's function) in a simple way? -- Stefano Aglietti - StallonIt on IRCnet - ICQ#: 2078431 Email: steve at 40annibuttati.it steagl at people.it Sites: http://www.40annibuttati.it (personal blog) http://www.wordpress-it.it (WordPress Italia) From supporto at pixline.net Tue Sep 8 16:15:28 2009 From: supporto at pixline.net (=?WINDOWS-1252?Q?Pixline_=9B_Paolo_Tresso?=) Date: Tue, 8 Sep 2009 18:15:28 +0200 Subject: [wp-hackers] Force login In-Reply-To: <7pjaa5h6bd8lq7tf6fca63s1fb22o2tg5k@4ax.com> References: <7pjaa5h6bd8lq7tf6fca63s1fb22o2tg5k@4ax.com> Message-ID: <5142A84C-BE38-4CD2-8C11-8348FCC3D17E@pixline.net> wp-includes/pluggable.php should answer to it all. overwrite some of that function with yours, and deal with your master auth system. bye Paolo / pixline Il giorno 07/set/09, alle ore 20:25, Stefano Aglietti ha scritto: > [...] Any idea how to foce login to WP passing loginn and password > (and > letting the plugin intercep wp_authentication function that it plug > with tit's function) in a simple way? From dougal at gunters.org Tue Sep 8 20:03:36 2009 From: dougal at gunters.org (Dougal Campbell) Date: Tue, 08 Sep 2009 16:03:36 -0400 Subject: [wp-hackers] Making Updates Friendlier? Message-ID: <4AA6B898.6030309@gunters.org> In the aftermath of the recent WP worm, there has been the usual raft of FUD flying about. I won't bother pointing out any particular sources -- suffice to say that some of the recent posts about "WordPress Security" were reasonable, and many were not. It seems like every time there is some sort of security issue related to WordPress, regardless of the scope, it becomes a PR nightmare of sorts. Primarily, I think that it goes hand-in-hand with the popularity of WordPress: we are popular, therefore we are a high-profile target, and therefore when something goes wrong, it affects a lot of users, and therefore it gets a lot of attention. It's the nature of celebrity. As has been pointed out time and time again, WordPress is easier than ever to keep updated. When a new version is released, a nag appears in the Dashboard. From there, it's just a couple of clicks to upgrade. And yet, people *still* lag behind. The reasons are varied, and _mostly_ invalid (depending on your perspective). Some of it is simply "fear of breaking something". Some of it is just simple stubbornness ("I just upgraded, I don't want to do it again so soon!"). Some of it might be ignorance and laziness (they see the nag, but don't look at the WordPress News blocks in the Dashboard, or go to the main site to read about it). So, what more can we do? Not a *whole* lot, but I do have a suggestion: In order to express the relative urgency of upgrade notices, I propose that we categorize upgrades into four priority levels: 1. Minor Bugfixes 2. Major Bugfixes 3. New Feature Release 4. Security Update Each version release could be tagged accordingly, along with a brief description of the changes and/or impact. These priority levels could be used to style the update nag messages, and provide a sense of their relative importance (e.g. 1 = yellow, 2 = orange, 3 = green, 4 = REDOMGWTFBBQ). For bugfix releases, a brief, friendly message can be presented along the lines of "To find out if these issues might affect your site, visit [URL] for more details." This information could be stored on the wordpress.org side, with a simple API update in the current version check functions. Other notes: for a long time, people have requested the presentation of "patch releases" which only contain files which changed, rather than a full reinstall package. Personally, I don't mind the extra safety given by a full update, because it ensures that if any of my local files were modified without my knowledge, those changes would get overwritten. But then again, I update my site from the current svn branch nightly anyways. I did see one comment over on WP Tavern which mentioned a pretty valid problem with updates[1]: In some corporate environments, all changes have to go through a multi-stage vetting process before being pushed out to production. Changes are put through testing/QA, and often maintained in a local source control system. Large-scale changes are *much* harder to push through such a system than small ones. It would be easy to point fingers and just say "your process is broken", but that isn't helpful. Providing an official "changes only" patchset *would* be helpful to such users, because the code which needed review would be more isolated. (Yes, they could go to Trac to see changes. Yes they should be able to diff against their local source control system. Yes, yes, yes. But I'm simplifying, and remember (to paraphrase) - individuals are smart, groups are dumb). On a tangential note, a lot of people complain that occassionally WordPress upgrades "break plugins". I've pointed out before that typically, this is because the plugin author has taken a shortcut somewhere, and is mucking around with WP internals, instead of using an established API function which insulates them from changes in the guts of WP. But it's hard to get end-users to see it that way. From their perspective, it's simple: the plugin worked before the upgrade, and it was broken after. Therefore, the WP upgrade "broke" the plugin. You'll probably never convince them to look at it any other way. But I have to wonder if we can't try...something. I'm not sure what. But since this seems to be a large source of the FUD concerning upgrades, it certainly seems worth discussing it and kicking around some ideas on how to address it. [1] http://www.wptavern.com/security-this-security-that#comment-3613 -- Dougal Campbell http://dougal.gunters.org/ http://twitter.com/dougal http://twitual.com/ From tim at silentgap.com Tue Sep 8 20:31:52 2009 From: tim at silentgap.com (Tim Schoffelman) Date: Tue, 8 Sep 2009 15:31:52 -0500 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: <4AA6B898.6030309@gunters.org> References: <4AA6B898.6030309@gunters.org> Message-ID: <5b1aecc0909081331o202f5e03l96bd5c16a5800a04@mail.gmail.com> I like the idea of color coding the upgrading nag & I would also have to second Dougal's paragraph on cooperate environments, of which we're running to a scenario that's pretty close to the one he listed - having something that would smooth the process out a little more than looking at Trac or looking at the diff between files/folders would be nice (still thinking about what a good solution would be though). ~tim On Tue, Sep 8, 2009 at 3:03 PM, Dougal Campbell wrote: > In the aftermath of the recent WP worm, there has been the usual raft of > FUD flying about. I won't bother pointing out any particular sources -- > suffice to say that some of the recent posts about "WordPress Security" were > reasonable, and many were not. It seems like every time there is some sort > of security issue related to WordPress, regardless of the scope, it becomes > a PR nightmare of sorts. Primarily, I think that it goes hand-in-hand with > the popularity of WordPress: we are popular, therefore we are a high-profile > target, and therefore when something goes wrong, it affects a lot of users, > and therefore it gets a lot of attention. It's the nature of celebrity. > > As has been pointed out time and time again, WordPress is easier than ever > to keep updated. When a new version is released, a nag appears in the > Dashboard. From there, it's just a couple of clicks to upgrade. And yet, > people *still* lag behind. The reasons are varied, and _mostly_ invalid > (depending on your perspective). Some of it is simply "fear of breaking > something". Some of it is just simple stubbornness ("I just upgraded, I > don't want to do it again so soon!"). Some of it might be ignorance and > laziness (they see the nag, but don't look at the WordPress News blocks in > the Dashboard, or go to the main site to read about it). > > So, what more can we do? Not a *whole* lot, but I do have a suggestion: > > In order to express the relative urgency of upgrade notices, I propose that > we categorize upgrades into four priority levels: > > 1. Minor Bugfixes > 2. Major Bugfixes > 3. New Feature Release > 4. Security Update > > Each version release could be tagged accordingly, along with a brief > description of the changes and/or impact. These priority levels could be > used to style the update nag messages, and provide a sense of their relative > importance (e.g. 1 = yellow, 2 = orange, 3 = green, 4 = REDOMGWTFBBQ). For > bugfix releases, a brief, friendly message can be presented along the lines > of "To find out if these issues might affect your site, visit [URL] for more > details." > > This information could be stored on the wordpress.org side, with a simple > API update in the current version check functions. > > Other notes: for a long time, people have requested the presentation of > "patch releases" which only contain files which changed, rather than a full > reinstall package. Personally, I don't mind the extra safety given by a full > update, because it ensures that if any of my local files were modified > without my knowledge, those changes would get overwritten. But then again, I > update my site from the current svn branch nightly anyways. > > I did see one comment over on WP Tavern which mentioned a pretty valid > problem with updates[1]: In some corporate environments, all changes have to > go through a multi-stage vetting process before being pushed out to > production. Changes are put through testing/QA, and often maintained in a > local source control system. Large-scale changes are *much* harder to push > through such a system than small ones. It would be easy to point fingers and > just say "your process is broken", but that isn't helpful. Providing an > official "changes only" patchset *would* be helpful to such users, because > the code which needed review would be more isolated. (Yes, they could go to > Trac to see changes. Yes they should be able to diff against their local > source control system. Yes, yes, yes. But I'm simplifying, and remember (to > paraphrase) - individuals are smart, groups are dumb). > > On a tangential note, a lot of people complain that occassionally WordPress > upgrades "break plugins". I've pointed out before that typically, this is > because the plugin author has taken a shortcut somewhere, and is mucking > around with WP internals, instead of using an established API function which > insulates them from changes in the guts of WP. But it's hard to get > end-users to see it that way. From their perspective, it's simple: the > plugin worked before the upgrade, and it was broken after. Therefore, the WP > upgrade "broke" the plugin. You'll probably never convince them to look at > it any other way. But I have to wonder if we can't try...something. I'm not > sure what. But since this seems to be a large source of the FUD concerning > upgrades, it certainly seems worth discussing it and kicking around some > ideas on how to address it. > > > [1] http://www.wptavern.com/security-this-security-that#comment-3613 > > -- > Dougal Campbell > http://dougal.gunters.org/ > http://twitter.com/dougal > http://twitual.com/ > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From lists at mediachrome.com Tue Sep 8 21:07:46 2009 From: lists at mediachrome.com (James Bisset) Date: Tue, 8 Sep 2009 22:07:46 +0100 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: <4AA6B898.6030309@gunters.org> References: <4AA6B898.6030309@gunters.org> Message-ID: <67B783D9-3565-4C31-A9A0-AFA3EF97DDF1@mediachrome.com> All my Wordpress installs now use this directory structure: /index.php /cms/wordpress/ /cms/wp-config.php /cms/wp-content/ This makes updates and backups on shared hosting a doddle, including systems with no SSH access, no CP, or reduced PHP privileges blocking auto-updates. But I can guarantee that I'll have at least two plugins in each install which have had to be hacked to understand the 'unconventional' directory structure, although it is legitimate and supported by Wordpress. So I update Wordpress core, but now I need to update the plugins. Do I need to hack the plugins all over again? Which ones did I hack? How many lines did I change?* What's different in the new plugin? And some plugins will have a style dir or other custom content inside the plugin dir, and suddenly my pain free upgrade for multiple sites isn't looking so straightforward. So, for me, good documentation for plugin developers on how to address wp-content and wp-config.php - wherever they are - including sample code or drop-in function is essential. You wouldn't believe the variety of startling solutions folks are coming up with in its absence. Oh, and some strongly worded advice about the benefits of storing custom plugin data outside the plugin dir too. *Yes, I realise I ought to keep changelogs of my own for every site - I'm trying. On 8 Sep 2009, at 21:03, Dougal Campbell wrote: > > > On a tangential note, a lot of people complain that occassionally > WordPress upgrades "break plugins". I've pointed out before that > typically, this is because the plugin author has taken a shortcut > somewhere, and is mucking around with WP internals, instead of using > an established API function which insulates them from changes in the > guts of WP. But it's hard to get end-users to see it that way. From > their perspective, it's simple: the plugin worked before the > upgrade, and it was broken after. Therefore, the WP upgrade "broke" > the plugin. You'll probably never convince them to look at it any > other way. But I have to wonder if we can't try...something. I'm not > sure what. But since this seems to be a large source of the FUD > concerning upgrades, it certainly seems worth discussing it and > kicking around some ideas on how to address it. > > > [1] http://www.wptavern.com/security-this-security-that#comment-3613 > > -- > Dougal Campbell > http://dougal.gunters.org/ > http://twitter.com/dougal > http://twitual.com/ > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From skeltoac at gmail.com Tue Sep 8 21:24:21 2009 From: skeltoac at gmail.com (Andy Skelton) Date: Tue, 8 Sep 2009 16:24:21 -0500 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: <4AA6B898.6030309@gunters.org> References: <4AA6B898.6030309@gunters.org> Message-ID: On Tue, Sep 8, 2009 at 3:03 PM, Dougal Campbell wrote: > From their perspective, it's simple: the > plugin worked before the upgrade, and it was broken after. Therefore, the WP > upgrade "broke" the plugin. You'll probably never convince them to look at > it any other way. But I have to wonder if we can't try...something. I'm not > sure what. But since this seems to be a large source of the FUD concerning > upgrades, it certainly seems worth discussing it and kicking around some > ideas on how to address it. I had a thought. The only way to save the user from himself--short of educating him--is to automate. Automating a safe upgrade begins with knowing how to do it manually. Before upgrading a site you must see that it works as-is. Then you must upgrade the site (preferably a copy) and see whether it works. The baseline for what's working is whatever passes your test. Or a test suite. Uh oh, unit tests. So if you are to really fix the problem of broken-after-upgrade you must have tests to run and compare before and after, a copy of the site, and something smart to do when a test fails. Code not covered by tests (plugins and themes) would be troublesome but not fatal; process of elimination is valid intelligence gathering. Tests for plugins and themes should be supplied by their authors, which is a cultural shift that will meet resistance proportional to the size of the Extend repositories. The size of the WordPress repository is also daunting but it needn't all have test cases from the start. It could be begun with just one simple test case and grow from there: does index.php produce 200 OK...? The other way would be to toss the old plugin and theme systems and write new ones that encapsulated non-core code and enforced nice play. That would be great for the ivory tower set but not so much for folks entrenched like most of us are. Andy From ravi-lists at g8o.net Tue Sep 8 21:28:36 2009 From: ravi-lists at g8o.net ( ravi ) Date: Tue, 8 Sep 2009 17:28:36 -0400 Subject: [wp-hackers] shortcodes, BR tags and feed/XML-RPC interfaces In-Reply-To: References: Message-ID: On Sep 4, 2009, at 11:40 PM, Joseph Scott wrote: > I would say that the feed should contain the expanded HTML of the > short code and not the raw short code itself. For XML-RPC though the > raw short code should be returned, not the expanded HTML. > My bad. The behaviour is indeed as above, on second look i.e., feed has shortcodes expanded and XML-RPC does not. Which I agree is the way it should be. Back to my other two issues: a) Why a
    tag at the end of lines within the shortcode? Is this wpautop() doing this? Is that a bug? b) Any suggestions on how I might be able to retain the shortcode in the text (in the DB, so that the shortcode content can be edited later) but have it expanded in the XML-RPC interface? I suppose I would need to use actions in a plug-in (not my theme) to accomplish this, if at all. Any pointers on the actions/filters I should be looking at? Thank you, --ravi > On Fri, Sep 4, 2009 at 9:27 AM, // ravi wrote: >> Also, one shortcoming of my quick and dirty trick seems to be that >> though my >> splendid FancyBox gallery is rendered correctly in the browser, >> when the >> content is pulled via the feed or XML-RPC the shortcode is left as- >> is -- >> which is understandable I guess since the theme only applies to >> browser >> rendering. Is this correct? i.e., there is no way for me, in my >> theme code, >> to enable shortcode expansion for post content for feeds and XML-RPC? >> >> One way to overcome this may be to add an action or filter, which >> would >> entail (if I am getting it right) the creation of a plugin. I do >> not want >> the plugin to modify the content as it is saved i.e., I do not want >> it to >> hook into the post editing function. That would cause the shortcode >> to be >> expanded/replaced on saving, preventing future edits. I could >> instead, I >> hope, add a filter that would kick in when the content is accessed >> (irrespective of the reason/means of access, whether it be for >> rendering in >> browser, or for feed or XML-RPC). >> >> Any suggestions, comments or advice would be great. Thank you, > From peter.westwood at ftwr.co.uk Tue Sep 8 21:29:51 2009 From: peter.westwood at ftwr.co.uk (Peter Westwood) Date: Tue, 8 Sep 2009 22:29:51 +0100 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: <4AA6B898.6030309@gunters.org> Message-ID: On 8 Sep 2009, at 22:24, Andy Skelton wrote: > On Tue, Sep 8, 2009 at 3:03 PM, Dougal Campbell > wrote: >> From their perspective, it's simple: the >> plugin worked before the upgrade, and it was broken after. >> Therefore, the WP >> upgrade "broke" the plugin. You'll probably never convince them to >> look at >> it any other way. But I have to wonder if we can't try...something. >> I'm not >> sure what. But since this seems to be a large source of the FUD >> concerning >> upgrades, it certainly seems worth discussing it and kicking around >> some >> ideas on how to address it. > > I had a thought. The only way to save the user from himself--short of > educating him--is to automate. Automating a safe upgrade begins with > knowing how to do it manually. Before upgrading a site you must see > that it works as-is. Then you must upgrade the site (preferably a > copy) and see whether it works. The baseline for what's working is > whatever passes your test. Or a test suite. Uh oh, unit tests. > > So if you are to really fix the problem of broken-after-upgrade you > must have tests to run and compare before and after, a copy of the > site, and something smart to do when a test fails. Code not covered by > tests (plugins and themes) would be troublesome but not fatal; process > of elimination is valid intelligence gathering. Tests for plugins and > themes should be supplied by their authors, which is a cultural shift > that will meet resistance proportional to the size of the Extend > repositories. > > The size of the WordPress repository is also daunting but it needn't > all have test cases from the start. It could be begun with just one > simple test case and grow from there: does index.php produce 200 > OK...? > > The other way would be to toss the old plugin and theme systems and > write new ones that encapsulated non-core code and enforced nice play. > That would be great for the ivory tower set but not so much for folks > entrenched like most of us are. > Another thought that has been discussed is: Make the update process safe and reversible. Provide the user with the tools to upgrade and downgrade the site at will so they can go back if something is broken. This includes db and plugin up/downgrading. Also integrate information into the pre-upgrade step to check for plugin compatibility based on crowd-sourced data - i.e. not just rely on plugin authors marking a version as supported but let the community provide that information. Peter -- Peter Westwood http://blog.ftwr.co.uk | http://westi.wordpress.com C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5 From zamoose at gmail.com Tue Sep 8 21:39:17 2009 From: zamoose at gmail.com (Doug Stewart) Date: Tue, 8 Sep 2009 17:39:17 -0400 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: <4AA6B898.6030309@gunters.org> Message-ID: <71ddd7490909081439n45c27199s6453e196cbdc6f44@mail.gmail.com> Sorry for the top post -- iPhone makes bottom-posting a real pain. How about building an easy "back out" procedure into the core upgrade? Back up the db, copy all core files to a safe tmp and then upgrade. Things not working? Create a dialog like Apple's crash reporter and have the users send feedback to WP along with a generated list of plugins and their versions. Maybe even have the crash receiver be able to respond with "version 3.14 of Plugin X us known not to work with the newest WP. Please contact the author (insert author contact from plugin description here)." Remove as many speesbumps as possible. And yes, absolutely color code the alerts. *grin* -Doug On Tuesday, September 8, 2009, Andy Skelton wrote: > On Tue, Sep 8, 2009 at 3:03 PM, Dougal Campbell wrote: >> From their perspective, it's simple: the >> plugin worked before the upgrade, and it was broken after. Therefore, the WP >> upgrade "broke" the plugin. You'll probably never convince them to look at >> it any other way. But I have to wonder if we can't try...something. I'm not >> sure what. But since this seems to be a large source of the FUD concerning >> upgrades, it certainly seems worth discussing it and kicking around some >> ideas on how to address it. > > I had a thought. The only way to save the user from himself--short of > educating him--is to automate. Automating a safe upgrade begins with > knowing how to do it manually. Before upgrading a site you must see > that it works as-is. Then you must upgrade the site (preferably a > copy) and see whether it works. The baseline for what's working is > whatever passes your test. Or a test suite. Uh oh, unit tests. > > So if you are to really fix the problem of broken-after-upgrade you > must have tests to run and compare before and after, a copy of the > site, and something smart to do when a test fails. Code not covered by > tests (plugins and themes) would be troublesome but not fatal; process > of elimination is valid intelligence gathering. Tests for plugins and > themes should be supplied by their authors, which is a cultural shift > that will meet resistance proportional to the size of the Extend > repositories. > > The size of the WordPress repository is also daunting but it needn't > all have test cases from the start. It could be begun with just one > simple test case and grow from there: does index.php produce 200 > OK...? > > The other way would be to toss the old plugin and theme systems and > write new ones that encapsulated non-core code and enforced nice play. > That would be great for the ivory tower set but not so much for folks > entrenched like most of us are. > > Andy > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > -- -Doug From zamoose at gmail.com Tue Sep 8 21:40:50 2009 From: zamoose at gmail.com (Doug Stewart) Date: Tue, 8 Sep 2009 17:40:50 -0400 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: <4AA6B898.6030309@gunters.org> Message-ID: <71ddd7490909081440l22b0ff19s788b23e15a2aefdd@mail.gmail.com> Peter: You beat me to it! Heh. -Doug -- -Doug From ozh at planetozh.com Wed Sep 9 07:55:53 2009 From: ozh at planetozh.com (Ozh) Date: Wed, 9 Sep 2009 09:55:53 +0200 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: <4AA6B898.6030309@gunters.org> Message-ID: A few ideas as well. I think the current "there's a new WP version out" nag is not big enough. I've seen it real life: it doesn't pass the wife test, she simply does not pay attention to it, and when asked about it, she goes "oh yeah, didn't see it, thanks!" Why not make it bigger? Something like a once per day lightbox popup, with "Close, thanks, I'll see later" and "Please upgrade now" buttons. On the "WP upgrade broke my site", it's obviously 98% FUD and 0.5% of people who indeed experienced problems. Since there have been a few of them lately, why not make a poll about upgrading and let people express themselves? How many people upgrade with absolutely no fear? How many are a bit shaky but eventually it all goes fine? How many really had troubles with the recent releases?* Cheers Ozh [*] such a poll should imo let 2.3 out of the scope because this release did break a number of themes because of the new DB schema & taxonomy functions. From dc153464a11bcf5aeb18180db28017fb.wp-hackers at planetmike.com Wed Sep 9 11:29:44 2009 From: dc153464a11bcf5aeb18180db28017fb.wp-hackers at planetmike.com (Michael Clark) Date: Wed, 9 Sep 2009 07:29:44 -0400 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: Message-ID: Monday morning I blogged two suggestions: 1) Have WordPress send an email to the blog's admin users once a day when there is an update available. 2) Have WordPress slowly deactivate itself over time as the version gets older and older. From http://www.planetmike.com/goto/874: >My first suggestion: The administrators of a WordPress blog should >be sent an email once a new release has occurred. Unfortunately, I >believe the "update release check" only occurs when someone is >looking at the admin pages. Perhaps a hook can be added that once a >day if the public site is accessed, the version check will be done. >If a new version has been released, an email message is sent to the >administrators. > >My second suggestion: Have WordPress expire after a fixed amount of >time. For example, let's say one year after a version is released, >it will lock itself down. At that point it will not allow new >comments, posts or pages. Then six months after that, edits can no >longer be made to existing pages or posts. Then 6 months after that, >a full two years after a new release has been issued, posts, pages >and comments will no longer even appear on the site. They'll still >be in the database, but they won't be displayed at all. > >Radical? Absolutely! But I think this would be a prudent way to >minimize future problems, as well as forcing (encouraging) people to >keep their WordPress installation up to date. -- Michael Clark http://www.PlanetMike.com "Injustice anywhere is a threat to justice everywhere." - Martin Luther King Jr. From kkarpieszuk at gmail.com Wed Sep 9 11:35:21 2009 From: kkarpieszuk at gmail.com (Konrad Karpieszuk) Date: Wed, 9 Sep 2009 13:35:21 +0200 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: Message-ID: <67dfa4090909090435n237659a8q16982a9e96bf8085@mail.gmail.com> On Wed, Sep 9, 2009 at 1:29 PM, Michael Clark < dc153464a11bcf5aeb18180db28017fb.wp-hackers at planetmike.com> wrote: > Monday morning I blogged two suggestions: > > 1) Have WordPress send an email to the blog's admin users once a day when > there is an update available. > is this suggestion caused by new addded plugin? ;) http://wordpress.org/extend/plugins/upgrade-notification-by-email/ -- (en) regards / (pl) pozdrawiam Konrad Karpieszuk http://konradjestwrwandzie.wordpress.com/ From wordpress at dd32.id.au Wed Sep 9 11:37:43 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Wed, 09 Sep 2009 21:37:43 +1000 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: Message-ID: Hah. Good luck with suggestion #2. However, Emailing when a Plugin/Core/Theme upgrade becomes available is something I do agree would be good. I think theres a plugin which does exactly this. http://wordpress.org/extend/plugins/zes-admin-update-notification/ is the first one i found, But i'm certain theres others (And someone else just mailed saying they made one a few days ago.. ) I also noticed on a download site for a application the other day "Enter your email here and click Download to register for security-update emails".. Seemed like a good way of telling users that updates were available to me. (However, Wouldnt really fit WordPress i dont think, Feels too spammy, Better the blog doing it) On Wed, 09 Sep 2009 21:29:44 +1000, Michael Clark wrote: > Monday morning I blogged two suggestions: > > 1) Have WordPress send an email to the blog's admin users once a day > when there is an update available. > > 2) Have WordPress slowly deactivate itself over time as the version > gets older and older. > > From http://www.planetmike.com/goto/874: >> My first suggestion: The administrators of a WordPress blog should >> be sent an email once a new release has occurred. Unfortunately, I >> believe the "update release check" only occurs when someone is >> looking at the admin pages. Perhaps a hook can be added that once a >> day if the public site is accessed, the version check will be done. >> If a new version has been released, an email message is sent to the >> administrators. >> >> My second suggestion: Have WordPress expire after a fixed amount of >> time. For example, let's say one year after a version is released, >> it will lock itself down. At that point it will not allow new >> comments, posts or pages. Then six months after that, edits can no >> longer be made to existing pages or posts. Then 6 months after that, >> a full two years after a new release has been issued, posts, pages >> and comments will no longer even appear on the site. They'll still >> be in the database, but they won't be displayed at all. >> >> Radical? Absolutely! But I think this would be a prudent way to >> minimize future problems, as well as forcing (encouraging) people to >> keep their WordPress installation up to date. > > > > > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) WordPressQI: http://wordpressqi.com/ From scribu at gmail.com Wed Sep 9 12:02:13 2009 From: scribu at gmail.com (scribu) Date: Wed, 9 Sep 2009 15:02:13 +0300 Subject: [wp-hackers] Extend / Plugins pwned Message-ID: <349fe48b0909090502t60273bd3mdf8facec16970b35@mail.gmail.com> If you go to http://wordpress.org/extend/plugins/ you'll see that the most popular plugin is xpress . It seems like the sorting algorhythm doesn't take ratings into account. -- http://scribu.net From wordpress at dd32.id.au Wed Sep 9 12:21:34 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Wed, 09 Sep 2009 22:21:34 +1000 Subject: [wp-hackers] Extend / Plugins pwned In-Reply-To: <349fe48b0909090502t60273bd3mdf8facec16970b35@mail.gmail.com> References: <349fe48b0909090502t60273bd3mdf8facec16970b35@mail.gmail.com> Message-ID: I've seen that mentioned twice so far... ...Except that i cant see xpress mentioned on either the Extend homepage, or the first handful of Popular pages... What am i missing? On Wed, 09 Sep 2009 22:02:13 +1000, scribu wrote: > If you go to http://wordpress.org/extend/plugins/ you'll see that the > most > popular plugin is xpress . > > It seems like the sorting algorhythm doesn't take ratings into account. > > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) From zamoose at gmail.com Wed Sep 9 12:21:58 2009 From: zamoose at gmail.com (Doug Stewart) Date: Wed, 9 Sep 2009 08:21:58 -0400 Subject: [wp-hackers] Extend / Plugins pwned In-Reply-To: <349fe48b0909090502t60273bd3mdf8facec16970b35@mail.gmail.com> References: <349fe48b0909090502t60273bd3mdf8facec16970b35@mail.gmail.com> Message-ID: <71ddd7490909090521p345f465i5fef7d61369b0092@mail.gmail.com> On Wed, Sep 9, 2009 at 8:02 AM, scribu wrote: > If you go to http://wordpress.org/extend/plugins/ you'll see that the most > popular plugin is xpress . > > It seems like the sorting algorhythm doesn't take ratings into account. > > 404'd!!!! Looks like it's already been done did. *grin* -- -Doug From wordpress at dd32.id.au Wed Sep 9 12:28:57 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Wed, 09 Sep 2009 22:28:57 +1000 Subject: [wp-hackers] Extend / Plugins pwned In-Reply-To: <71ddd7490909090521p345f465i5fef7d61369b0092@mail.gmail.com> References: <349fe48b0909090502t60273bd3mdf8facec16970b35@mail.gmail.com> <71ddd7490909090521p345f465i5fef7d61369b0092@mail.gmail.com> Message-ID: My other email still stands.. I couldnt see it last time either.. Strange that its been removed though.. I've seen that plugin plenty of times, and was nothing dodgy :) (Other than supporting a lot of porn site embeds..) - Unless something dodgy was really happening! On Wed, 09 Sep 2009 22:21:58 +1000, Doug Stewart wrote: > On Wed, Sep 9, 2009 at 8:02 AM, scribu wrote: > >> If you go to http://wordpress.org/extend/plugins/ you'll see that the >> most >> popular plugin is xpress . >> >> It seems like the sorting algorhythm doesn't take ratings into account. >> >> > > 404'd!!!! > > Looks like it's already been done did. *grin* > > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) WordPressQI: http://wordpressqi.com/ From jayarjo at gmail.com Wed Sep 9 13:01:13 2009 From: jayarjo at gmail.com (Davit Barbakadze) Date: Wed, 9 Sep 2009 17:01:13 +0400 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: Message-ID: <9aa12a490909090601n55ba1f87ud3ae7df946ac9d19@mail.gmail.com> I've self-witnessed real problems that really occured after upgrading from 2.7.1 to 2.8. It included broken interface features all over the backend and multitude of malfunctioning plugins. Owner of the blog - regular user, being very far from IT in general, was feeling stressed and depressed all day long while reasons of malfunctioning were tracked and corrected. I should say that it never resolved properly, so the only solution to that problem was degrading back to 2.7.1. Which we did together. But now, after all security issues, that is not an alternative anymore. That arises another question by the way. Why there shouldn't be a way to easily patch 2.7.1 (on ordinary users level), since most part of bug fixes are pretty compatible with it? So I vote for "upgrade" categorization and more flexible upgrade process (abillity to roll back easily for example). -- Davit Barbakadze From otto at ottodestruct.com Wed Sep 9 13:31:50 2009 From: otto at ottodestruct.com (Otto) Date: Wed, 9 Sep 2009 08:31:50 -0500 Subject: [wp-hackers] Extend / Plugins pwned In-Reply-To: References: <349fe48b0909090502t60273bd3mdf8facec16970b35@mail.gmail.com> <71ddd7490909090521p345f465i5fef7d61369b0092@mail.gmail.com> Message-ID: <161617690909090631ye9e71deoe23d8e2467bfc317@mail.gmail.com> Something dodgy was happening. We noticed it at the top of the plugin listings yesterday, with 175,000+ downloads in 1 day (from a previous 60-70 or so day before). Either the download counter was wacked or somebody was gaming the listings. -Otto On Wed, Sep 9, 2009 at 7:28 AM, Dion Hulse (dd32) wrote: > My other email still stands.. I couldnt see it last time either.. > > Strange that its been removed though.. I've seen that plugin plenty of > times, and was nothing dodgy :) (Other than supporting a lot of porn site > embeds..) - Unless something dodgy was really happening! > > On Wed, 09 Sep 2009 22:21:58 +1000, Doug Stewart wrote: > >> On Wed, Sep 9, 2009 at 8:02 AM, scribu wrote: >> >>> If you go to http://wordpress.org/extend/plugins/ you'll see that the >>> most >>> popular plugin is xpress . >>> >>> It seems like the sorting algorhythm doesn't take ratings into account. >>> >>> >> >> 404'd!!!! >> >> Looks like it's already been done did. *grin* >> >> > > > -- > -- > Dion Hulse > e: contact at dd32.id.au > w: http://dd32.id.au/ > m: 04 6621 9112 (+614 6621 9112) > WordPressQI: http://wordpressqi.com/ > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From wordpress at dd32.id.au Wed Sep 9 13:37:04 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Wed, 09 Sep 2009 23:37:04 +1000 Subject: [wp-hackers] Extend / Plugins pwned In-Reply-To: <161617690909090631ye9e71deoe23d8e2467bfc317@mail.gmail.com> References: <349fe48b0909090502t60273bd3mdf8facec16970b35@mail.gmail.com> <71ddd7490909090521p345f465i5fef7d61369b0092@mail.gmail.com> <161617690909090631ye9e71deoe23d8e2467bfc317@mail.gmail.com> Message-ID: Ahhhhhh That explains it now. Thanks Otto :) On Wed, 09 Sep 2009 23:31:50 +1000, Otto wrote: > Something dodgy was happening. We noticed it at the top of the plugin > listings yesterday, with 175,000+ downloads in 1 day (from a previous > 60-70 or so day before). Either the download counter was wacked or > somebody was gaming the listings. From shacker at birdhouse.org Wed Sep 9 14:56:11 2009 From: shacker at birdhouse.org (Hacker Scot) Date: Wed, 9 Sep 2009 07:56:11 -0700 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: Message-ID: <781D18DD-84E2-4637-BA9F-5E9A0C22BE32@birdhouse.org> On Sep 9, 2009, at 5:00 AM, wp-hackers-request at lists.automattic.com wrote: > I also noticed on a download site for a application the other day > "Enter > your email here and click Download to register for security-update > emails".. Seemed like a good way of telling users that updates were > available to me. (However, Wouldnt really fit WordPress i dont think, > Feels too spammy, Better the blog doing it) This is something the Drupal world gets right, IMO. Lots of security information consolidated here: http://drupal.org/security also available as RSS feeds and ALSO available as email. I subscribed to the emails for a while and was really impressed that they covered not just core but issues with 3rd party Drupal modules as well. This kind of thing could have a huge security benefit for WP. ./s From jer at simianuprising.com Wed Sep 9 17:05:34 2009 From: jer at simianuprising.com (Jeremy Clarke) Date: Wed, 9 Sep 2009 13:05:34 -0400 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: <781D18DD-84E2-4637-BA9F-5E9A0C22BE32@birdhouse.org> References: <781D18DD-84E2-4637-BA9F-5E9A0C22BE32@birdhouse.org> Message-ID: On Wed, Sep 9, 2009 at 10:56 AM, Hacker Scot wrote: > On Sep 9, 2009, at 5:00 AM, wp-hackers-request at lists.automattic.com wrote: > This is something the Drupal world gets right, IMO. Lots of security > information consolidated here: http://drupal.org/security also available as > RSS feeds and ALSO available as email. I subscribed to the emails for a > while and was really impressed that they covered not just core but issues > with 3rd party Drupal modules as well. ?This kind of thing could have a huge > security benefit for WP. Not sure who's in charge of it but WP's updates email list is completely desolate most of the time. It should have strongly worded terrifying emails when there are security updates. As it is its pretty neglected, and IMHO the dashboard feed just doesn't replace it. Lots of people use WP casually, and the once or twice a month they log in they don't have time to read everything on the dashboard. IMHO telling people to sign up when downloading is not too spammy, its realistic. The fact is that when you get entangled with WP you are signing up for a security problem, and telling people to sign up to a list about security updates is a good way to let them know that they NEED security updates. Giving out wordpress without telling people there's a security risk is like giving out Windows without any anti-virus software: very misleading and dangerous. -- Jeremy Clarke | http://jeremyclarke.org Code and Design | http://globalvoicesonline.org From dougal at gunters.org Wed Sep 9 18:38:14 2009 From: dougal at gunters.org (Dougal Campbell) Date: Wed, 09 Sep 2009 14:38:14 -0400 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: References: <781D18DD-84E2-4637-BA9F-5E9A0C22BE32@birdhouse.org> Message-ID: <4AA7F616.5070703@gunters.org> On Sep 9 2009 1:05 PM, Jeremy Clarke wrote: > On Wed, Sep 9, 2009 at 10:56 AM, Hacker Scot wrote: > >> On Sep 9, 2009, at 5:00 AM, wp-hackers-request at lists.automattic.com wrote: >> This is something the Drupal world gets right, IMO. Lots of security >> information consolidated here: http://drupal.org/security also available as >> RSS feeds and ALSO available as email. I subscribed to the emails for a >> while and was really impressed that they covered not just core but issues >> with 3rd party Drupal modules as well. This kind of thing could have a huge >> security benefit for WP. >> > Not sure who's in charge of it but WP's updates email list is > completely desolate most of the time. It should have strongly worded > terrifying emails when there are security updates. As it is its pretty > neglected, and IMHO the dashboard feed just doesn't replace it. Lots > of people use WP casually, and the once or twice a month they log in > they don't have time to read everything on the dashboard. > This is a good point. When was the last time that the 'wp-announce' mailing list was actually used to notify people of a new WP version? I can't find the archives, and I sure can't remember it happening anytime recently. I vaguely recall Matt sending *something* to the announce list a few versions back, but I'd probably have to grep through a few gigabytes of old emails to find it. I think it would be great if part of the installation procedure for a new WordPress site was to add a checkbox (checked by default) prompting the user to opt-in to the wp-announce mailing list. This would be on the same screen that asks for the initial administrator email address. It could give a short message explaining that the mailing list is very low volume (typically less than one message per month), it will only be used to send important update information, and that the email address will not be shared with third-parties (etc.). Then (and this is the key), actually USE the wp-announce mailing list for what it's there for. Make it part of the standard procedure checklist for new releases. In fact, there should probably be an announcement at the first Beta and Release Candidate milestones, as well (not every interim beta and rc, just the initial "hey, we're beta testing, you might want to start your own tests to get ready for the new version", and "hey, we've reached release candidate stage, things should be pretty stable, and we're trying to knock out the last few bugs before official release"). AND, when a security issue becomes known, an announcement should be made, as well. I know that opinions vary on exactly *when* security issues should be announced: as soon as known -- even before a patch is available, or only after a patch is ready for the public? I don't think this is the time or place for that discussion, but I think making the announcements by email as well as via the dev blog (and thus the dashboard news) is important. I think there are more people than we might think who hardly glance at the dashboard. Maybe the news blocks in their dashboard are just "below the fold" and they don't see it. Maybe they actively ignore it (do a search for "dashboard" in the plugin repository and take note of how many mention turning off the news feeds). Maybe they're just old-school and prefer email, and miss the days of Usenet. Whatever the case, I think that adding email announcements has got to be a Good Thing. And it could pretty easily be automated. Just set up the Dev Blog to relay any posts made in the "Announcements" category, or something like that. (And BTW, I think there are a lot of things that the WordPress and Drupal communities can learn from each other. Both have a lot of good points to them that the other could borrow. I might have a blog post about that later, if I can find the time.) -- Dougal Campbell http://dougal.gunters.org/ http://twitter.com/dougal http://twitual.com/ From foolistbar at googlemail.com Wed Sep 9 20:38:47 2009 From: foolistbar at googlemail.com (Geoffrey Sneddon) Date: Wed, 9 Sep 2009 21:38:47 +0100 Subject: [wp-hackers] WXR format documentation In-Reply-To: <4A9EA36F.2080208@gunters.org> References: <4A9D3F9A.5080006@gmail.com> <1251885520.12909.2.camel@rillian.narnia.sunriseroad.net> <4A9E58AB.8050204@gmail.com> <4A9EA36F.2080208@gunters.org> Message-ID: On 2 Sep 2009, at 17:55, Dougal Campbell wrote: > On Sep 2 2009 7:36 AM, Harish Narayanan wrote: >> Hmm. Perhaps I will try this. I have been googling for reference >> documentation on WXR for a couple of days and I haven't stumbled upon >> anything. >> > > As far as I know, nobody has created any reference documentation for > WXR. The best reference is really the PHP source for the importer > and exporter in WordPress itself. As the name (WordPress eXtended > RSS) implies, it's basically RSS with some extra WP-specific > elements added in. Note that if you want to stay compatible with exports from WordPress you can't use an XML (and hence RSS) parser, as some exports from WP are not well-formed XML. -- Geoffrey Sneddon From SuperMoonMan at gmail.com Wed Sep 9 20:53:13 2009 From: SuperMoonMan at gmail.com (Steven Rossi) Date: Wed, 9 Sep 2009 15:53:13 -0500 Subject: [wp-hackers] Making Updates Friendlier? In-Reply-To: <4AA7F616.5070703@gunters.org> References: <781D18DD-84E2-4637-BA9F-5E9A0C22BE32@birdhouse.org> <4AA7F616.5070703@gunters.org> Message-ID: <474320ee0909091353x12888c84yd001c2795ea0a01d@mail.gmail.com> I tried to read past discussions on this to make sure that I wasn't repeating anything that has already been said. That said, I'm thinking that the wp-announce mailing list might not be the best way to do this, at least not in a format similar to the wp-hackers/wp-docs mailing lists. I'd like to see something clean and presentable to the public, more "newsletter" than "mailing list," if that distinction makes sense. I'm thinking of Apple's product announcement emails and how they're short and to the point but also informative. Something like that might benefit the average user of Wordpress (I'm assuming here that the average user is the real target since the more advanced user will likely have already heard about and applied the update). I'm in favor, therefore, of the option during installation to sign up to receive updates of new releases. I also agree with Dougal that it should be opt-out rather than opt-in, increasing the likelihood that novice users will check to receive updates. Also (and now we're getting more complex), I'm wondering if there shouldn't be some sort of check after an arbitrary number of days/weeks to make sure that the Wordpress administrator has in fact installed the latest version. I'm thinking that in addition to that (somewhat useless) bar on the top of the admin screen, WP should check 2 weeks after any release to see if the latest version is being used. If it's not, the administrator would receive an email saying something to the effect of, "You still haven't updated!" You get my drift. Just some thoughts I'm throwing out there. Steven Rossi http://www.letsmovetothemoon.com http://www.stevenjrossi.com http://www.twitter.com/SuperMoonMan On Wed, Sep 9, 2009 at 1:38 PM, Dougal Campbell wrote: > On Sep 9 2009 1:05 PM, Jeremy Clarke wrote: > >> On Wed, Sep 9, 2009 at 10:56 AM, Hacker Scot >> wrote: >> >> >>> On Sep 9, 2009, at 5:00 AM, wp-hackers-request at lists.automattic.comwrote: >>> This is something the Drupal world gets right, IMO. Lots of security >>> information consolidated here: http://drupal.org/security also available >>> as >>> RSS feeds and ALSO available as email. I subscribed to the emails for a >>> while and was really impressed that they covered not just core but issues >>> with 3rd party Drupal modules as well. This kind of thing could have a >>> huge >>> security benefit for WP. >>> >>> >> Not sure who's in charge of it but WP's updates email list is >> completely desolate most of the time. It should have strongly worded >> terrifying emails when there are security updates. As it is its pretty >> neglected, and IMHO the dashboard feed just doesn't replace it. Lots >> of people use WP casually, and the once or twice a month they log in >> they don't have time to read everything on the dashboard. >> >> > > This is a good point. When was the last time that the 'wp-announce' mailing > list was actually used to notify people of a new WP version? I can't find > the archives, and I sure can't remember it happening anytime recently. I > vaguely recall Matt sending *something* to the announce list a few versions > back, but I'd probably have to grep through a few gigabytes of old emails to > find it. > > I think it would be great if part of the installation procedure for a new > WordPress site was to add a checkbox (checked by default) prompting the user > to opt-in to the wp-announce mailing list. This would be on the same screen > that asks for the initial administrator email address. It could give a short > message explaining that the mailing list is very low volume (typically less > than one message per month), it will only be used to send important update > information, and that the email address will not be shared with > third-parties (etc.). > > Then (and this is the key), actually USE the wp-announce mailing list for > what it's there for. Make it part of the standard procedure checklist for > new releases. In fact, there should probably be an announcement at the first > Beta and Release Candidate milestones, as well (not every interim beta and > rc, just the initial "hey, we're beta testing, you might want to start your > own tests to get ready for the new version", and "hey, we've reached release > candidate stage, things should be pretty stable, and we're trying to knock > out the last few bugs before official release"). > > AND, when a security issue becomes known, an announcement should be made, > as well. I know that opinions vary on exactly *when* security issues should > be announced: as soon as known -- even before a patch is available, or only > after a patch is ready for the public? I don't think this is the time or > place for that discussion, but I think making the announcements by email as > well as via the dev blog (and thus the dashboard news) is important. I think > there are more people than we might think who hardly glance at the > dashboard. Maybe the news blocks in their dashboard are just "below the > fold" and they don't see it. Maybe they actively ignore it (do a search for > "dashboard" in the plugin repository and take note of how many mention > turning off the news feeds). Maybe they're just old-school and prefer email, > and miss the days of Usenet. Whatever the case, I think that adding email > announcements has got to be a Good Thing. And it could pretty easily be > automated. Just set up the Dev Blog to relay any posts made in the > "Announcements" category, or something like that. > > (And BTW, I think there are a lot of things that the WordPress and Drupal > communities can learn from each other. Both have a lot of good points to > them that the other could borrow. I might have a blog post about that later, > if I can find the time.) > > -- > Dougal Campbell > http://dougal.gunters.org/ > http://twitter.com/dougal > http://twitual.com/ > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From wp-hackers at striderweb.com Wed Sep 9 21:35:20 2009 From: wp-hackers at striderweb.com (Stephen Rider) Date: Wed, 9 Sep 2009 16:35:20 -0500 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH Message-ID: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> Hackers -- As of WP 2.6, users have been able to move the wp-config.php file up on directory if they choose. In my opinion this was an excellent change, because it is the final piece in allowing users to completely remove customizations from within the WordPress directory. (Allowing moving wp-config being a significant piece of the same process). There is a remnant of the old system still in wp-config.php, the directive to create ABSPATH if it does not exist. I'm not sure why this is there -- perhaps it is a holdover of a much older version of WP. But if wp-config.php is movable, then this code is no longer stable, and it's *existence* has encouraged a poor coding practice among plugin authors. A problem that arises is plugins that do sort of "stand alone" things but want to access the database -- a common thing to do is to call wp- config.php directly to get the login info, rather than wp-load.php. Again, this is unstable because wp-config.php may have moved, and even if the plugin correctly knows to look up a directory, it will get tripped up if it then tries to call another file and bases the path off of ABSPATH. While plugin authors *can* just call wp-load.php, which is safer and more stable, it appears to be quite common to do it the other way. Here is my proposal: We should assert, in documentation and in code, that any time a plugin or process wants to access parts of WP (including the database), it should call wp-load.php. We should do this via changes within the Codex, and inline documentation, and we should also do this by eliminating the ABSPATH define() in wp- config.php. At the very least, we should put a "deprecated" call with the define() in wp-config, so that if it does happen, there is a notice to the log that "You should not call wp-config.php directly. Call wp-load.php instead." Then a version or two down the road we can get rid of the troublesome define. What think ye? Stephen P.S. -- Why yes, I do get troubleshooting questions about this. Why do you ask? -- Stephen Rider http://striderweb.com/ From wp-hackers at striderweb.com Wed Sep 9 21:40:47 2009 From: wp-hackers at striderweb.com (Stephen Rider) Date: Wed, 9 Sep 2009 16:40:47 -0500 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> Message-ID: Heh. Why yes, that email was written *without* knowledge of the "Make Updates Friendlier?" thread. But boy does it relate! :) Stephen From scribu at gmail.com Wed Sep 9 23:31:01 2009 From: scribu at gmail.com (scribu) Date: Thu, 10 Sep 2009 02:31:01 +0300 Subject: [wp-hackers] Inline styles and TinyMCE Message-ID: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> A new ticket on trac contends that TinyMCE should use predefined classes instead of inline styles: #10753 The main drawback is that it would require themes to add these predefined styles to their stylesheet, beside the classical .alignleft, .aligncenter and .alignright This is my proposed solution: Instead of relying on each theme developer, make a default.css file and add it through 'wp_head'. - fixes the inline styles in TinyMCE - potentially fixes inline styles generated by [gallery] - themers can disable it if they wish What do you think? -- http://scribu.net From ncrice at gmail.com Thu Sep 10 01:00:09 2009 From: ncrice at gmail.com (Nathan Rice) Date: Wed, 9 Sep 2009 21:00:09 -0400 Subject: [wp-hackers] Inline styles and TinyMCE In-Reply-To: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> References: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> Message-ID: <862d087f0909091800n598239ffrd2686788c56f32d2@mail.gmail.com> +1 for me, as a theme designer. This would definitely be more convenient than the alternatives that are being used now. Personally, I'd disable it, then call it using @import from the style.css file, but just having it available would be killer, regardless of how I chose to call it. And having it get called by default solves a lot of issues like the one you mentioned. On Wed, Sep 9, 2009 at 7:31 PM, scribu wrote: > A new ticket on trac contends that TinyMCE should use predefined classes > instead of inline styles: #10753< > http://core.trac.wordpress.org/ticket/10753> > > The main drawback is that it would require themes to add these predefined > styles to their stylesheet, beside the classical .alignleft, .aligncenter > and .alignright > > This is my proposed solution: > > Instead of relying on each theme developer, make a default.css file and add > it through 'wp_head'. > > - fixes the inline styles in TinyMCE > - potentially fixes inline styles generated by [gallery] > - themers can disable it if they wish > > What do you think? > > > -- > http://scribu.net > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From wp-hackers at striderweb.com Thu Sep 10 03:40:16 2009 From: wp-hackers at striderweb.com (Stephen Rider) Date: Wed, 9 Sep 2009 22:40:16 -0500 Subject: [wp-hackers] Inline styles and TinyMCE In-Reply-To: <862d087f0909091800n598239ffrd2686788c56f32d2@mail.gmail.com> References: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> <862d087f0909091800n598239ffrd2686788c56f32d2@mail.gmail.com> Message-ID: On Sep 9, 2009, at 8:00 PM, Nathan Rice wrote: > Personally, I'd disable it, then call it using @import from the > style.css > file This is not backwards compatible though. Existing themes would suddenly not look right. +1 for a default CSS hooked through wp-head Stephen -- Stephen Rider http://striderweb.com/ From wp-hackers at striderweb.com Thu Sep 10 03:49:50 2009 From: wp-hackers at striderweb.com (Stephen Rider) Date: Wed, 9 Sep 2009 22:49:50 -0500 Subject: [wp-hackers] Inline styles and TinyMCE In-Reply-To: References: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> <862d087f0909091800n598239ffrd2686788c56f32d2@mail.gmail.com> Message-ID: On Sep 9, 2009, at 10:40 PM, Stephen Rider wrote: > > On Sep 9, 2009, at 8:00 PM, Nathan Rice wrote: > >> Personally, I'd disable it, then call it using @import from the >> style.css >> file > > This is not backwards compatible though. Existing themes would > suddenly not look right. Nevermind. I got it.... :-\ From lynne.pope at gmail.com Thu Sep 10 04:02:24 2009 From: lynne.pope at gmail.com (Lynne Pope) Date: Thu, 10 Sep 2009 16:02:24 +1200 Subject: [wp-hackers] Inline styles and TinyMCE In-Reply-To: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> References: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> Message-ID: <427667db0909092102y6b3cc222ye43dcc68afdd2805@mail.gmail.com> 2009/9/10 scribu > A new ticket on trac contends that TinyMCE should use predefined classes > instead of inline styles: #10753< > http://core.trac.wordpress.org/ticket/10753> > > The main drawback is that it would require themes to add these predefined > styles to their stylesheet, beside the classical .alignleft, .aligncenter > and .alignright > > This is my proposed solution: > > Instead of relying on each theme developer, make a default.css file and add > it through 'wp_head'. > > - fixes the inline styles in TinyMCE > - potentially fixes inline styles generated by [gallery] > - themers can disable it if they wish > > What do you think? > +1 for this - good idea! In my theme development I'd disable it in wp_head and either import it in styles.css or include the necessary styling directly with the rest of the styling. The ability to easily remove it from wp_head is important. Lynne From jason at findingsimple.com Thu Sep 10 04:42:41 2009 From: jason at findingsimple.com (Jason) Date: Thu, 10 Sep 2009 14:42:41 +1000 Subject: [wp-hackers] wp_list_pages() weirdness Message-ID: Does anyone have any ideas why when I output two page lists on the same page (as in the attached text file) one list is hierarchical (the left one) and the other is not (the right one)? I can swap the meta_values over (i.e. left to right and vice versa) and it still does the same thing - the left side is hierarchical and the right side is not - it doesn't matter what the content is. Its not a CSS issue either. It has me stumped. From jason at findingsimple.com Thu Sep 10 04:43:34 2009 From: jason at findingsimple.com (Jason) Date: Thu, 10 Sep 2009 14:43:34 +1000 Subject: [wp-hackers] wp_list_pages() weirdness In-Reply-To: References: Message-ID: Sorry forgot to attach the code On Thu, Sep 10, 2009 at 2:42 PM, Jason wrote: > Does anyone have any ideas why when I output two page lists on the same > page (as in the attached text file) one list is hierarchical (the left one) > and the other is not (the right one)? > > I can swap the meta_values over (i.e. left to right and vice versa) and it > still does the same thing - the left side is hierarchical and the right side > is not - it doesn't matter what the content is. > > Its not a CSS issue either. It has me stumped. > From johnbillion+wp at gmail.com Thu Sep 10 06:13:51 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Thu, 10 Sep 2009 07:13:51 +0100 Subject: [wp-hackers] wp_list_pages() weirdness In-Reply-To: References: Message-ID: <1fa535a70909092313x6a4ad399p66abe16bcefbdf13@mail.gmail.com> Got a link Jason? The list removes attachments. 2009/9/10 Jason : > Sorry forgot to attach the code > > > > On Thu, Sep 10, 2009 at 2:42 PM, Jason wrote: > >> Does anyone have any ideas why when I output two page lists on the same >> page (as in the attached text file) one list is hierarchical (the left one) >> and the other is not (the right one)? >> >> I can swap the meta_values over (i.e. left to right and vice versa) and it >> still does the same thing - the left side is hierarchical and the right side >> is not - it doesn't matter what the content is. >> >> Its not a CSS issue either. It has me stumped. >> > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > > From jason at findingsimple.com Thu Sep 10 07:44:32 2009 From: jason at findingsimple.com (Jason) Date: Thu, 10 Sep 2009 17:44:32 +1000 Subject: [wp-hackers] wp_list_pages() weirdness In-Reply-To: <1fa535a70909092313x6a4ad399p66abe16bcefbdf13@mail.gmail.com> References: <1fa535a70909092313x6a4ad399p66abe16bcefbdf13@mail.gmail.com> Message-ID: Yep - link to code http://findingsimple.com/dev/code.txt Site is running locally at the moment Using 2.8.4 Thanks! On Thu, Sep 10, 2009 at 4:13 PM, John Blackbourn > wrote: > Got a link Jason? The list removes attachments. > > 2009/9/10 Jason : > > Sorry forgot to attach the code > > > > > > > > On Thu, Sep 10, 2009 at 2:42 PM, Jason wrote: > > > >> Does anyone have any ideas why when I output two page lists on the same > >> page (as in the attached text file) one list is hierarchical (the left > one) > >> and the other is not (the right one)? > >> > >> I can swap the meta_values over (i.e. left to right and vice versa) and > it > >> still does the same thing - the left side is hierarchical and the right > side > >> is not - it doesn't matter what the content is. > >> > >> Its not a CSS issue either. It has me stumped. > >> > > > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From wordpress at redfootwebdesign.com Thu Sep 10 12:15:42 2009 From: wordpress at redfootwebdesign.com (Red Foot Web Design Wordpress) Date: Thu, 10 Sep 2009 08:15:42 -0400 Subject: [wp-hackers] wp_list_pages() weirdness In-Reply-To: References: <1fa535a70909092313x6a4ad399p66abe16bcefbdf13@mail.gmail.com> Message-ID: <160203ed0909100515x69cd7e58wc7660f63080bd9ed@mail.gmail.com> Can you link to a screen shot of the output? Thanks, Lew On Thu, Sep 10, 2009 at 3:44 AM, Jason wrote: > Yep - link to code http://findingsimple.com/dev/code.txt > > Site is running locally at the moment > > Using 2.8.4 > > Thanks! > > > > On Thu, Sep 10, 2009 at 4:13 PM, John Blackbourn > < > johnbillion%2Bwp at gmail.com > > > wrote: > > > Got a link Jason? The list removes attachments. > > > > 2009/9/10 Jason : > > > Sorry forgot to attach the code > > > > > > > > > > > > On Thu, Sep 10, 2009 at 2:42 PM, Jason > wrote: > > > > > >> Does anyone have any ideas why when I output two page lists on the > same > > >> page (as in the attached text file) one list is hierarchical (the left > > one) > > >> and the other is not (the right one)? > > >> > > >> I can swap the meta_values over (i.e. left to right and vice versa) > and > > it > > >> still does the same thing - the left side is hierarchical and the > right > > side > > >> is not - it doesn't matter what the content is. > > >> > > >> Its not a CSS issue either. It has me stumped. > > >> > > > > > > _______________________________________________ > > > wp-hackers mailing list > > > wp-hackers at lists.automattic.com > > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > > > > > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From jason at findingsimple.com Thu Sep 10 12:30:51 2009 From: jason at findingsimple.com (Jason) Date: Thu, 10 Sep 2009 22:30:51 +1000 Subject: [wp-hackers] wp_list_pages() weirdness In-Reply-To: <160203ed0909100515x69cd7e58wc7660f63080bd9ed@mail.gmail.com> References: <1fa535a70909092313x6a4ad399p66abe16bcefbdf13@mail.gmail.com> <160203ed0909100515x69cd7e58wc7660f63080bd9ed@mail.gmail.com> Message-ID: Sure. The hierarchy is supposed to be: Childre / Parenting -> Custody / Visitation -> Paternity When I set the above pages to be "left" they look fine ( http://findingsimple.com/dev/picture-3.png) but when I set them to the right they lose the hierarchy :-S (http://findingsimple.com/dev/picture-5.png) Regards, Jason p. +61 403 864 202 e. jason at findingsimple.com w. www.findingsimple.com t. @findingsimple s. conroy.jason On Thu, Sep 10, 2009 at 10:15 PM, Red Foot Web Design Wordpress < wordpress at redfootwebdesign.com> wrote: > Can you link to a screen shot of the output? > > Thanks, > Lew > > On Thu, Sep 10, 2009 at 3:44 AM, Jason wrote: > > > Yep - link to code http://findingsimple.com/dev/code.txt > > > > Site is running locally at the moment > > > > Using 2.8.4 > > > > Thanks! > > > > > > > > On Thu, Sep 10, 2009 at 4:13 PM, John Blackbourn > > < > johnbillion%2Bwp at gmail.com >< > > johnbillion%2Bwp at gmail.com < > johnbillion%252Bwp at gmail.com >> > > > wrote: > > > > > Got a link Jason? The list removes attachments. > > > > > > 2009/9/10 Jason : > > > > Sorry forgot to attach the code > > > > > > > > > > > > > > > > On Thu, Sep 10, 2009 at 2:42 PM, Jason > > wrote: > > > > > > > >> Does anyone have any ideas why when I output two page lists on the > > same > > > >> page (as in the attached text file) one list is hierarchical (the > left > > > one) > > > >> and the other is not (the right one)? > > > >> > > > >> I can swap the meta_values over (i.e. left to right and vice versa) > > and > > > it > > > >> still does the same thing - the left side is hierarchical and the > > right > > > side > > > >> is not - it doesn't matter what the content is. > > > >> > > > >> Its not a CSS issue either. It has me stumped. > > > >> > > > > > > > > _______________________________________________ > > > > wp-hackers mailing list > > > > wp-hackers at lists.automattic.com > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > > > > > > > > > _______________________________________________ > > > wp-hackers mailing list > > > wp-hackers at lists.automattic.com > > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From kkarpieszuk at gmail.com Thu Sep 10 13:17:54 2009 From: kkarpieszuk at gmail.com (Konrad Karpieszuk) Date: Thu, 10 Sep 2009 15:17:54 +0200 Subject: [wp-hackers] how to append some tag to post automatically, when it is published? Message-ID: <67dfa4090909100617h5a573ba1y5f4eab395019aa9a@mail.gmail.com> hi :) Sometimes on my blog someone will publish post with Custom field name = "video" and value = [url to video at YT] I want that thos post will have added automatically blog tag 'video' How to do this? I just know that i need to add action hook for 'publish_post'. but what should be in function? does wp has some function to add tag to post (i belive yes, but i don't know which one)? -- (en) regards / (pl) pozdrawiam Konrad Karpieszuk http://konradjestwrwandzie.wordpress.com/ From otto at ottodestruct.com Thu Sep 10 13:58:26 2009 From: otto at ottodestruct.com (Otto) Date: Thu, 10 Sep 2009 08:58:26 -0500 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> Message-ID: <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> On Wed, Sep 9, 2009 at 4:35 PM, Stephen Rider wrote: > A problem that arises is plugins that do sort of "stand alone" things but > want to access the database -- a common thing to do is to call wp-config.php > directly to get the login info, rather than wp-load.php. ?Again, this is > unstable because wp-config.php may have moved, and even if the plugin > correctly knows to look up a directory, it will get tripped up if it then > tries to call another file and bases the path off of ABSPATH. > > While plugin authors *can* just call wp-load.php, which is safer and more > stable, it appears to be quite common to do it the other way. We'd had this basic discussion before. Short answer is that plugins should not do that. Long answer is that plugins that want to do "stand alone" sort of things need to stop thinking they are stand alone and work within the WordPress framework. We have hooks for most types of things (AJAX calls and such) and we have methods to do other types of things (template overload hooks), and those methods all work through the framework. Thus, they have WordPress loaded, and you don't need to include squat. In conclusion, if you make your output directly call a separate file in your plugin, and that file needs access to the database, then *you're doing it wrong*. You can do it within the framework, and it's generally much easier. Give me a specific example, and I'll be glad to tell you the "right" way that example should work. :) -Otto Sent from Memphis, TN, United States From wp-hackers at striderweb.com Thu Sep 10 14:20:18 2009 From: wp-hackers at striderweb.com (Stephen Rider) Date: Thu, 10 Sep 2009 09:20:18 -0500 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> Message-ID: <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> On Sep 10, 2009, at 8:58 AM, Otto wrote: > On Wed, Sep 9, 2009 at 4:35 PM, Stephen Rider > wrote: >> A problem that arises is plugins that do sort of "stand alone" >> things but >> want to access the database -- a common thing to do is to call wp- >> config.php >> directly to get the login info, rather than wp-load.php. Again, >> this is >> unstable because wp-config.php may have moved, and even if the plugin >> correctly knows to look up a directory, it will get tripped up if >> it then >> tries to call another file and bases the path off of ABSPATH. >> >> While plugin authors *can* just call wp-load.php, which is safer >> and more >> stable, it appears to be quite common to do it the other way. > > Short answer is that plugins should not do that. > > Long answer is that plugins that want to do "stand alone" sort of > things need to stop thinking they are stand alone and work within the > WordPress framework. > if you make your output directly call a separate file > in your plugin, and that file needs access to the database, then > *you're doing it wrong*. You can do it within the framework, and it's > generally much easier. > > Give me a specific example, and I'll be glad to tell you the "right" > way that example should work. :) Hi Otto -- You're missing the point. All I'm trying to do is get the ABSPATH define removed from wp-config.php. Reasons are: a) it's obsolete b) it encourages plugin coders to do it wrong (by your own definition). Okay, I was citing loading wp-load.php as "better", but I agree that they're both *wrong*. So do you concur that it would be a good idea to get rid of the ABSPATH define() in wp-config.php ? :-) Stephen -- Stephen Rider http://striderweb.com/ From otto at ottodestruct.com Thu Sep 10 14:23:12 2009 From: otto at ottodestruct.com (Otto) Date: Thu, 10 Sep 2009 09:23:12 -0500 Subject: [wp-hackers] how to append some tag to post automatically, when it is published? In-Reply-To: <67dfa4090909100617h5a573ba1y5f4eab395019aa9a@mail.gmail.com> References: <67dfa4090909100617h5a573ba1y5f4eab395019aa9a@mail.gmail.com> Message-ID: <161617690909100723r62324ea3q5a11c22c1e220c5d@mail.gmail.com> wp_add_post_tags($post_id = 0, $tags = '') Example: wp_add_post_tags(12345, 'video, another-tag, whatever'); -Otto On Thu, Sep 10, 2009 at 8:17 AM, Konrad Karpieszuk wrote: > hi :) > Sometimes on my blog someone will publish post with Custom field name = > "video" and value = [url to video at YT] > > I want that thos post will have added automatically blog tag 'video' > > How to do this? > > I just know that i need to add action hook for 'publish_post'. but what > should be in function? does wp has some function to add tag to post (i > belive yes, but i don't know which one)? > > -- > (en) regards / (pl) pozdrawiam > Konrad Karpieszuk > http://konradjestwrwandzie.wordpress.com/ > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From ozh at planetozh.com Thu Sep 10 14:24:05 2009 From: ozh at planetozh.com (Ozh) Date: Thu, 10 Sep 2009 16:24:05 +0200 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> Message-ID: > So do you concur that it would be a good idea to get rid of the > ABSPATH define() in wp-config.php ? :-) > No. It's going to break a lot of plugins and add some fuel to the "WP upgrade broke my site" debate From otto at ottodestruct.com Thu Sep 10 14:25:39 2009 From: otto at ottodestruct.com (Otto) Date: Thu, 10 Sep 2009 09:25:39 -0500 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> Message-ID: <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> On Thu, Sep 10, 2009 at 9:20 AM, Stephen Rider wrote: > Hi Otto -- > > You're missing the point. ?All I'm trying to do is get the ABSPATH define > removed from wp-config.php. ?Reasons are: > > a) it's obsolete > b) it encourages plugin coders to do it wrong (by your own definition). > > Okay, I was citing loading wp-load.php as "better", but I agree that they're > both *wrong*. > > So do you concur that it would be a good idea to get rid of the ABSPATH > define() in wp-config.php ? ?:-) So, you're asking if we should instantly and intentionally break every plugin that includes wp-config.php? Yeah, I'm fine with it. ;) -Otto Sent from Memphis, TN, United States From kkarpieszuk at gmail.com Thu Sep 10 14:34:53 2009 From: kkarpieszuk at gmail.com (Konrad Karpieszuk) Date: Thu, 10 Sep 2009 16:34:53 +0200 Subject: [wp-hackers] how to append some tag to post automatically, when it is published? In-Reply-To: <161617690909100723r62324ea3q5a11c22c1e220c5d@mail.gmail.com> References: <67dfa4090909100617h5a573ba1y5f4eab395019aa9a@mail.gmail.com> <161617690909100723r62324ea3q5a11c22c1e220c5d@mail.gmail.com> Message-ID: <67dfa4090909100734j2ad18bbej2621976c69ceec80@mail.gmail.com> thank you very much :) btw. is it a right place for this kind of questions? i asked this yesterday at forum but nobody answered, so i tried here ;) but when i look at your discussions i am not sure if it is good place to ask :) On Thu, Sep 10, 2009 at 4:23 PM, Otto wrote: > wp_add_post_tags($post_id = 0, $tags = '') > > Example: > wp_add_post_tags(12345, 'video, another-tag, whatever'); > > -Otto > > > > On Thu, Sep 10, 2009 at 8:17 AM, Konrad Karpieszuk > wrote: > > hi :) > > Sometimes on my blog someone will publish post with Custom field name = > > "video" and value = [url to video at YT] > > > > I want that thos post will have added automatically blog tag 'video' > > > > How to do this? > > > > I just know that i need to add action hook for 'publish_post'. but what > > should be in function? does wp has some function to add tag to post (i > > belive yes, but i don't know which one)? > > > > -- > > (en) regards / (pl) pozdrawiam > > Konrad Karpieszuk > > http://konradjestwrwandzie.wordpress.com/ > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > -- (en) regards / (pl) pozdrawiam Konrad Karpieszuk http://konradjestwrwandzie.wordpress.com/ From john.ivar.myrstad at gmail.com Thu Sep 10 14:55:14 2009 From: john.ivar.myrstad at gmail.com (John Myrstad) Date: Thu, 10 Sep 2009 16:55:14 +0200 Subject: [wp-hackers] Inline styles and TinyMCE In-Reply-To: <427667db0909092102y6b3cc222ye43dcc68afdd2805@mail.gmail.com> References: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> <427667db0909092102y6b3cc222ye43dcc68afdd2805@mail.gmail.com> Message-ID: I like the idea. Its long overdue to fix this as well: > - potentially fixes inline styles generated by [gallery] From jess at funroe.net Thu Sep 10 15:15:34 2009 From: jess at funroe.net (Jess Planck) Date: Thu, 10 Sep 2009 10:15:34 -0500 Subject: [wp-hackers] Inline styles and TinyMCE In-Reply-To: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> References: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> Message-ID: I made a comment to that ticket, but I thought I would make it here as well. It's a great idea, but before it gets set in stone I would really like to see some better CSS naming conventions for the HTML objects WordPress creates. There is no coding standard for CSS like there is for PHP in WordPress, so here's the type of things we get: For an attachment starting div id is attachment_13 with classes wp- caption and alignleft wrapped around an img with classes size-medium wp-image-13 and a p with class wp-caption-text. It's not bad but there are dashes, underscores, compounded words, and very little to help you predict the sort of CSS that WordPress is going to spit out. Of course object oriented CSS approaches were the techniques aren't being used. It's getting better, but don't go look at the some of the buddypress CSS names (it burns!). If WordPress adds some removable default css for these objects then some better naming conventions for the CSS classes and ids would really help. Especially some prefix that says "This came from WordPress" like a wp-gallery, wp-attachment, or something else parse- able used in CSS ids and classes. Jess [ :P ] jess planck - http://funroe.net On Sep 9, 2009, at 6:31 PM, scribu wrote: > A new ticket on trac contends that TinyMCE should use predefined > classes > instead of inline styles: #10753 > > > The main drawback is that it would require themes to add these > predefined > styles to their stylesheet, beside the > classical .alignleft, .aligncenter > and .alignright > > This is my proposed solution: > > Instead of relying on each theme developer, make a default.css file > and add > it through 'wp_head'. > > - fixes the inline styles in TinyMCE > - potentially fixes inline styles generated by [gallery] > - themers can disable it if they wish > > What do you think? > > > -- > http://scribu.net > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From johnbillion+wp at gmail.com Thu Sep 10 16:04:47 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Thu, 10 Sep 2009 17:04:47 +0100 Subject: [wp-hackers] wp_list_pages() weirdness In-Reply-To: References: <1fa535a70909092313x6a4ad399p66abe16bcefbdf13@mail.gmail.com> <160203ed0909100515x69cd7e58wc7660f63080bd9ed@mail.gmail.com> Message-ID: <1fa535a70909100904l9d00a26l69bea39f1a466d44@mail.gmail.com> Is your code missing an outer
      and
    on the right hand side? I couldn't reproduce your problem and without an outer unordered list it'd probably look like that. 2009/9/10 Jason : > Sure. > > The hierarchy is supposed to be: > > Childre / Parenting > -> Custody / Visitation > -> Paternity > > When I set the above pages to be "left" they look fine ( > http://findingsimple.com/dev/picture-3.png) but when I set them to the right > they lose the hierarchy :-S (http://findingsimple.com/dev/picture-5.png) > > Regards, > Jason > > p. +61 403 864 202 > e. jason at findingsimple.com > w. www.findingsimple.com > t. @findingsimple > s. conroy.jason > > > On Thu, Sep 10, 2009 at 10:15 PM, Red Foot Web Design Wordpress < > wordpress at redfootwebdesign.com> wrote: > >> Can you link to a screen shot of the output? >> >> Thanks, >> Lew >> >> On Thu, Sep 10, 2009 at 3:44 AM, Jason wrote: >> >> > Yep - link to code http://findingsimple.com/dev/code.txt >> > >> > Site is running locally at the moment >> > >> > Using 2.8.4 >> > >> > Thanks! >> > >> > >> > >> > On Thu, Sep 10, 2009 at 4:13 PM, John Blackbourn >> > < >> johnbillion%2Bwp at gmail.com >< >> > johnbillion%2Bwp at gmail.com < >> johnbillion%252Bwp at gmail.com >> >> > > wrote: >> > >> > > Got a link Jason? The list removes attachments. >> > > >> > > 2009/9/10 Jason : >> > > > Sorry forgot to attach the code >> > > > >> > > > >> > > > >> > > > On Thu, Sep 10, 2009 at 2:42 PM, Jason >> > wrote: >> > > > >> > > >> Does anyone have any ideas why when I output two page lists on the >> > same >> > > >> page (as in the attached text file) one list is hierarchical (the >> left >> > > one) >> > > >> and the other is not (the right one)? >> > > >> >> > > >> I can swap the meta_values over (i.e. left to right and vice versa) >> > and >> > > it >> > > >> still does the same thing - the left side is hierarchical and the >> > right >> > > side >> > > >> is not - it doesn't matter what the content is. >> > > >> >> > > >> Its not a CSS issue either. It has me stumped. >> > > >> >> > > > >> > > > _______________________________________________ >> > > > wp-hackers mailing list >> > > > wp-hackers at lists.automattic.com >> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers >> > > > >> > > > >> > > _______________________________________________ >> > > wp-hackers mailing list >> > > wp-hackers at lists.automattic.com >> > > http://lists.automattic.com/mailman/listinfo/wp-hackers >> > > >> > _______________________________________________ >> > wp-hackers mailing list >> > wp-hackers at lists.automattic.com >> > http://lists.automattic.com/mailman/listinfo/wp-hackers >> > >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From wordpress at redfootwebdesign.com Thu Sep 10 17:15:44 2009 From: wordpress at redfootwebdesign.com (Red Foot Web Design Wordpress) Date: Thu, 10 Sep 2009 13:15:44 -0400 Subject: [wp-hackers] wp_list_pages() weirdness In-Reply-To: <1fa535a70909100904l9d00a26l69bea39f1a466d44@mail.gmail.com> References: <1fa535a70909092313x6a4ad399p66abe16bcefbdf13@mail.gmail.com> <160203ed0909100515x69cd7e58wc7660f63080bd9ed@mail.gmail.com> <1fa535a70909100904l9d00a26l69bea39f1a466d44@mail.gmail.com> Message-ID: <160203ed0909101015g43813d6cu167b3e52f8b17ab9@mail.gmail.com> Is the CSS the same for the classes library-list-left and library-list-right? Also, what does the HTML look like in the output? I am unable to reproduce as well. Lew On Thu, Sep 10, 2009 at 12:04 PM, John Blackbourn > wrote: > Is your code missing an outer
      and
    on the right hand side? I > couldn't reproduce your problem and without an outer unordered list > it'd probably look like that. > > 2009/9/10 Jason : > > Sure. > > > > The hierarchy is supposed to be: > > > > Childre / Parenting > > -> Custody / Visitation > > -> Paternity > > > > When I set the above pages to be "left" they look fine ( > > http://findingsimple.com/dev/picture-3.png) but when I set them to the > right > > they lose the hierarchy :-S (http://findingsimple.com/dev/picture-5.png) > > > > Regards, > > Jason > > > > p. +61 403 864 202 > > e. jason at findingsimple.com > > w. www.findingsimple.com > > t. @findingsimple > > s. conroy.jason > > > > > > On Thu, Sep 10, 2009 at 10:15 PM, Red Foot Web Design Wordpress < > > wordpress at redfootwebdesign.com> wrote: > > > >> Can you link to a screen shot of the output? > >> > >> Thanks, > >> Lew > >> > >> On Thu, Sep 10, 2009 at 3:44 AM, Jason wrote: > >> > >> > Yep - link to code http://findingsimple.com/dev/code.txt > >> > > >> > Site is running locally at the moment > >> > > >> > Using 2.8.4 > >> > > >> > Thanks! > >> > > >> > > >> > > >> > On Thu, Sep 10, 2009 at 4:13 PM, John Blackbourn > >> > < > johnbillion%2Bwp at gmail.com > < > >> johnbillion%2Bwp at gmail.com < > johnbillion%252Bwp at gmail.com >>< > >> > johnbillion%2Bwp at gmail.com < > johnbillion%252Bwp at gmail.com > < > >> johnbillion%252Bwp at gmail.com < > johnbillion%25252Bwp at gmail.com >>> > >> > > wrote: > >> > > >> > > Got a link Jason? The list removes attachments. > >> > > > >> > > 2009/9/10 Jason : > >> > > > Sorry forgot to attach the code > >> > > > > >> > > > > >> > > > > >> > > > On Thu, Sep 10, 2009 at 2:42 PM, Jason > >> > wrote: > >> > > > > >> > > >> Does anyone have any ideas why when I output two page lists on > the > >> > same > >> > > >> page (as in the attached text file) one list is hierarchical (the > >> left > >> > > one) > >> > > >> and the other is not (the right one)? > >> > > >> > >> > > >> I can swap the meta_values over (i.e. left to right and vice > versa) > >> > and > >> > > it > >> > > >> still does the same thing - the left side is hierarchical and the > >> > right > >> > > side > >> > > >> is not - it doesn't matter what the content is. > >> > > >> > >> > > >> Its not a CSS issue either. It has me stumped. > >> > > >> > >> > > > > >> > > > _______________________________________________ > >> > > > wp-hackers mailing list > >> > > > wp-hackers at lists.automattic.com > >> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > > > >> > > > > >> > > _______________________________________________ > >> > > wp-hackers mailing list > >> > > wp-hackers at lists.automattic.com > >> > > http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > > >> > _______________________________________________ > >> > wp-hackers mailing list > >> > wp-hackers at lists.automattic.com > >> > http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > >> _______________________________________________ > >> wp-hackers mailing list > >> wp-hackers at lists.automattic.com > >> http://lists.automattic.com/mailman/listinfo/wp-hackers > >> > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From otto at ottodestruct.com Thu Sep 10 17:39:37 2009 From: otto at ottodestruct.com (Otto) Date: Thu, 10 Sep 2009 12:39:37 -0500 Subject: [wp-hackers] Inline styles and TinyMCE In-Reply-To: References: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> Message-ID: <161617690909101039k239c6f76je443768707df714@mail.gmail.com> I like the idea, but the execution would be painful. Every time we try to standardize something in this way, we end up having lots of backward compatibility for several versions, in order to get theme/plugin devs the time to fix their stuff. And then we still end up breaking things. In going forward, lets keep this sort of thing in mind, and make everything start with something obvious, like wp- for classes and such. But the ones we've already got let's just leave alone, for now. Changing them will break sites. Adding new ones to replace them just adds worthless cruft that never gets cleaned up properly, and still will break sites. -Otto Sent from Memphis, TN, United States On Thu, Sep 10, 2009 at 10:15 AM, Jess Planck wrote: > I made a comment to that ticket, but I thought I would make it here as well. > > It's a great idea, but before it gets set in stone I would really like to > see some better CSS naming conventions for the HTML objects WordPress > creates. There is no coding standard for CSS like there is for PHP in > WordPress, so here's the type of things we get: > > For an attachment starting div id is attachment_13 with classes wp-caption > and alignleft wrapped around an img with classes size-medium wp-image-13 and > a p with class wp-caption-text. It's not bad but there are dashes, > underscores, compounded words, and very little to help you predict the sort > of CSS that WordPress is going to spit out. Of course object oriented CSS > approaches were the techniques aren't being used. It's getting better, but > don't go look at the some of the buddypress CSS names (it burns!). > > If WordPress adds some removable default css for these objects then some > better naming conventions for the CSS classes and ids would really help. > Especially some prefix that says "This came from WordPress" like a > wp-gallery, wp-attachment, or something else parse-able used in CSS ids and > classes. From jess at funroe.net Thu Sep 10 17:54:52 2009 From: jess at funroe.net (Jess Planck) Date: Thu, 10 Sep 2009 12:54:52 -0500 Subject: [wp-hackers] Inline styles and TinyMCE In-Reply-To: <161617690909101039k239c6f76je443768707df714@mail.gmail.com> References: <349fe48b0909091631l7f31f22dr6cd95e489ddcc57e@mail.gmail.com> <161617690909101039k239c6f76je443768707df714@mail.gmail.com> Message-ID: Too true. Shame on me (or others :P) for not noticing or thinking about mentioning this sooner. These sort of things can also be corrected when those areas go though major revamps or rewrites that will break stuff anyway. Jess - Too busy pushing that rock uphill to notice the elevator. On Sep 10, 2009, at 12:39 PM, Otto wrote: > In going forward, lets keep this sort of thing in mind, and make > everything start with something obvious, like wp- for classes and > such. > > But the ones we've already got let's just leave alone, for now. > Changing them will break sites. Adding new ones to replace them just > adds worthless cruft that never gets cleaned up properly, and still > will break sites. From jason at findingsimple.com Thu Sep 10 22:05:16 2009 From: jason at findingsimple.com (Jason) Date: Fri, 11 Sep 2009 08:05:16 +1000 Subject: [wp-hackers] wp_list_pages() weirdness In-Reply-To: <160203ed0909101015g43813d6cu167b3e52f8b17ab9@mail.gmail.com> References: <1fa535a70909092313x6a4ad399p66abe16bcefbdf13@mail.gmail.com> <160203ed0909100515x69cd7e58wc7660f63080bd9ed@mail.gmail.com> <1fa535a70909100904l9d00a26l69bea39f1a466d44@mail.gmail.com> <160203ed0909101015g43813d6cu167b3e52f8b17ab9@mail.gmail.com> Message-ID: Html output and code here http://findingsimple.com/dev/code.txt Yeah it has me absolutely stumped. I am using wp_list_page elsewhere on the site and it is working fine. Regards, Jason p. +61 403 864 202 e. jason at findingsimple.com w. www.findingsimple.com t. @findingsimple s. conroy.jason On Fri, Sep 11, 2009 at 3:15 AM, Red Foot Web Design Wordpress < wordpress at redfootwebdesign.com> wrote: > Is the CSS the same for the classes library-list-left and > library-list-right? Also, what does the HTML look like in the output? > > I am unable to reproduce as well. > > Lew > > On Thu, Sep 10, 2009 at 12:04 PM, John Blackbourn > < > johnbillion%2Bwp at gmail.com > > > wrote: > > > Is your code missing an outer
      and
    on the right hand side? I > > couldn't reproduce your problem and without an outer unordered list > > it'd probably look like that. > > > > 2009/9/10 Jason : > > > Sure. > > > > > > The hierarchy is supposed to be: > > > > > > Childre / Parenting > > > -> Custody / Visitation > > > -> Paternity > > > > > > When I set the above pages to be "left" they look fine ( > > > http://findingsimple.com/dev/picture-3.png) but when I set them to the > > right > > > they lose the hierarchy :-S ( > http://findingsimple.com/dev/picture-5.png) > > > > > > Regards, > > > Jason > > > > > > p. +61 403 864 202 > > > e. jason at findingsimple.com > > > w. www.findingsimple.com > > > t. @findingsimple > > > s. conroy.jason > > > > > > > > > On Thu, Sep 10, 2009 at 10:15 PM, Red Foot Web Design Wordpress < > > > wordpress at redfootwebdesign.com> wrote: > > > > > >> Can you link to a screen shot of the output? > > >> > > >> Thanks, > > >> Lew > > >> > > >> On Thu, Sep 10, 2009 at 3:44 AM, Jason > wrote: > > >> > > >> > Yep - link to code http://findingsimple.com/dev/code.txt > > >> > > > >> > Site is running locally at the moment > > >> > > > >> > Using 2.8.4 > > >> > > > >> > Thanks! > > >> > > > >> > > > >> > > > >> > On Thu, Sep 10, 2009 at 4:13 PM, John Blackbourn > > >> > < > johnbillion%2Bwp at gmail.com > < > > johnbillion%2Bwp at gmail.com < > johnbillion%252Bwp at gmail.com >> < > > >> johnbillion%2Bwp at gmail.com < > johnbillion%252Bwp at gmail.com > < > > johnbillion%252Bwp at gmail.com < > johnbillion%25252Bwp at gmail.com >>>< > > >> > johnbillion%2Bwp at gmail.com < > johnbillion%252Bwp at gmail.com > < > > johnbillion%252Bwp at gmail.com < > johnbillion%25252Bwp at gmail.com >> < > > >> johnbillion%252Bwp at gmail.com < > johnbillion%25252Bwp at gmail.com > < > > johnbillion%25252Bwp at gmail.com < > johnbillion%2525252Bwp at gmail.com >>>> > > >> > > wrote: > > >> > > > >> > > Got a link Jason? The list removes attachments. > > >> > > > > >> > > 2009/9/10 Jason : > > >> > > > Sorry forgot to attach the code > > >> > > > > > >> > > > > > >> > > > > > >> > > > On Thu, Sep 10, 2009 at 2:42 PM, Jason > > > >> > wrote: > > >> > > > > > >> > > >> Does anyone have any ideas why when I output two page lists on > > the > > >> > same > > >> > > >> page (as in the attached text file) one list is hierarchical > (the > > >> left > > >> > > one) > > >> > > >> and the other is not (the right one)? > > >> > > >> > > >> > > >> I can swap the meta_values over (i.e. left to right and vice > > versa) > > >> > and > > >> > > it > > >> > > >> still does the same thing - the left side is hierarchical and > the > > >> > right > > >> > > side > > >> > > >> is not - it doesn't matter what the content is. > > >> > > >> > > >> > > >> Its not a CSS issue either. It has me stumped. > > >> > > >> > > >> > > > > > >> > > > _______________________________________________ > > >> > > > wp-hackers mailing list > > >> > > > wp-hackers at lists.automattic.com > > >> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > >> > > > > > >> > > > > > >> > > _______________________________________________ > > >> > > wp-hackers mailing list > > >> > > wp-hackers at lists.automattic.com > > >> > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > >> > > > > >> > _______________________________________________ > > >> > wp-hackers mailing list > > >> > wp-hackers at lists.automattic.com > > >> > http://lists.automattic.com/mailman/listinfo/wp-hackers > > >> > > > >> _______________________________________________ > > >> wp-hackers mailing list > > >> wp-hackers at lists.automattic.com > > >> http://lists.automattic.com/mailman/listinfo/wp-hackers > > >> > > > _______________________________________________ > > > wp-hackers mailing list > > > wp-hackers at lists.automattic.com > > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From wp-hackers at striderweb.com Fri Sep 11 01:51:06 2009 From: wp-hackers at striderweb.com (Stephen Rider) Date: Thu, 10 Sep 2009 20:51:06 -0500 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> Message-ID: On Sep 10, 2009, at 9:25 AM, Otto wrote: > So, you're asking if we should instantly and intentionally break every > plugin that includes wp-config.php? > > Yeah, I'm fine with it. ;) Heh. Okay, to rephrase the question (via quoting myself): > Here is my proposal: We should assert, in documentation and in code, > that any time a plugin or process wants to access parts of WP > (including the database), it should call wp-load.php. ... > [W]e should put a "deprecated" call with the define() in wp-config > (inside the "if it doesn't already exist" clause), so that if it > does happen, there is a notice to the log that "You should not call > wp-config.php directly. Call wp-load.php instead." Then somewhere > down the road we can get rid of the troublesome define. From ravi-lists at g8o.net Fri Sep 11 02:30:24 2009 From: ravi-lists at g8o.net ( ravi ) Date: Thu, 10 Sep 2009 22:30:24 -0400 Subject: [wp-hackers] Theme updates and generated files Message-ID: Hello all, please point me elsewhere with suitable derision if this is the wrong forum to ask. Hoping its not: Does WP's new update capability (for plugins and themes) blow away the existing directory before it installs the new version of the plugin or theme? If so, if a theme wants (or more likely it's author wants) to create some files (such as a custom stylesheet), what's a good place to put it so it doesn't get blown away on update? The DB would be a poor place, IMHO. Thank you for any comments, --ravi From if.website at gmail.com Fri Sep 11 02:43:19 2009 From: if.website at gmail.com (Austin Matzko) Date: Thu, 10 Sep 2009 21:43:19 -0500 Subject: [wp-hackers] Theme updates and generated files In-Reply-To: References: Message-ID: <674b4a3b0909101943n258f4eemc077329c3ac81db8@mail.gmail.com> On Thu, Sep 10, 2009 at 9:30 PM, [ ravi ] wrote: > Does WP's new update capability (for plugins and themes) blow away the > existing directory before it installs the new version of the plugin or > theme? Yes. > If so, if a theme wants (or more likely it's author wants) to create > some files (such as a custom stylesheet), what's a good place to put it so > it doesn't get blown away on update? The DB would be a poor place, IMHO. This has been much discussed, without much of a consensus. Please see the thread that starts here: http://lists.automattic.com/pipermail/wp-hackers/2009-February/024728.html In my opinion, your best option currently is to save something like that in the uploads directory. From wp-hackers at striderweb.com Fri Sep 11 06:15:11 2009 From: wp-hackers at striderweb.com (Stephen Rider) Date: Fri, 11 Sep 2009 01:15:11 -0500 Subject: [wp-hackers] Theme updates and generated files In-Reply-To: References: Message-ID: <9C4C305E-D76B-456D-BBD5-C65C12F42001@striderweb.com> On Sep 10, 2009, at 9:30 PM, [ ravi ] wrote: > [I]f a theme wants (or more likely it's author wants) to create some > files (such as a custom stylesheet), what's a good place to put it > so it doesn't get blown away on update? The DB would be a poor > place, IMHO. You could probably just make a "Child Theme". Stephen -- Stephen Rider http://striderweb.com/ From junsuijin at gmail.com Fri Sep 11 14:09:31 2009 From: junsuijin at gmail.com (Tynan Colin Beatty) Date: Fri, 11 Sep 2009 09:09:31 -0500 Subject: [wp-hackers] Theme updates and generated files In-Reply-To: <9C4C305E-D76B-456D-BBD5-C65C12F42001@striderweb.com> References: <9C4C305E-D76B-456D-BBD5-C65C12F42001@striderweb.com> Message-ID: <4f9525dc0909110709i22b4cc0bh76838d689aabb63f@mail.gmail.com> child theme is definitely the way to go. On Fri, Sep 11, 2009 at 1:15 AM, Stephen Rider wrote: > > On Sep 10, 2009, at 9:30 PM, [ ravi ] wrote: > > [I]f a theme wants (or more likely it's author wants) to create some files >> (such as a custom stylesheet), what's a good place to put it so it doesn't >> get blown away on update? The DB would be a poor place, IMHO. >> > > You could probably just make a "Child Theme". > > Stephen > > > -- > Stephen Rider > http://striderweb.com/ > > > > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From wordpress at dd32.id.au Fri Sep 11 14:12:37 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Sat, 12 Sep 2009 00:12:37 +1000 Subject: [wp-hackers] Theme updates and generated files In-Reply-To: <4f9525dc0909110709i22b4cc0bh76838d689aabb63f@mail.gmail.com> References: <9C4C305E-D76B-456D-BBD5-C65C12F42001@striderweb.com> <4f9525dc0909110709i22b4cc0bh76838d689aabb63f@mail.gmail.com> Message-ID: For a user-supplied CSS then a child theme is the way to go, If its however a theme-generated content item, better location is wp-content/ or the uploads folder. The uploads folder is the only location you can trust to be writable really too, the fact that some (if not most) shared hosts allow PHP to write to its current directory cannot be relied upon. On Sat, 12 Sep 2009 00:09:31 +1000, Tynan Colin Beatty wrote: > child theme is definitely the way to go. > > On Fri, Sep 11, 2009 at 1:15 AM, Stephen Rider > wrote: > >> >> On Sep 10, 2009, at 9:30 PM, [ ravi ] wrote: >> >> [I]f a theme wants (or more likely it's author wants) to create some >> files >>> (such as a custom stylesheet), what's a good place to put it so it >>> doesn't >>> get blown away on update? The DB would be a poor place, IMHO. >>> >> >> You could probably just make a "Child Theme". >> >> Stephen >> >> >> -- >> Stephen Rider >> http://striderweb.com/ >> >> >> >> >> >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) WordPressQI: http://wordpressqi.com/ From otto at ottodestruct.com Fri Sep 11 15:43:41 2009 From: otto at ottodestruct.com (Otto) Date: Fri, 11 Sep 2009 10:43:41 -0500 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> Message-ID: <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> Well, like I said, my problem with that is that you shouldn't do the other one either. If you wanted to put something in there like "you shouldn't include this file directly, go read this documentation for the right way instead" then I'd be more okay with it. -Otto On Thu, Sep 10, 2009 at 8:51 PM, Stephen Rider wrote: > > On Sep 10, 2009, at 9:25 AM, Otto wrote: > >> So, you're asking if we should instantly and intentionally break every >> plugin that includes wp-config.php? >> >> Yeah, I'm fine with it. ;) > > Heh. ?Okay, to rephrase the question (via quoting myself): > >> Here is my proposal: We should assert, in documentation and in code, that >> any time a plugin or process wants to access parts of WP (including the >> database), it should call wp-load.php. > > ... >> >> [W]e should put a "deprecated" call with the define() in wp-config (inside >> the "if it doesn't already exist" clause), so that if it does happen, there >> is a notice to the log that "You should not call wp-config.php directly. >> Call wp-load.php instead." ?Then somewhere down the road we can get rid of >> the troublesome define. > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From derek at amphibian.info Fri Sep 11 18:01:28 2009 From: derek at amphibian.info (Derek) Date: Fri, 11 Sep 2009 11:01:28 -0700 (PDT) Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> Message-ID: <7f250344-e1aa-4cec-931b-ffe326146223@n2g2000vba.googlegroups.com> I'm actually encountering this right now ... I'm making a call to: '../../../../wp-load.php' ... from within a subdirectory of my plugin directory. Obviously, if someone has chosen to move wp-content elsewhere, this breaks. So, here's a specific example Otto. ;) What I'm doing is exporting data from my plugin's DB tables into a CSV file from the admin. I can't have any other output to the browser so I can set proper headers for the file. Any ideas as to how I can achieve this from strictly within the WP framework? Best, Derek On Sep 11, 12:43?pm, Otto wrote: > Well, like I said, my problem with that is that you shouldn't do the > other one either. > > If you wanted to put something in there like "you shouldn't include > this file directly, go read this documentation for the right way > instead" then I'd be more okay with it. > > -Otto > > On Thu, Sep 10, 2009 at 8:51 PM, Stephen Rider > > > > wrote: > > > On Sep 10, 2009, at 9:25 AM, Otto wrote: > > >> So, you're asking if we should instantly and intentionally break every > >> plugin that includes wp-config.php? > > >> Yeah, I'm fine with it. ;) > > > Heh. ?Okay, to rephrase the question (via quoting myself): > > >> Here is my proposal: We should assert, in documentation and in code, that > >> any time a plugin or process wants to access parts of WP (including the > >> database), it should call wp-load.php. > > > ... > > >> [W]e should put a "deprecated" call with the define() in wp-config (inside > >> the "if it doesn't already exist" clause), so that if it does happen, there > >> is a notice to the log that "You should not call wp-config.php directly. > >> Call wp-load.php instead." ?Then somewhere down the road we can get rid of > >> the troublesome define. > > > _______________________________________________ > > wp-hackers mailing list > > wp-hack... at lists.automattic.com > >http://lists.automattic.com/mailman/listinfo/wp-hackers > > _______________________________________________ > wp-hackers mailing list > wp-hack... at lists.automattic.comhttp://lists.automattic.com/mailman/listinfo/wp-hackers From matt at sivel.net Fri Sep 11 18:10:10 2009 From: matt at sivel.net (Matt Martz) Date: Fri, 11 Sep 2009 14:10:10 -0400 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <7f250344-e1aa-4cec-931b-ffe326146223@n2g2000vba.googlegroups.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> <7f250344-e1aa-4cec-931b-ffe326146223@n2g2000vba.googlegroups.com> Message-ID: <518fa9630909111110r169cb8bav86f916c7857946b1@mail.gmail.com> On Fri, Sep 11, 2009 at 2:01 PM, Derek wrote: > I'm actually encountering this right now ... I'm making a call to: > > '../../../../wp-load.php' > > ... from within a subdirectory of my plugin directory. ?Obviously, if > someone has chosen to move wp-content elsewhere, this breaks. ?So, > here's a specific example Otto. ?;) > > What I'm doing is exporting data from my plugin's DB tables into a CSV > file from the admin. I can't have any other output to the browser so I > can set proper headers for the file. > > Any ideas as to how I can achieve this from strictly within the WP > framework? > > Best, > Derek Perhaps one of the best solutions is using admin-ajax.php. Take a look at the source, and you will quickly find out how easy it is to use and how to use it. -- Matt Martz matt at sivel.net http://sivel.net/ From sbruner at slipfire.com Fri Sep 11 19:17:48 2009 From: sbruner at slipfire.com (Steve Bruner [SlipFire]) Date: Fri, 11 Sep 2009 15:17:48 -0400 Subject: [wp-hackers] Custom Templates in sub-folder Message-ID: Created a custom template and placed it in a sub-directory of my theme. When I look at the template list on Add New Page, my custom template is listed (only seems to work one folder level back). However, WP uses Page.php (in theme root), instead of my custom template. Is this a bug in WP or am I missing something? Steve From wordpress at dd32.id.au Sat Sep 12 02:04:05 2009 From: wordpress at dd32.id.au (Dion Hulse (dd32)) Date: Sat, 12 Sep 2009 12:04:05 +1000 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <518fa9630909111110r169cb8bav86f916c7857946b1@mail.gmail.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> <7f250344-e1aa-4cec-931b-ffe326146223@n2g2000vba.googlegroups.com> <518fa9630909111110r169cb8bav86f916c7857946b1@mail.gmail.com> Message-ID: admin-post.php would be better suited IMO wp-admin/admin-post.php?action=myplugin_export_db add_action('admin_post_myplugin_export_db', 'my_plugin_export_the_db_now'); function my_plugin_export_the_db_now() { echo 'Hello World!'; } If the user isnt logged in, The hook fired is admin_post_nopriv_myplugin_export_db So its possible to differentiate between a logged in user, and one that has either not been logged in, or more likely, who's admin session has expired. Also, Don't forget the nonce proetection on such a URL.. You can use admin-ajax.php, I just prefer to seeadmin-post.php used for everything other than Ajaxy things myself.. On Sat, 12 Sep 2009 04:10:10 +1000, Matt Martz wrote: > On Fri, Sep 11, 2009 at 2:01 PM, Derek wrote: >> I'm actually encountering this right now ... I'm making a call to: >> >> '../../../../wp-load.php' >> >> ... from within a subdirectory of my plugin directory. Obviously, if >> someone has chosen to move wp-content elsewhere, this breaks. So, >> here's a specific example Otto. ;) >> >> What I'm doing is exporting data from my plugin's DB tables into a CSV >> file from the admin. I can't have any other output to the browser so I >> can set proper headers for the file. >> >> Any ideas as to how I can achieve this from strictly within the WP >> framework? >> >> Best, >> Derek > > Perhaps one of the best solutions is using admin-ajax.php. > > Take a look at the source, and you will quickly find out how easy it > is to use and how to use it. > -- -- Dion Hulse e: contact at dd32.id.au w: http://dd32.id.au/ m: 04 6621 9112 (+614 6621 9112) WordPressQI: http://wordpressqi.com/ From sudar at sudarmuthu.com Sat Sep 12 11:55:39 2009 From: sudar at sudarmuthu.com (Sudar Muthu) Date: Sat, 12 Sep 2009 17:25:39 +0530 Subject: [wp-hackers] Retrieving post id based on the page title Message-ID: <485dd1460909120455x2398a728m2616292876aae861@mail.gmail.com> Hello all, I need to know if there is a built-in function (or recommended way) to retrieve the post id of a page/post based on the post title, without querying the database directly. I know it can be done by querying the database, but I prefer to use the build-in function if available. A quick look into WordPress code, didn't reveal any function. Thanks! With Regards, Sudar http://SudarMuthu.com http://twitter.com/sudarmuthu From joost at yoast.com Sat Sep 12 11:59:18 2009 From: joost at yoast.com (Joost de Valk) Date: Sat, 12 Sep 2009 13:59:18 +0200 Subject: [wp-hackers] Retrieving post id based on the page title In-Reply-To: <485dd1460909120455x2398a728m2616292876aae861@mail.gmail.com> References: <485dd1460909120455x2398a728m2616292876aae861@mail.gmail.com> Message-ID: <8EBCA092-5A0A-4EC5-A645-416A198D467D@yoast.com> There's a get_page_by_title, modify it to use with posts, in fact, it should probably be modified within core? http://xref.yoast.com/2.8.4/nav.html?_functions/get_page_by_title.html Cheers, Joost On Sep 12, 2009, at 1:55 PM, Sudar Muthu wrote: > Hello all, > > I need to know if there is a built-in function (or recommended way) to > retrieve the post id of a page/post based on the post title, without > querying the database directly. > > I know it can be done by querying the database, but I prefer to use > the > build-in function if available. A quick look into WordPress code, > didn't > reveal any function. > > Thanks! > > With Regards, > Sudar > > http://SudarMuthu.com > http://twitter.com/sudarmuthu > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers From sudar at sudarmuthu.com Sat Sep 12 12:10:04 2009 From: sudar at sudarmuthu.com (Sudar Muthu) Date: Sat, 12 Sep 2009 17:40:04 +0530 Subject: [wp-hackers] Retrieving post id based on the page title In-Reply-To: <8EBCA092-5A0A-4EC5-A645-416A198D467D@yoast.com> References: <485dd1460909120455x2398a728m2616292876aae861@mail.gmail.com> <8EBCA092-5A0A-4EC5-A645-416A198D467D@yoast.com> Message-ID: <485dd1460909120510ycc88fb4g5482f41cca488326@mail.gmail.com> Joost, Thanks for pointing out this function. (I missed it when I looked into WordPress code) I had a quick look into the function and it is using the following query SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type='page'", $page_title ) If post revisions is enabled, and there is a auto-save version available will it not get the id of the revision post row rather than the one which was published? My gut feeling says that we should also include the condition post_status = 'published'. Am I correct or am I missing something? (I will do some test to find out whether my theory works!) With Regards, Sudar http://SudarMuthu.com http://twitter.com/sudarmuthu On Sat, Sep 12, 2009 at 17:29, Joost de Valk wrote: > There's a get_page_by_title, modify it to use with posts, in fact, it > should probably be modified within core? > > http://xref.yoast.com/2.8.4/nav.html?_functions/get_page_by_title.html > > Cheers, > Joost > > > > On Sep 12, 2009, at 1:55 PM, Sudar Muthu wrote: > > Hello all, >> >> I need to know if there is a built-in function (or recommended way) to >> retrieve the post id of a page/post based on the post title, without >> querying the database directly. >> >> I know it can be done by querying the database, but I prefer to use the >> build-in function if available. A quick look into WordPress code, didn't >> reveal any function. >> >> Thanks! >> >> With Regards, >> Sudar >> >> http://SudarMuthu.com >> http://twitter.com/sudarmuthu >> _______________________________________________ >> wp-hackers mailing list >> wp-hackers at lists.automattic.com >> http://lists.automattic.com/mailman/listinfo/wp-hackers >> > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From ravi-lists at g8o.net Sat Sep 12 21:23:16 2009 From: ravi-lists at g8o.net ( ravi ) Date: Sat, 12 Sep 2009 17:23:16 -0400 Subject: [wp-hackers] Theme updates and generated files In-Reply-To: References: <9C4C305E-D76B-456D-BBD5-C65C12F42001@striderweb.com> <4f9525dc0909110709i22b4cc0bh76838d689aabb63f@mail.gmail.com> Message-ID: <1C97B300-BE74-4A19-BE2F-3C77089E77BB@g8o.net> All, Thank you for the responses -- I should have checked the archives, since the discussion seems to have been extensive. If indeed the theme directory is to be wiped, then I am leaning towards storing persistent files in wp_contents rather than uploads (despite the caution that only uploads is guaranteed to be writeable). The suggestion of a "child theme" is a valuable one too. Again, thank you, --ravi From derek at amphibian.info Sun Sep 13 12:16:09 2009 From: derek at amphibian.info (Derek) Date: Sun, 13 Sep 2009 05:16:09 -0700 (PDT) Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> <7f250344-e1aa-4cec-931b-ffe326146223@n2g2000vba.googlegroups.com> <518fa9630909111110r169cb8bav86f916c7857946b1@mail.gmail.com> Message-ID: <3f7a85bb-e446-4ba5-af8b-ae56cd401501@w10g2000yqf.googlegroups.com> I'll try admin-post.php, great idea. Thanks. On Sep 11, 11:04?pm, "Dion Hulse (dd32)" wrote: > admin-post.php would be better suited IMO > > wp-admin/admin-post.php?action=myplugin_export_db > > add_action('admin_post_myplugin_export_db', 'my_plugin_export_the_db_now'); > function my_plugin_export_the_db_now() { > ? ? echo 'Hello World!'; > > } > > If the user isnt logged in, The hook fired is > > admin_post_nopriv_myplugin_export_db > > So its possible to differentiate between a logged in user, and one that ? > has either not been logged in, or more likely, who's admin session has ? > expired. > > Also, Don't forget the nonce proetection on such a URL.. > > You can use admin-ajax.php, I just prefer to seeadmin-post.php used for ? > everything other than Ajaxy things myself.. > > > > > > On Sat, 12 Sep 2009 04:10:10 +1000, Matt Martz wrote: > > On Fri, Sep 11, 2009 at 2:01 PM, Derek wrote: > >> I'm actually encountering this right now ... I'm making a call to: > > >> '../../../../wp-load.php' > > >> ... from within a subdirectory of my plugin directory. ?Obviously, if > >> someone has chosen to move wp-content elsewhere, this breaks. ?So, > >> here's a specific example Otto. ?;) > > >> What I'm doing is exporting data from my plugin's DB tables into a CSV > >> file from the admin. I can't have any other output to the browser so I > >> can set proper headers for the file. > > >> Any ideas as to how I can achieve this from strictly within the WP > >> framework? > > >> Best, > >> Derek > > > Perhaps one of the best solutions is using admin-ajax.php. > > > Take a look at the source, and you will quickly find out how easy it > > is to use and how to use it. > > -- > -- > Dion Hulse > e: cont... at dd32.id.au > w:http://dd32.id.au/ > m: 04 6621 9112 (+614 6621 9112) > WordPressQI:http://wordpressqi.com/ > _______________________________________________ > wp-hackers mailing list > wp-hack... at lists.automattic.comhttp://lists.automattic.com/mailman/listinfo/wp-hackers From jeremy at visser.name Mon Sep 14 01:42:15 2009 From: jeremy at visser.name (Jeremy Visser) Date: Mon, 14 Sep 2009 11:42:15 +1000 Subject: [wp-hackers] how to append some tag to post automatically, when it is published? In-Reply-To: <67dfa4090909100734j2ad18bbej2621976c69ceec80@mail.gmail.com> References: <67dfa4090909100617h5a573ba1y5f4eab395019aa9a@mail.gmail.com> <161617690909100723r62324ea3q5a11c22c1e220c5d@mail.gmail.com> <67dfa4090909100734j2ad18bbej2621976c69ceec80@mail.gmail.com> Message-ID: <1252892535.5627.3.camel@rillian.narnia.sunriseroad.net> On Thu, 2009-09-10 at 16:34 +0200, Konrad Karpieszuk wrote: > thank you very much :) > btw. is it a right place for this kind of questions? i asked this yesterday > at forum but nobody answered, so i tried here ;) but when i look at your > discussions i am not sure if it is good place to ask :) Generally it?s preferred you post on the forums first. but for a slightly more technical question, such as yours, you?re more likely to get some sort of answer. This is because if nobody can immediately answer your question in the forums, it unfortunately tends to get ignored, rather than a constructive response. From sudar at sudarmuthu.com Mon Sep 14 14:29:55 2009 From: sudar at sudarmuthu.com (Sudar Muthu) Date: Mon, 14 Sep 2009 19:59:55 +0530 Subject: [wp-hackers] Activation hook exist for themes? In-Reply-To: <4A9C4449.8020708@gmail.com> References: <4A9A6BCB.9090302@gmail.com> <4A9C4449.8020708@gmail.com> Message-ID: <485dd1460909140729i5bff393dh2008fa7a1feac919@mail.gmail.com> Hi all, (Sorry for digging the old thread) Ozh solution is nice, but it will get triggered every time any theme is activated. I wanted to trigger a function only when my theme is triggered. Is it possible to do that? With Regards, Sudar http://SudarMuthu.com http://twitter.com/sudarmuthu On Tue, Sep 1, 2009 at 03:14, rajasekharan wrote: > I went with Ozh's approach and it worked well. But still, a formal method > for this would be convenient and > give us some peace of mind. Who knows? Something may change in the next > version and this method may break. > Hope the core people are reading this thread. > > Peter Westwood wrote: > >> On 31 Aug 2009, at 00:46, Dion Hulse (dd32) wrote: >> >> Theres a ticket, there was a messy patch from me(IIRC) but i dont think >>> its in core yet. >>> >> >> This is what I was thinking of: >> >> When WordPress switches themes it fires the switch_theme action. >> >> Unfortunately this is run before the theme is active so is really more use >> as a deactivation hook. >> >> Peter >> > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From junsuijin at gmail.com Mon Sep 14 14:33:58 2009 From: junsuijin at gmail.com (Tynan Colin Beatty) Date: Mon, 14 Sep 2009 09:33:58 -0500 Subject: [wp-hackers] Activation hook exist for themes? In-Reply-To: <485dd1460909140729i5bff393dh2008fa7a1feac919@mail.gmail.com> References: <4A9A6BCB.9090302@gmail.com> <4A9C4449.8020708@gmail.com> <485dd1460909140729i5bff393dh2008fa7a1feac919@mail.gmail.com> Message-ID: <4f9525dc0909140733t4d66976avbbf55ec1fa983410@mail.gmail.com> your theme's functions.php will only load when it is the active theme, so Ozh's solution will only trigger when your theme is activated. On Mon, Sep 14, 2009 at 9:29 AM, Sudar Muthu wrote: > Hi all, > > (Sorry for digging the old thread) > > Ozh solution is nice, but it will get triggered every time any theme is > activated. I wanted to trigger a function only when my theme is triggered. > Is it possible to do that? > > With Regards, > Sudar > > http://SudarMuthu.com > http://twitter.com/sudarmuthu > > > On Tue, Sep 1, 2009 at 03:14, rajasekharan wrote: > > > I went with Ozh's approach and it worked well. But still, a formal method > > for this would be convenient and > > give us some peace of mind. Who knows? Something may change in the next > > version and this method may break. > > Hope the core people are reading this thread. > > > > Peter Westwood wrote: > > > >> On 31 Aug 2009, at 00:46, Dion Hulse (dd32) wrote: > >> > >> Theres a ticket, there was a messy patch from me(IIRC) but i dont think > >>> its in core yet. > >>> > >> > >> This is what I was thinking of: > >> > >> When WordPress switches themes it fires the switch_theme action. > >> > >> Unfortunately this is run before the theme is active so is really more > use > >> as a deactivation hook. > >> > >> Peter > >> > > > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From sudar at sudarmuthu.com Mon Sep 14 15:06:22 2009 From: sudar at sudarmuthu.com (Sudar Muthu) Date: Mon, 14 Sep 2009 20:36:22 +0530 Subject: [wp-hackers] Activation hook exist for themes? In-Reply-To: <4f9525dc0909140733t4d66976avbbf55ec1fa983410@mail.gmail.com> References: <4A9A6BCB.9090302@gmail.com> <4A9C4449.8020708@gmail.com> <485dd1460909140729i5bff393dh2008fa7a1feac919@mail.gmail.com> <4f9525dc0909140733t4d66976avbbf55ec1fa983410@mail.gmail.com> Message-ID: <485dd1460909140806n2be01b81n994b2827737277c1@mail.gmail.com> Tynan, Thanks for the explanation, now I get it :) With Regards, Sudar http://SudarMuthu.com http://twitter.com/sudarmuthu On Mon, Sep 14, 2009 at 20:03, Tynan Colin Beatty wrote: > your theme's functions.php will only load when it is the active theme, so > Ozh's solution will only trigger when your theme is activated. > > On Mon, Sep 14, 2009 at 9:29 AM, Sudar Muthu wrote: > > > Hi all, > > > > (Sorry for digging the old thread) > > > > Ozh solution is nice, but it will get triggered every time any theme is > > activated. I wanted to trigger a function only when my theme is > triggered. > > Is it possible to do that? > > > > With Regards, > > Sudar > > > > http://SudarMuthu.com > > http://twitter.com/sudarmuthu > > > > > > On Tue, Sep 1, 2009 at 03:14, rajasekharan > wrote: > > > > > I went with Ozh's approach and it worked well. But still, a formal > method > > > for this would be convenient and > > > give us some peace of mind. Who knows? Something may change in the next > > > version and this method may break. > > > Hope the core people are reading this thread. > > > > > > Peter Westwood wrote: > > > > > >> On 31 Aug 2009, at 00:46, Dion Hulse (dd32) wrote: > > >> > > >> Theres a ticket, there was a messy patch from me(IIRC) but i dont > think > > >>> its in core yet. > > >>> > > >> > > >> This is what I was thinking of: > > >> > > >> When WordPress switches themes it fires the switch_theme action. > > >> > > >> Unfortunately this is run before the theme is active so is really more > > use > > >> as a deactivation hook. > > >> > > >> Peter > > >> > > > > > > _______________________________________________ > > > wp-hackers mailing list > > > wp-hackers at lists.automattic.com > > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From sudar at sudarmuthu.com Mon Sep 14 17:16:17 2009 From: sudar at sudarmuthu.com (Sudar Muthu) Date: Mon, 14 Sep 2009 22:46:17 +0530 Subject: [wp-hackers] Custom Templates in sub-folder In-Reply-To: References: Message-ID: <485dd1460909141016k107d4145if6bb803c5f3957e4@mail.gmail.com> Hello all, I digged a little deeper into the code and found that there is a discrepancy in the way page templates are handled. (I checked WordPress 2.8.4 code) First in the write page and edit page admin pages, the list of page templates is retrieved using the get_themes() function in wp-include/theme.php file. In this function, we are iterating in the current directory and all sub directory to get template files. So if I place a page-template file inside a sub directory (single level) then it will be displayed in the admin pages. When the page is rendered, locate_template() function again from wp-include/theme.php file is invoked. In this function, we are checking for the page template only from the theme's directory and not in sub-directory. So by default the page.php template will be used. This is surely a bug, but I am not sure where the fix should go. Placing page-template files in a separate directory could be handy. In that case we might have to modify locate_template() function. With Regards, Sudar http://SudarMuthu.com http://twitter.com/sudarmuthu On Sat, Sep 12, 2009 at 00:47, Steve Bruner [SlipFire] wrote: > Created a custom template and placed it in a sub-directory of my theme. > When I look at the template list on Add New Page, my custom template is > listed (only seems to work one folder level back). However, WP uses > Page.php (in theme root), instead of my custom template. > > Is this a bug in WP or am I missing something? > > Steve > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From matt at sivel.net Mon Sep 14 17:31:02 2009 From: matt at sivel.net (Matt Martz) Date: Mon, 14 Sep 2009 13:31:02 -0400 Subject: [wp-hackers] Custom Templates in sub-folder In-Reply-To: <485dd1460909141016k107d4145if6bb803c5f3957e4@mail.gmail.com> References: <485dd1460909141016k107d4145if6bb803c5f3957e4@mail.gmail.com> Message-ID: <518fa9630909141031v700c06a2r97d55c4107bf8399@mail.gmail.com> On Mon, Sep 14, 2009 at 1:16 PM, Sudar Muthu wrote: > This is surely a bug, but I am not sure where the fix should go. Placing > page-template files in a separate directory could be handy. In that case we > might have to modify locate_template() function. I would think that the meta value inserted in the database should be the path relative to the theme directory. So something like: my-sub-dir/my-page-template.php -- Matt Martz matt at sivel.net http://sivel.net/ From sudar at sudarmuthu.com Mon Sep 14 17:35:10 2009 From: sudar at sudarmuthu.com (Sudar Muthu) Date: Mon, 14 Sep 2009 23:05:10 +0530 Subject: [wp-hackers] Custom Templates in sub-folder In-Reply-To: <518fa9630909141031v700c06a2r97d55c4107bf8399@mail.gmail.com> References: <485dd1460909141016k107d4145if6bb803c5f3957e4@mail.gmail.com> <518fa9630909141031v700c06a2r97d55c4107bf8399@mail.gmail.com> Message-ID: <485dd1460909141035k47530dcbldfc6af5ecb38f6f8@mail.gmail.com> Yeah, if the inserted meta value is my-sub-dir/my-page-template.php then it should solve the problem. If anyone else, (apart from me) is able to replicate the issue, then I will open a ticket. With Regards, Sudar http://SudarMuthu.com http://twitter.com/sudarmuthu On Mon, Sep 14, 2009 at 23:01, Matt Martz wrote: > On Mon, Sep 14, 2009 at 1:16 PM, Sudar Muthu wrote: > > This is surely a bug, but I am not sure where the fix should go. Placing > > page-template files in a separate directory could be handy. In that case > we > > might have to modify locate_template() function. > > I would think that the meta value inserted in the database should be > the path relative to the theme directory. > > So something like: my-sub-dir/my-page-template.php > > -- > Matt Martz > matt at sivel.net > http://sivel.net/ > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From kkarpieszuk at gmail.com Mon Sep 14 19:30:21 2009 From: kkarpieszuk at gmail.com (Konrad Karpieszuk) Date: Mon, 14 Sep 2009 21:30:21 +0200 Subject: [wp-hackers] how to use wp_version_check() function? Message-ID: <67dfa4090909141230y610a2d3qd1f4ca583e9452@mail.gmail.com> hello :) I am this guy who created few days ago plugin to notify by email if new version of wordpress is available. http://www.muzungu.pl/moje-pluginy-do-wordpressa/upgrade-notification-by-email/ in many places (eg http://www.wptavern.com/upgrade-notifications-by-email ) you suggest me to use function wp_version_check() but i don't know how to do this :( i found its description in update.php file but i still dont know how to use it. i see that i return false or null. ok, but what it returns else? could anyone axplain me how to check if new version of wordpress is available using this function and if it is available perform some action (for example print "is available")? i tried to use this function in template file footer.php. i putted there: and it prints "not ok" at wordpress 2.8.1 and at 2.8.4. so result is thesame on not actual and actual version of wordpress :( -- (en) regards / (pl) pozdrawiam Konrad Karpieszuk http://konradjestwrwandzie.wordpress.com/ From otto at ottodestruct.com Mon Sep 14 19:46:38 2009 From: otto at ottodestruct.com (Otto) Date: Mon, 14 Sep 2009 14:46:38 -0500 Subject: [wp-hackers] how to use wp_version_check() function? In-Reply-To: <67dfa4090909141230y610a2d3qd1f4ca583e9452@mail.gmail.com> References: <67dfa4090909141230y610a2d3qd1f4ca583e9452@mail.gmail.com> Message-ID: <161617690909141246n1752897dqbfb5270cbcd4fcce@mail.gmail.com> wp_version_check() performs the version check, and then sets the update_core transient if there's a new version. It doesn't return anything of value. Basically, WordPress checks for updates all by itself. All you have to do is to do a get_transient( 'update_core' ) and then, when it changes, it'll have information about a new version in it which you can use to send the email. -Otto On Mon, Sep 14, 2009 at 2:30 PM, Konrad Karpieszuk wrote: > hello :) > I am this guy who created few days ago plugin to notify by email if new > version of wordpress is available. > http://www.muzungu.pl/moje-pluginy-do-wordpressa/upgrade-notification-by-email/ > > in many places (eg http://www.wptavern.com/upgrade-notifications-by-email ) > you suggest me to use function wp_version_check() but i don't know how to do > this :( > > i found its description in update.php file but i still dont know how to use > it. i see that i return false or null. ok, but what it returns else? > > could anyone axplain me how to check if new version of wordpress is > available using this function and if it is available perform some action > (for example print "is available")? > > i tried to use this function in template file footer.php. i putted there: > > > > and it prints "not ok" at wordpress 2.8.1 and at 2.8.4. so result is thesame > on not actual and actual version of wordpress :( > > -- > (en) regards / (pl) pozdrawiam > Konrad Karpieszuk > http://konradjestwrwandzie.wordpress.com/ > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > From kkarpieszuk at gmail.com Mon Sep 14 21:09:15 2009 From: kkarpieszuk at gmail.com (Konrad Karpieszuk) Date: Mon, 14 Sep 2009 23:09:15 +0200 Subject: [wp-hackers] how to use wp_version_check() function? In-Reply-To: <161617690909141246n1752897dqbfb5270cbcd4fcce@mail.gmail.com> References: <67dfa4090909141230y610a2d3qd1f4ca583e9452@mail.gmail.com> <161617690909141246n1752897dqbfb5270cbcd4fcce@mail.gmail.com> Message-ID: <67dfa4090909141409t46cc3155iba08da69d0860b7c@mail.gmail.com> ooook :) so now i understand :) so if i want to check which version i have, i need to do this piece of code: // it takes all information: $update_core = get_transient('update_core'); // it takes information sent from wordpress server: $za = $update_core->updates; // it takes information about version with locale same as out (eg pl_PL) $zb = $za[0]; // and it takes info which version we have comparing to server version $zm = $zb->response; // return: "latest" for latest, "upgrade" if we have too old version and "development" if we have for example wordpress 12.4.2 ;) echo $zm; it's not a question :) i checked and it works, but i wrote those obvious things for people who will google this email ;) On Mon, Sep 14, 2009 at 9:46 PM, Otto wrote: > wp_version_check() performs the version check, and then sets the > update_core transient if there's a new version. It doesn't return > anything of value. > > Basically, WordPress checks for updates all by itself. All you have to > do is to do a get_transient( 'update_core' ) and then, when it > changes, it'll have information about a new version in it which you > can use to send the email. > > -Otto > > > > On Mon, Sep 14, 2009 at 2:30 PM, Konrad Karpieszuk > wrote: > > hello :) > > I am this guy who created few days ago plugin to notify by email if new > > version of wordpress is available. > > > http://www.muzungu.pl/moje-pluginy-do-wordpressa/upgrade-notification-by-email/ > > > > in many places (eg > http://www.wptavern.com/upgrade-notifications-by-email ) > > you suggest me to use function wp_version_check() but i don't know how to > do > > this :( > > > > i found its description in update.php file but i still dont know how to > use > > it. i see that i return false or null. ok, but what it returns else? > > > > could anyone axplain me how to check if new version of wordpress is > > available using this function and if it is available perform some action > > (for example print "is available")? > > > > i tried to use this function in template file footer.php. i putted there: > > > > ?> > > > > and it prints "not ok" at wordpress 2.8.1 and at 2.8.4. so result is > thesame > > on not actual and actual version of wordpress :( > > > > -- > > (en) regards / (pl) pozdrawiam > > Konrad Karpieszuk > > http://konradjestwrwandzie.wordpress.com/ > > _______________________________________________ > > wp-hackers mailing list > > wp-hackers at lists.automattic.com > > http://lists.automattic.com/mailman/listinfo/wp-hackers > > > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > -- (en) regards / (pl) pozdrawiam Konrad Karpieszuk http://konradjestwrwandzie.wordpress.com/ From johnbillion+wp at gmail.com Mon Sep 14 23:05:17 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Tue, 15 Sep 2009 00:05:17 +0100 Subject: [wp-hackers] vs Message-ID: <1fa535a70909141605w508db36y7fe3b5dff070597b@mail.gmail.com> I've just noticed that the Strikethrough button in TinyMCE doesn't use the tag as one might expect. It instead uses . However, when using HTML mode in the editor, a tag is used, complete with a datetime attribute. Surely the tag is the more semantic option? Any opinions? Not sure if this is WP-specific or a TinyMCE thing, I've not looked into the code yet. John. From johnbillion+wp at gmail.com Mon Sep 14 23:09:12 2009 From: johnbillion+wp at gmail.com (John Blackbourn) Date: Tue, 15 Sep 2009 00:09:12 +0100 Subject: [wp-hackers] wp-hackers archives missing Message-ID: <1fa535a70909141609g7e5313c0m164379a22eb7abf5@mail.gmail.com> August and September are missing from the wp-hackers archives at http://comox.textdrive.com/pipermail/wp-hackers/ . Has the list moved servers? From matt at sivel.net Mon Sep 14 23:16:00 2009 From: matt at sivel.net (Matt Martz) Date: Mon, 14 Sep 2009 19:16:00 -0400 Subject: [wp-hackers] wp-hackers archives missing In-Reply-To: <1fa535a70909141609g7e5313c0m164379a22eb7abf5@mail.gmail.com> References: <1fa535a70909141609g7e5313c0m164379a22eb7abf5@mail.gmail.com> Message-ID: <518fa9630909141616m760c1d93le0c94b8331541a19@mail.gmail.com> On Mon, Sep 14, 2009 at 7:09 PM, John Blackbourn wrote: > August and September are missing from the wp-hackers archives at > http://comox.textdrive.com/pipermail/wp-hackers/ . Has the list moved > servers? > _______________________________________________ > wp-hackers mailing list > wp-hackers at lists.automattic.com > http://lists.automattic.com/mailman/listinfo/wp-hackers > They have indeed moved. http://lists.automattic.com/pipermail/wp-hackers/ You can always check the email headers as the link is in there or http://lists.automattic.com/ and click on your list and then the archives link. -- Matt Martz matt at sivel.net http://sivel.net/ From scribu at gmail.com Tue Sep 15 00:15:39 2009 From: scribu at gmail.com (scribu) Date: Tue, 15 Sep 2009 03:15:39 +0300 Subject: [wp-hackers] Custom Templates in sub-folder In-Reply-To: <485dd1460909141035k47530dcbldfc6af5ecb38f6f8@mail.gmail.com> References: <485dd1460909141016k107d4145if6bb803c5f3957e4@mail.gmail.com> <518fa9630909141031v700c06a2r97d55c4107bf8399@mail.gmail.com> <485dd1460909141035k47530dcbldfc6af5ecb38f6f8@mail.gmail.com> Message-ID: <349fe48b0909141715w7e75d07bub48e2dabcfd82e8f@mail.gmail.com> On Mon, Sep 14, 2009 at 8:35 PM, Sudar Muthu wrote: > If anyone else, (apart from me) is able to replicate the issue, then I will > open a ticket. > > With Regards, > Sudar > > http://SudarMuthu.com > http://twitter.com/sudarmuthu > Reproduced in trunk. Feel free to open the ticket. -- http://scribu.net From liste at srpski.biz Tue Sep 15 03:37:00 2009 From: liste at srpski.biz (=?UTF-8?B?TWlsYW4gRGluacSH?=) Date: Tue, 15 Sep 2009 05:37:00 +0200 Subject: [wp-hackers] Adding javascript code after script is enqueued Message-ID: <9b6c20460909142037m7d040562uedb905c870da5c7f@mail.gmail.com> Is there way to add javascript code immediately after script is enqueued? I found function wp_localize_script, but it adds code before script enqueuing. I am asking this because of following problem. jQuery file included in WordPress is different from official one in that it has jQuery.noConflict at it end. If we use jQuery from Google AJAX Libraries, there is noconflict so we need to add it. Author of plugin Use Google Libraries (which enables use of files from Google?s servers) solved this by enqueuing file jQnc.js (which whole content is jQuery.noConflict(); ) . It is lightweight but it needs another request and headers could be up to kilobyte. It would be better if noConflict code is added in html of page, it will not increase page size, but it will remove one request. I asked Jason could he enable this but he said that he is not aware of way to do this with WP API. So, does anyone knows solution for this? Thanks From wp-hackers at striderweb.com Tue Sep 15 04:26:23 2009 From: wp-hackers at striderweb.com (Stephen Rider) Date: Mon, 14 Sep 2009 23:26:23 -0500 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> Message-ID: <6A8D8FCC-1127-494C-9E3C-AEAC207C546E@striderweb.com> On Sep 11, 2009, at 10:43 AM, Otto wrote: > Well, like I said, my problem with that is that you shouldn't do the > other one either. Okay then, here's an example that probably comes up a lot in plugins. I want to make a CSS file that gets some of its stuff from PHP. So "mystyles.css.php". Most of it is a simple echo, but a few things in the stylesheet are pulled from settings on the wp_settings table in the database. The CSS/PHP file is pulled directly by the browser and is thus not "WP Aware". How would I get that file to access the WP database? Stephen P.S. -- Also, if we're going to encourage coders to do it the right way, examples such as this would be a good idea to put into the Codex. :-) From admin at laptoptips.ca Tue Sep 15 06:13:40 2009 From: admin at laptoptips.ca (Andrew Ozz) Date: Mon, 14 Sep 2009 23:13:40 -0700 Subject: [wp-hackers] wp-config.php, wp-load.php, and ABSPATH In-Reply-To: <6A8D8FCC-1127-494C-9E3C-AEAC207C546E@striderweb.com> References: <878933FE-8C92-4D22-82A2-7DECEFE0CFA7@striderweb.com> <161617690909100658n69d4ccb2ne763f50e10d850a0@mail.gmail.com> <288AD088-56FE-4E5E-BED0-3A2C9CDB9C50@striderweb.com> <161617690909100725t2078f6e8o740971ea7c895ee@mail.gmail.com> <161617690909110843q41ce85efr63b36dbded0f0371@mail.gmail.com> <6A8D8FCC-1127-494C-9E3C-AEAC207C546E@striderweb.com> Message-ID: <4AAF3094.3050905@laptoptips.ca> Stephen Rider wrote: > Okay then, here's an example that probably comes up a lot in plugins. > > I want to make a CSS file that gets some of its stuff from PHP. So > "mystyles.css.php". Most of it is a simple echo, but a few things in > the stylesheet are pulled from settings on the wp_settings table in the > database. > > The CSS/PHP file is pulled directly by the browser and is thus not "WP > Aware". How would I get that file to access the WP database? Short answer: you can't. Best option is to add a normal stylesheet and then output any bits that depend on the db in a '; } Remember, that you can have multiple .class's , ie. style.css: .textColor1 { font-weight: bold; } and the above code, End result is that you get bolded coloured text. The Monotone theme is the first theme which comes to mind which shows that system in use. On Tue, 15 Sep 2009 18:58:48 +1000, J?rn R?der wrote: > Hi, > I think, you can? > > i try this: > - create style.css.php > > -embed new styles > - style.css: > @import url(style.css.php); > > - style.css.php: > > require_once("../../../wp-blog-header.php"); > header("Content-type: text/css"); > ?> > @charset ''; > > #header:after, > .header:after { > content:'' > } > > I don't now if there are any problems with caching, but you can read > this article on smashingmagazine about php and css. Maybee it will > help you. > http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/ > > > > Am 15.09.2009 um 08:13 schrieb Andrew Ozz: > >> Stephen Rider wrote: >>> Okay then, here's an example that probably comes up a lot in plugins. >>> I want to make a CSS file that gets some of its stuff from PHP. So >>> "mystyles.css.php". Most of it is a simple echo, but a few things >>> in the stylesheet are pulled from settings on the wp_settings table >>> in the database. >>> The CSS/PHP file is pulled directly by the browser and is thus not >>> "WP Aware". How would I get that file to access the WP database? >> >> Short answer: you can't. Best option is to add a normal stylesheet >> and then output any bits that depend on the db in a '; > } > > Remember, that you can have multiple .class's , ie. > style.css: > .textColor1 { > font-weight: bold; > } > > and the above code, End result is that you get bolded coloured text. > > The Monotone theme is the first theme which comes to mind which shows that > system in use. > > > > On Tue, 15 Sep 2009 18:58:48 +1000, J?rn R?der > wrote: > > Hi, >> I think, you can? >> >> i try this: >> - create style.css.php >> >> -embed new styles >> - style.css: >> @import url(style.css.php); >> >> - style.css.php: >> >> > require_once("../../../wp-blog-header.php"); >> header("Content-type: text/css"); >> ?> >> @charset ''; >> >> #header:after, >> .header:after { >> content:'' >> } >> >> I don't now if there are any problems with caching, but you can read >> this article on smashingmagazine about php and css. Maybee it will >> help you. >> >> http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/ >> >> >> >> Am 15.09.2009 um 08:13 schrieb Andrew Ozz: >> >> Stephen Rider wrote: >>> >>>> Okay then, here's an example that probably comes up a lot in plugins. >>>> I want to make a CSS file that gets some of its stuff from PHP. So >>>> "mystyles.css.php". Most of it is a simple echo, but a few things >>>> in the stylesheet are pulled from settings on the wp_settings table >>>> in the database. >>>> The CSS/PHP file is pulled directly by the browser and is thus not >>>> "WP Aware". How would I get that file to access the WP database? >>>> >>> >>> Short answer: you can't. Best option is to add a normal stylesheet >>> and then output any bits that depend on the db in a