Make WordPress Core

Opened 8 months ago

Closed 8 months ago

#64871 closed defect (bug) (fixed)

Cleanup: remove unused variable $hidden_inputs in post.php

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

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.


8 months 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
8 months ago

  • Component General → Editor
  • Keywords commit added
  • Milestone Awaiting Review → 7.0
  • Version 5.0 → 5.0.2

Introduce in #45456 / [44315]

#3 @SergeyBiryukov
8 months ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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.