first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
class WPML_Post_Status_Display_Factory {
/** @var SitePress $sitepress */
private $sitepress;
public function __construct( SitePress $sitepress = null ) {
$this->sitepress = $sitepress ?: $GLOBALS['sitepress'];
}
public function create() {
return new WPML_Post_Status_Display( $this->sitepress->get_active_languages() );
}
}