@@ 401-416 (lines=16) @@ | ||
398 | "^(?!(wp-admin|wp-includes|(?!.*\/.*.php)))(.*)$", |
|
399 | ); |
|
400 | break; |
|
401 | case 'plugin': |
|
402 | ||
403 | $dir_array = explode(DS, $plugins_dir); |
|
404 | ||
405 | foreach($dir_array as $dir) |
|
406 | { |
|
407 | $data .= "\/".$dir; |
|
408 | $regex .= $data."$|"; |
|
409 | } |
|
410 | ||
411 | $regex .= "\/".implode("\/", $dir_array); |
|
412 | ||
413 | $exclude_files = array( |
|
414 | "^(?!(".$regex."))(.*)$", |
|
415 | ); |
|
416 | break; |
|
417 | case 'theme': |
|
418 | ||
419 | $dir_array = explode(DS, $themes_dir); |
|
@@ 417-432 (lines=16) @@ | ||
414 | "^(?!(".$regex."))(.*)$", |
|
415 | ); |
|
416 | break; |
|
417 | case 'theme': |
|
418 | ||
419 | $dir_array = explode(DS, $themes_dir); |
|
420 | ||
421 | foreach($dir_array as $dir) |
|
422 | { |
|
423 | $data .= "\/".$dir; |
|
424 | $regex .= $data."$|"; |
|
425 | } |
|
426 | ||
427 | $regex .= "\/".implode("\/", $dir_array); |
|
428 | ||
429 | $exclude_files = array( |
|
430 | "^(?!(".$regex."))(.*)$", |
|
431 | ); |
|
432 | break; |
|
433 | case 'translation': |
|
434 | ||
435 | $dir_array = explode(DS, $langs_dir); |
|
@@ 433-448 (lines=16) @@ | ||
430 | "^(?!(".$regex."))(.*)$", |
|
431 | ); |
|
432 | break; |
|
433 | case 'translation': |
|
434 | ||
435 | $dir_array = explode(DS, $langs_dir); |
|
436 | ||
437 | foreach($dir_array as $dir) |
|
438 | { |
|
439 | $data .= "\/".$dir; |
|
440 | $regex .= $data."$|"; |
|
441 | } |
|
442 | ||
443 | $regex .= "\/".implode("\/", $dir_array); |
|
444 | ||
445 | $exclude_files = array( |
|
446 | "^(?!(".$regex."))(.*)$", |
|
447 | ); |
|
448 | break; |
|
449 | } |
|
450 | ||
451 | $schedule = array(); |