| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | static function run() { |
||
| 8 | if ( Jetpack::is_active() ) { |
||
| 9 | $version_option = Jetpack_Options::get_option( 'version' ); |
||
| 10 | list( self::$previous_version ) = explode( ':', $version_option ); |
||
| 11 | if ( JETPACK__VERSION != self::$previous_version ) { |
||
| 12 | Jetpack_Options::update_options( |
||
| 13 | array( |
||
| 14 | 'version' => JETPACK__VERSION . ':' . time(), |
||
| 15 | 'old_version' => self::$previous_version, |
||
| 16 | ) |
||
| 17 | ); |
||
| 18 | add_action( 'init', array( 'Jetpack_Upgrade', 'init' ) ); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 37 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.