Allow a request to opt out of element rewrites All in One SEO Pack Feature Requests Forum

The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Allow a request to opt out of element rewrites
October 22, 2010
5:44 pm
prometheas
New Member
Forum Posts: 1
Member Since:
October 22, 2010
Offline

Please consider the following DIFF patch for the All In One SEO plugin:

—————————————-

— aioseop.class.php
+++ (clipboard)
@@ -624,6 +624,9 @@
}

function rewrite_title($header) {
+
+ if (apply_filters('aiosp_rewrite_titles', true) === false) return;
+
global $aioseop_options;
global $wp_query;
if (!$wp_query) {
@@ -2344,5 +2347,3 @@
} // options_panel

}
-
-?>

—————————————-

This will allow individual requests to explicitly opt out of having their titles altered. I'm presently writing some plugins which expose URLs that serve XML documents with title nodes; it took me _hours_ to figure out that this plugin was creating an output buffer and fucking with my output after the fact.

So, please…

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
31 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

romiojuliat: 102

yaoming987: 50

jintuy: 50

miki1986: 33

newshow: 28

karen1234: 27

Member Stats:

Guest Posters: 0

Members: 6356

Moderators: 3

Admins: 4

Forum Stats:

Groups: 5

Forums: 23

Topics: 1546

Posts: 3450

Newest Members: carofern@cisco.com, pronto, jessie, pbaylies, ninaeast, freda

Moderators: davecashmore (2), aaron (5), tempadmin (0)

Administrators: WordPress Professional (442), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)