Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5181 closed enhancement (fixed)

Refactoring Atom support; baby step #1

Reported by: rubys's profile rubys Owned by: westi's profile westi
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch has-docs
Focuses: Cc:

Description

Overall goal is to converge to a single place each where atom entries are created and consumed. This is a first step.

Move prep_content from wp-app to feed.php; use by both wp-app and feed-atom.

Attachments (2)

prep_content.2.patch (5.2 KB) - added by rubys 17 years ago.
s/prep_content/prep_atom_text_construct/
prep_content.patch (5.8 KB) - added by rubys 17 years ago.
now, with phpdocs!

Download all attachments as: .zip

Change History (10)

#1 @josephscott
17 years ago

  • Cc josephscott added

#2 @rubys
17 years ago

Joseph Scott suggested that I should mention that this fix passes both APE and the Feed Validator when applied against revision 6220. Revisions 6221-6243 don't pass APE (with or without this fix), due to bug 5180. Revisions 6228-HEAD don't pass Feed Validation (with or without this fix), due to bug 5194.

#3 @ryan
17 years ago

With prep_content no longer in the AtomServer namespace, does it need a more specific function name. prep_content() seems a bit generic. Other than that, looks good to me. If you have a suggestion for a new function name, I can make the change and commit. However, I'm fine with prep_content() if that's what you want.

@rubys
17 years ago

s/prep_content/prep_atom_text_construct/

#4 @westi
17 years ago

  • Keywords has-patch needs-docs added

Looks good.

Can we have some phpdoc for prep_atom_text_construct please.

@rubys
17 years ago

now, with phpdocs!

#5 @rubys
17 years ago

  • Cc rubys added

I *knew* there was a reason why I wanted to do this with baby steps. :-)

This is my first time writing phpdoc. If I get something minor wrong, please feel free to correct it. If I get something major wrong, simply toss it back and point me in the right direction.

#6 @westi
17 years ago

  • Keywords has-docs added; needs-docs removed
  • Owner changed from anonymous to westi
  • Status changed from new to assigned

+1
phpdoc enabled patch looks good

#7 @westi
17 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6273]) Refactor atom support to share code. Fixes #5181 props rubys

#8 @foolswisdom
17 years ago

(In [6315]) Back out some of changeset [5273] from #5181. Props rubys. fixes #5307

Note: See TracTickets for help on using tickets.