Skip to content

Instantly share code, notes, and snippets.

@jgwhite
Created January 31, 2012 09:20
Show Gist options
  • Select an option

  • Save jgwhite/1709597 to your computer and use it in GitHub Desktop.

Select an option

Save jgwhite/1709597 to your computer and use it in GitHub Desktop.
Jamie’s Quick iA3 Active-state Patch
--- functions.php 2012-01-31 09:15:34.000000000 +0000
+++ functions.new.php 2012-01-31 09:12:51.000000000 +0000
@@ -304,7 +304,7 @@
$item_l = get_page_link($item_i);
- if ((strpos($item_l . '***', $_SERVER['REQUEST_URI'] . '***'))) {
+ if ((strpos($item_l . '***', $_SERVER['REQUEST_URI'] . '***')) && !(is_home() || is_front_page())) {
//if ($currentpage = $item_l ) {

Place the file above (ia3.patch) in the theme’s directory and run:

$ patch < ia3.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment