Making WordPress.org

Opened 4 years ago

Closed 4 years ago

#5642 closed defect (bug) (worksforme)

Error in code example in WordPress.org Theme Handbook

Reported by: curtiskessler's profile curtiskessler Owned by:
Milestone: Priority: lowest
Component: WordPress.org Site Keywords:
Cc:

Description

There is a code example that seems to be displayed incorrectly on this page: https://developer.wordpress.org/themes/functionality/custom-logo/

The very last code example on the page does not work. I believe the error is on the 4th line of code, right after $logo variable.

I believe the text [0] is supposed to render as [0] on the page but does not.

Change History (4)

#1 @kafleg
4 years ago

@curtiskessler

I am taking care of this.

Thank you

#2 @dingo_d
4 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

This seems to have been fixed. Thanks @kafleg

#3 @curtiskessler
4 years ago

  • Priority changed from normal to lowest
  • Resolution worksforme deleted
  • Status changed from closed to reopened

The code box that is now on the page is not styled in the same manner as other code boxes that are featured in the Theme Handbook.

You can see an example of the preferred code styling on the same page.

Last edited 4 years ago by curtiskessler (previous) (diff)

#4 @dingo_d
4 years ago

  • Resolution set to worksforme
  • Status changed from reopened to closed

Good point, totally missed that. I've changed all the code snippets on that page to use code syntax block, and I've also reindented the code a bit.

Should be ok now :)

Thanks for notifying us @curtiskessler :)

Note: See TracTickets for help on using tickets.