[wp-hackers] Permalinks Update Hook

Computer Guru computerguru at neosmart.net
Mon Jun 5 16:06:29 GMT 2006


Hi Mr. Brown..
Just wondering - is this by any chance for Gallery 2.0? Because if it is,
here's your first tester :D the existing WP-G2 plug-in is quite buggy!

Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/


-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Mr.Brown
Sent: Monday, June 05, 2006 7:01 PM
To: wp-hackers at lists.automattic.com
Subject: [wp-hackers] Permalinks Update Hook

Hi all,
I'm developing a photo gallery plugin for WP and I would make it compatible
both with 1.5.X and 2.0.X version.

The problem I have is this:

1) if the user install the plugin while the main blog has permalinks not
active, the plugin works. In the same way: 2) if the user install the plugin
while the main blog has permalinks active, the plugin works (the plugin
setup check if permalinks are active and if they are, add its rewrite rules
to .htaccess)

The problem occurs with case 1): I've a blog with no permalinks, I active
the photo gallery plugin, later I active the permalinks on my
blog: the plugin does not work because the rewrite rules for the plugin are
not set.

I would try to hook when the user updates the Permalink Options, so I can
generate and add the plugin rules to htaccess, but I need to know if there
is a hook available when Permalink Options are updated, compatible also with
1.5.X versions, or at least a workaround.

Thanks!
--
Mr.Brown
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list