Making WordPress.org

Opened 5 years ago

Closed 5 years ago

#5642 closed defect (bug) (worksforme)

Error in code example in WordPress.org Theme Handbook

Reported by: curtiskessler Owned by:
Priority: lowest Milestone:
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
5 years ago

@curtiskessler

I am taking care of this.

Thank you

#2 @dingo_d
5 years ago

  • Resolutionworksforme
  • Status newclosed

This seems to have been fixed. Thanks @kafleg

#3 @curtiskessler
5 years ago

  • Priority normallowest
  • Resolution worksforme
  • Status closedreopened

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 5 years ago by curtiskessler (previous) (diff)

#4 @dingo_d
5 years ago

  • Resolutionworksforme
  • Status reopenedclosed

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.