From e7abfee816e2db4e0c00f0c94ce27f717953cfca Mon Sep 17 00:00:00 2001 From: david Date: Tue, 11 Jun 2013 15:31:47 +0000 Subject: [PATCH] =?UTF-8?q?Arregla=20el=20error=20404=20en=20p=C3=A1ginas?= =?UTF-8?q?=20con=20slug=20en=20ruso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.EstudioJuridicoAlmagro_Web/trunk@9 c22fe52d-42d7-ba4f-95f7-33effcf65713 --- www/functions.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/www/functions.php b/www/functions.php index 75202ee..ef03ca8 100644 --- a/www/functions.php +++ b/www/functions.php @@ -67,4 +67,12 @@ function register_russian_desk_menus() { ) ); } -add_action( 'init', 'register_russian_desk_menus' ); \ No newline at end of file +add_action( 'init', 'register_russian_desk_menus' ); + +function onThemeActivation($oldname, $oldtheme=false) { +//***************************************************** +//Arregla el error 404 en páginas con slug en ruso +//***************************************************** +flush_rewrite_rules( false ); +} +add_action("after_switch_theme", "onThemeActivation", 10 , 2); \ No newline at end of file