Skip to content

Feedback - Incorrect Code Formatting in "Introduction to securely developing plugins". #3098

@nareshbheda

Description

@nareshbheda

Type of feedback

// content

Description

The tutorial "Introduction to Securely Developing Plugins" contains a block of PHP code that is not properly formatted using the
wporg-code-block. This makes it harder to read and copy for learners.

Issue

  • The current code block is missing proper WordPress code formatting, such as the wporg-code-block wrapper.
  • The buttons for "Copy" and "Expand Code" are not present.
  • The syntax highlighting is inconsistent.

Step-by-step reproduction instructions

  1. Visit the tutorial: Introduction to securely developing plugins
  2. Locate the PHP code block.
  3. Notice the missing structure and improper formatting.

Screen recording

Introduction.to.securely.developing.plugins._.Learn.WordPress.webm

Suggested Fix

To improve readability and usability, wrap the PHP code inside a wporg-code-block with Copy and Expand Code buttons. This will ensure correct syntax highlighting and easy copying for learners.

I have a screenshot for better understanding.

Image

Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions