getChangedFiles() public method

public getChangedFiles ( )
Beispiel #1
0
 public function getChangedFiles()
 {
     $changes = parent::getChangedFiles();
     $changes[] = array("type" => "all-storage-files", "entity" => "option");
     // sometimes term change can affect option (e.g. deleting menu)
     return $changes;
 }
 public function getChangedFiles()
 {
     $result = parent::getChangedFiles();
     if ($this->getEntityId() == "rewrite_rules") {
         $result[] = array("type" => "path", "path" => ABSPATH . ".htaccess");
     }
     return $result;
 }
Beispiel #3
0
 public function getChangedFiles()
 {
     $changes = parent::getChangedFiles();
     if ($this->postType !== "attachment") {
         return $changes;
     }
     $changes[] = array("type" => "path", "path" => WP_CONTENT_DIR . "/uploads/*");
     return $changes;
 }