Changeset 769748
- Timestamp:
- 09/10/2013 02:23:03 PM (13 years ago)
- File:
-
- 1 edited
-
observer/trunk/lib/AMWObserver.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
observer/trunk/lib/AMWObserver.php
r769014 r769748 111 111 public function log_updated_option($option, $oldvalue, $newvalue) { 112 112 113 // ignore transients 114 if (preg_match('/.*_transient_.*/i', $option)) return; 115 116 // ignore 'wp_ID_user_roles' changes 117 if (preg_match('/.*user_roles$/i', $option)) return; 113 // ignore options matching these regexes 114 $ignores = array( 115 '/.*_transient_.*/i', 116 '/.*user_roles$/i', 117 '/^stats_cache$/i' 118 ); 119 120 foreach ($ignores as $r) { 121 if (preg_match($r, $option)) return; 122 } 118 123 119 124 // convert values to strings
Note: See TracChangeset
for help on using the changeset viewer.