RRZE-Webteam / rrze-shorturl

WordPress-Plugin to enable a shorturl redirection service run on two servers (WP + PHP-only)
https://www.shorturl.rrze.fau.de
GNU General Public License v3.0
0 stars 1 forks source link

ggfalls class ShortURL __construct() leeren #78

Closed thenickless closed 3 weeks ago

thenickless commented 1 month ago

in der class ShortURL sind nur static functions. Darum wird construct() nie ausgeführt. Überlegen, ob jemals eine non-static kommen könnte, falls nicht construct() leeren und &$rights den static functions mit übergeben. In construct() wird nur class Rights initialisiert. Das wird aber bereits in Main und in class Shortcode in construct() getan.

thenickless commented 3 weeks ago

Das ist nicht korrekt. In __construct() werden einige Defaults gesetzt (zB AllowedDomains). Die Klasse wird in Main.php initialisiert.

=> __construct() bleibt, wie es jetzt ist.