Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#10184 closed enhancement (wontfix)

feed_links() cannot be removed from wp_head

Reported by: peaceablewhale Owned by:
Priority: normal Milestone:
Component: Template Version: 2.8
Severity: normal Keywords: close
Cc: Focuses:

Description

Due to the way feed_links() is added to wp_head in automatic_feed_links(), it cannot be removed by a plugin.

Attachments (1)

10184.patch​ (916 bytes ) - added by peaceablewhale 17 years ago.

Download all attachments as: .zip

Change History (9)

#1 @dd32
17 years ago

Is there any reason why a plugin cannot call automatic_feed_links(false) directly?

#2 @Denis-de-Bernardy
17 years ago

  • Milestone 2.8.1 → 2.9
  • Type defect (bug) → enhancement

adding to this, the filter (assuming we add any) should be in the function directly imo

#3 @peaceablewhale
17 years ago

First of all, I am surprised that there are comments in the report but Trac has not notified me by email. Is there a bug in Trac?

@dd32: I suspect that automatic_feed_links(false) is called by the plugin first, but then the templete calls automatic_feed_links(true).

#4 @peaceablewhale
17 years ago

  • Milestone 2.9 → 2.8.1

A patch, if any, should be checked in to 2.8 as automatic_feed_links was designed to be modified by plugins according to #8878.

#5 @Denis-de-Bernardy
17 years ago

  • Keywords close added; has-patch removed

if you add this on the init hook, it should work:

automatic_feed_links(false);

#6 @Denis-de-Bernardy
17 years ago

  • Milestone 2.8.1
  • Resolution → wontfix
  • Status new → closed

100% it will, in fact.

#7 @dd32
17 years ago

@dd32: I suspect that automatic_feed_links(false) is called by the plugin first, but then the templete calls automatic_feed_links(true).

That sounds plausable..

try hooking wp_head rather early and try it then:

add_action('wp_head', 'my_function', 5);

#8 @peaceablewhale
17 years ago

Thanks dd32. Your suggestion worked.

Note: See TracTickets for help on using tickets.