Changeset 2464475
- Timestamp:
- 01/28/2021 07:06:15 PM (5 years ago)
- Location:
- bravo-translate/trunk
- Files:
-
- 2 edited
-
functions.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bravo-translate/trunk/functions.php
r2463995 r2464475 163 163 164 164 add_action('wp_loaded', 'BRAVOTRAN_start'); 165 165 add_action('shutdown', 'BRAVOTRAN_end'); 166 166 167 167 168 168 function BRAVOTRAN_begin_ob(){ 169 define("BRAVOTRAN_OB",true); 169 error_log("sii"); 170 global $_BRAVOTRAN_OB; 171 $_BRAVOTRAN_OB=true; 170 172 ob_start("BRAVOTRAN_Translate"); 171 173 } … … 174 176 function BRAVOTRAN_start() { 175 177 176 define("BRAVOTRAN_OB",false); 178 global $_BRAVOTRAN_OB; 179 $_BRAVOTRAN_OB=false; 177 180 178 181 $uri=$_SERVER["REQUEST_URI"]; … … 181 184 return; 182 185 } 186 if(strpos(" ".$uri,"/wp-includes/images/")!=false) { 187 return; 188 } 189 if(strpos(" ".$uri,"favicon.ico")!=false) { 190 return; 191 } 183 192 if(strpos(" ".$uri,"/wp-admin/")!=false) { 184 193 return; … … 186 195 187 196 else{ 197 error_log("ha entrado".$uri); 188 198 BRAVOTRAN_begin_ob(); 189 199 } … … 192 202 193 203 function BRAVOTRAN_end() { 194 195 if(BRAVOTRAN_OB){ 196 204 205 global $_BRAVOTRAN_OB; 206 if($_BRAVOTRAN_OB){ 207 error_log("nooo"); 197 208 if (ob_get_length() > 0) { 198 209 ob_end_flush(); -
bravo-translate/trunk/readme.txt
r2463995 r2464475 44 44 = 1.0 = 45 45 * First release 46 = 1.1 = 47 * Improved speed
Note: See TracChangeset
for help on using the changeset viewer.