Make WordPress Core

Opened 4 weeks ago

Closed 4 weeks ago

Last modified 3 weeks ago

#65604 closed enhancement (fixed)

Importer Remove unused WP_Importer::__construct() method

Reported by: arshidkv12 Owned by: SergeyBiryukov
Priority: lowest Milestone: 7.1
Component: General Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

WP_Importer defines an empty __construct() method that performs no initialization and has no observable effect.

Removing the empty constructor simplifies the class without changing its behavior. Since the constructor is empty, object instantiation continues to work as before.

This patch removes the redundant constructor as a small code cleanup.

Change History (3)

This ticket was mentioned in PR #12468 on WordPress/wordpress-develop by arshidkv12.


4 weeks ago
#1

  • Keywords has-patch added

Trac ticket: https://core.trac.wordpress.org/ticket/65604

## Use of AI Tools
None

#2 @SergeyBiryukov
4 weeks ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 62690:

Import: Remove unused WP_Importer::__construct() method.

Follow-up to [14760], [17771].

Props arshidkv12.
Fixes #65604.

#3 @sabernhardt
3 weeks ago

  • Milestone Awaiting Review7.1
Note: See TracTickets for help on using tickets.