Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sitemap: useless actions sitemap-additem and save-sitemap
#5
It seems this can be fixed by inserting this in function generate_sitemap()

Code:
global $xml, $page;

(admin/inc/template_functions.php)

...at least to fix action sitemap-additem. Those 2 variables are the ones that plugins try to use to add their own elements to the Sitemap.

I've tested this with News Manager (whose posts were added to the Sitemap with GS 3.0). I haven't tested with the I18N plugin, as it has its own patches for GS 3.1+

Any opinions, suggestions? Do you think it should be fixed other way, maybe new different hooks for Sitemap...?
Reply


Messages In This Thread
RE: Sitemap: useless actions sitemap-additem and save-sitemap - by Carlos - 2012-12-06, 02:47:49



Users browsing this thread: 1 Guest(s)