[wp-meta] [Making WordPress.org] #176: Source code should display on individual pages
Making WordPress.org
noreply at wordpress.org
Thu Jun 5 21:46:52 UTC 2014
#176: Source code should display on individual pages
---------------------------+-------------------------------------
Reporter: samuelsidler | Owner: coffee2code
Type: enhancement | Status: closed
Priority: high | Component: developer.wordpress.org
Resolution: fixed | Keywords: has-patch needs-testing
---------------------------+-------------------------------------
Changes (by coffee2code):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"677"]:
{{{
#!CommitTicketReference repository="" revision="677"
Code Reference: Improvements to inline source code display. Fixes #176
* More efficient implementation of get_source_code()
* Add get_source_code_root_dir() which gets 'wp_parser_root_import_dir'
option value if set by parser, else ABSPATH
* Add post_type_has_source_code()
* Use 'wporg' as the text domain
* Slight tweak to JS height comparison to ensure functions that just fit
don't trigger expansion handling
* Allow x scrollbar for .source-code-container and adjust heights to
account for its possible display
* Add extra height to collapsed state of .source-code-container to
partially show the first hidden line to better indicate there is more code
* Add right border to .source-code-container so it is easier to tell if
code is being clipped
* Change 'View source' link to 'View source code:' label with explicit
links to inline source and/or WP Trac code browser
* Source code is stored in post meta; parse and store it as requested if
it isn't
* Sanity check to ensure proper conditions exist for parsing
* Add optional 'force_parse' arg to get_source_code() to force reparsing
of source file
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/176#comment:16>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list