Make WordPress Core

Opened 11 days ago

Closed 10 days ago

#64871 closed defect (bug) (fixed)

Cleanup: remove unused variable $hidden_inputs in post.php

Reported by: soean's profile Soean Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 7.0 Priority: normal
Severity: normal Version: 5.0.2
Component: Editor Keywords: has-patch commit
Focuses: Cc:

Description

The variable $hidden_inputs in the_block_editor_meta_box_post_form_hidden_fields() was introduced in [44241], but never used. So we should remove it.

Change History (3)

This ticket was mentioned in PR #11271 on WordPress/wordpress-develop by @Soean.


11 days ago
#1

  • Keywords has-patch added

This pull request makes a minor change to the the_block_editor_meta_box_post_form_hidden_fields function in src/wp-admin/includes/post.php. The change removes the unused $hidden_inputs variable, simplifying the code and reducing clutter.

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

#2 @mukesh27
11 days ago

  • Component changed from General to Editor
  • Keywords commit added
  • Milestone changed from Awaiting Review to 7.0
  • Version changed from 5.0 to 5.0.2

Introduce in #45456 / [44315]

#3 @SergeyBiryukov
10 days ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 62040:

Code Quality: Remove unused variable in wp-admin/includes/post.php.

Follow-up to [44241].

Props Soean, mukesh27.
Fixes #64871.

Note: See TracTickets for help on using tickets.