File tree Expand file tree Collapse file tree 4 files changed +1
-81
lines changed
Expand file tree Collapse file tree 4 files changed +1
-81
lines changed Original file line number Diff line number Diff line change 5252 * @param string $class_name The class name of the auto-loaded class
5353 */
5454\spl_autoload_register ( static function ( $ class_name ): void {
55- if ( \strpos ( $ class_name , __NAMESPACE__ . '\\' ) !== 0 ) {
55+ if ( ! \str_starts_with ( $ class_name , __NAMESPACE__ . '\\' ) ) {
5656 return ;
5757 }
5858
7575 }
7676} );
7777
78- // deprecated, don't use anymore
79- if ( ! \defined ( 'IMPRESSUM_BASE ' ) ) \define ( 'IMPRESSUM_BASE ' , \plugin_basename ( __FILE__ ) );
80-
8178Impressum::get_instance ()->init ();
Original file line number Diff line number Diff line change @@ -240,27 +240,6 @@ public function phone( array $args ): void {
240240 }
241241 }
242242
243- /**
244- * Press Law Checkbox field callback.
245- *
246- * @deprecated 2.2.0 Use epiphyt\Impressum\Admin_Fields::checkbox() instead
247- *
248- * @param array $args The field arguments
249- */
250- public function press_law_checkbox ( array $ args ): void {
251- \_doing_it_wrong (
252- __METHOD__ ,
253- \sprintf (
254- /* translators: alternative method */
255- \esc_html__ ( 'Use %s instead ' , 'impressum ' ),
256- 'epiphyt\Impressum\Admin_Fields::checkbox() '
257- ),
258- '2.2.0 '
259- );
260-
261- self ::checkbox ( $ args );
262- }
263-
264243 /**
265244 * Select callback.
266245 *
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ class Admin {
2121 */
2222 private static bool $ disabled_notice = false ;
2323
24- /**
25- * @var string The full path to the main plugin file
26- */
27- public string $ plugin_file = \EPI_IMPRESSUM_FILE ;
28-
2924 /**
3025 * Initialize the admin functions.
3126 */
@@ -591,29 +586,6 @@ public function register_plus_tab( array $tabs ): array {
591586 return $ tabs ;
592587 }
593588
594- /**
595- * Set the plugin file.
596- *
597- * @deprecated 2.1.0 Use \EPI_IMPRESSUM_PLUS_FILE instead
598- *
599- * @param string $file The path to the file
600- */
601- public function set_plugin_file ( string $ file ): void {
602- \_doing_it_wrong (
603- __METHOD__ ,
604- \sprintf (
605- /* translators: alternative method */
606- \esc_html__ ( 'Use %s instead ' , 'impressum ' ),
607- 'EPI_IMPRESSUM_FILE '
608- ),
609- '2.1.0 '
610- );
611-
612- if ( \file_exists ( $ file ) ) {
613- $ this ->plugin_file = $ file ;
614- }
615- }
616-
617589 /**
618590 * Updated option to reset the dismiss of the imprint validation notice.
619591 */
Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ class Impressum {
3333 */
3434 protected array $ legal_entities = [];
3535
36- /**
37- * @var string The full path to the main plugin file
38- */
39- public string $ plugin_file = \EPI_IMPRESSUM_FILE ;
40-
4136 /**
4237 * @var array All settings fields.
4338 */
@@ -664,29 +659,6 @@ public function load_textdomain(): void {
664659 $ this ->legal_entities = \apply_filters ( 'impressum_legal_entity_after_sort ' , $ this ->legal_entities );
665660 }
666661
667- /**
668- * Set the plugin file.
669- *
670- * @deprecated 2.1.0 Use \EPI_IMPRESSUM_FILE instead
671- *
672- * @param string $file The path to the file
673- */
674- public function set_plugin_file ( string $ file ): void {
675- \_doing_it_wrong (
676- __METHOD__ ,
677- \sprintf (
678- /* translators: alternative method */
679- \esc_html__ ( 'Use %s instead ' , 'impressum ' ),
680- 'EPI_IMPRESSUM_FILE '
681- ),
682- '2.1.0 '
683- );
684-
685- if ( \file_exists ( $ file ) ) {
686- $ this ->plugin_file = $ file ;
687- }
688- }
689-
690662 /**
691663 * Activate the twice-daily cron.
692664 *
You can’t perform that action at this time.
0 commit comments