src/Versioned.php
public function stagesDiffer()
    {
        if (func_num_args() > 0) {
            Deprecation::notice('5.0', 'Versioned only has two stages and stagesDiffer no longer requires parameters');
        }
        $id = $this->owner->ID ?: $this->owner->OldID;
        if (!$id || !$this->hasStages()) {
            return false;
        }

        $draftVersion = static::get_versionnumber_by_stage($this->owner, Versioned::DRAFT, $id);
        $liveVersion = static::get_versionnumber_by_stage($this->owner, Versioned::LIVE, $id);
        return $draftVersion !== $liveVersion;
    }
public function stagesDiffer()
    {
        if (func_num_args() > 0) {
            Deprecation::notice('5.0', 'Versioned only has two stages and stagesDiffer no longer requires parameters');
        }
        $id = $this->owner->ID ?: $this->owner->OldID;
        if (!$id || !$this->hasStages()) {
            return false;
        }

        $draftVersion = static::get_versionnumber_by_stage($this->owner, Versioned::DRAFT, $id);
        $liveVersion = static::get_versionnumber_by_stage($this->owner, Versioned::LIVE, $id);
        return $draftVersion !== $liveVersion;
    }
public function stagesDiffer ( ) { if ( func_num_args ( ) > 0 ) { Deprecation :: notice ( '5.0' , 'Versioned only has two stages and stagesDiffer no longer requires parameters' ) ; } $ id = $ this -> owner -> ID ? : $ this -> owner -> OldID ; if ( ! $ id || ! $ this -> hasStages ( ) ) { return false ; } $ draftVersion = static :: get_versionnumber_by_stage ( $ this -> owner , Versioned :: DRAFT , $ id ) ; $ liveVersion = static :: get_versionnumber_by_stage ( $ this -> owner , Versioned :: LIVE , $ id ) ; return $ draftVersion !== $ liveVersion ; }
Compare two stages to see if they're different.

Only checks the version numbers, not the actual content.

@return bool
Compare two stages to see if they re different .