Ticket #5181 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Refactoring Atom support; baby step #1

Reported by: rubys Owned by: westi
Priority: normal Milestone: 2.5
Component: General Version:
Severity: normal Keywords: has-patch has-docs
Cc: josephscott, rubys

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

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

Change History

  • Cc josephscott added

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.

comment:3   ryan4 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.

rubys4 years ago

s/prep_content/prep_atom_text_construct/

  • Keywords has-patch needs-docs added

Looks good.

Can we have some phpdoc for prep_atom_text_construct please.

rubys4 years ago

now, with phpdocs!

  • 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.

  • 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

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

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

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

Note: See TracTickets for help on using tickets.