Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–17 unchanged (17 lines)
18 * Miscellaneous
19 */
20
21/**
22 * Logo & Description
23 */
24
25/**
26 * Displays the site logo, either text or image.
27 *
28 * @since Twenty Twenty 1.0
29 *
30 * @param array $args Arguments for displaying the site logo either as an image or text.
…lines 31–96 unchanged (66 lines)
97 if ( ! $display ) {
98 return $html;
99 }
100
101 echo $html;
102}
103
104/**
105 * Displays the site description.
106 *
107 * @since Twenty Twenty 1.0
108 *
109 * @param bool $display Display or return the HTML.
…lines 110–237 unchanged (128 lines)
238 );
239
240 return '<div class="post-meta-wrapper post-meta-edit-link-wrapper"><ul class="post-meta"><li class="post-edit meta-wrapper"><span class="meta-icon">' . twentytwenty_get_theme_svg( 'edit' ) . '</span><span class="meta-text"><a href="' . esc_url( $edit_url ) . '">' . $text . '</a></span></li></ul><!-- .post-meta --></div><!-- .post-meta-wrapper -->';
241}
242
243add_filter( 'edit_post_link', 'twentytwenty_edit_post_link', 10, 3 );
244
245/**
246 * Retrieves the post meta.
247 *
248 * @since Twenty Twenty 1.0
249 *
250 * @param int $post_id The ID of the post.
…lines 251–862 unchanged (612 lines)

After

…lines 1–25 unchanged (25 lines)
26 * Displays the site logo, either text or image.
27 *
28 * @since Twenty Twenty 1.0
29 *
30 * @param array $args Arguments for displaying the site logo either as an image or text.
31 * @param bool $display Display or return the HTML.
32 * @return string|void Compiled HTML based on our arguments.
33 */
34function twentytwenty_site_logo( $args = array(), $display = true ) {
35 $logo = get_custom_logo();
36 $site_title = get_bloginfo( 'name' );
37 $contents = '';
38 $classname = '';
…lines 39–103 unchanged (65 lines)
104/**
105 * Displays the site description.
106 *
107 * @since Twenty Twenty 1.0
108 *
109 * @param bool $display Display or return the HTML.
110 * @return string|void The HTML to display.
111 */
112function twentytwenty_site_description( $display = true ) {
113 $description = get_bloginfo( 'description' );
114
115 if ( ! $description ) {
116 return;
…lines 117–245 unchanged (129 lines)
246 * Retrieves the post meta.
247 *
248 * @since Twenty Twenty 1.0
249 *
250 * @param int $post_id The ID of the post.
251 * @param string $location The location where the meta is shown.
252 * @return string|void Post meta HTML.
253 */
254function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) {
255
256 // Require post ID.
257 if ( ! $post_id ) {
258 return;
…lines 259–862 unchanged (604 lines)

Before

program
php_tag "<?php"
comment "/**\n * Custom template tags for this theme.\n *\n * @package W"...
comment "/**\n * Table of Contents:\n * Logo & Description\n * Comments\n"...
comment "/**\n * Logo & Description\n */"
comment "/**\n * Displays the site logo, either text or image.\n *\n * @"...
function_definition (+629 nodes collapsed)
comment "/**\n * Displays the site description.\n *\n * @since Twenty Tw"...
function_definition (+144 nodes collapsed)
comment "/**\n * Comments\n */"
comment "/**\n * Checks if the specified comment is written by the aut"...
function_definition (+134 nodes collapsed)
comment "/**\n * Filters comment reply link to not JS scroll.\n *\n * Fi"...
function_definition (+50 nodes collapsed)
expression_statement
function_call_expression
name "add_filter"
arguments
( "("
argument
string
' "'"
string_content "comment_reply_link"
' "'"
, ","
argument
string
' "'"
string_content "twentytwenty_filter_comment_reply_link"
' "'"
) ")"
; ";"
comment "/**\n * Post Meta\n */"
comment "/**\n * Retrieves and displays the post meta.\n *\n * If it's a"...
function_definition (+42 nodes collapsed)
comment "/**\n * Filters the edit post link to add an icon and use the"...
function_definition (+202 nodes collapsed)
expression_statement (+24 nodes collapsed)
comment "/**\n * Retrieves the post meta.\n *\n * @since Twenty Twenty 1"...
function_definition (+1192 nodes collapsed)
comment "/**\n * Menus\n */"
comment "/**\n * Filters classes of wp_list_pages items to match menu "...
function_definition (+159 nodes collapsed)
expression_statement (+24 nodes collapsed)
comment "/**\n * Adds a Sub Nav Toggle to the Expanded Menu and Mobile"...
function_definition (+331 nodes collapsed)
expression_statement (+24 nodes collapsed)
comment "/**\n * Displays SVG icons in social links menu.\n *\n * @since"...
function_definition (+145 nodes collapsed)
expression_statement (+24 nodes collapsed)
comment "/**\n * Classes\n */"
comment "/**\n * Adds 'no-js' class.\n *\n * If we're missing JavaScript"...
function_definition (+87 nodes collapsed)
expression_statement
function_call_expression
name "add_action"
arguments
( "("
argument
string
' "'"
string_content "wp_head"
' "'"
, ","
argument
string
' "'"
string_content "twentytwenty_no_js_class"
' "'"
) ")"
; ";"
comment "/**\n * Adds conditional body classes.\n *\n * @since Twenty Tw"...
function_definition (+782 nodes collapsed)
expression_statement
function_call_expression
name "add_filter"
arguments
( "("
argument
string
' "'"
string_content "body_class"
' "'"
, ","
argument
string
' "'"
string_content "twentytwenty_body_classes"
' "'"
) ")"
; ";"
comment "/**\n * Archives\n */"
comment "/**\n * Filters the archive title and styles the word before "...
function_definition (+118 nodes collapsed)
expression_statement
function_call_expression
name "add_filter"
arguments
( "("
argument
string
' "'"
string_content "get_the_archive_title"
' "'"
, ","
argument
string
' "'"
string_content "twentytwenty_get_the_archive_title"
' "'"
) ")"
; ";"
comment "/**\n * Miscellaneous\n */"
comment "/**\n * Toggles animation duration in milliseconds.\n *\n * @si"...
function_definition (+36 nodes collapsed)
comment "/**\n * Gets unique ID.\n *\n * This is a PHP implementation of"...
function_definition (+73 nodes collapsed)

After

program
php_tag "<?php"
comment "/**\n * Custom template tags for this theme.\n *\n * @package W"...
comment "/**\n * Table of Contents:\n * Logo & Description\n * Comments\n"...
comment "/**\n * Logo & Description\n */"
comment "/**\n * Displays the site logo, either text or image.\n *\n * @"...
function_definition (+629 nodes collapsed)
comment "/**\n * Displays the site description.\n *\n * @since Twenty Tw"...
function_definition (+144 nodes collapsed)
comment "/**\n * Comments\n */"
comment "/**\n * Checks if the specified comment is written by the aut"...
function_definition (+134 nodes collapsed)
comment "/**\n * Filters comment reply link to not JS scroll.\n *\n * Fi"...
function_definition (+50 nodes collapsed)
expression_statement
function_call_expression
name "add_filter"
arguments
( "("
argument
string
' "'"
string_content "comment_reply_link"
' "'"
, ","
argument
string
' "'"
string_content "twentytwenty_filter_comment_reply_link"
' "'"
) ")"
; ";"
comment "/**\n * Post Meta\n */"
comment "/**\n * Retrieves and displays the post meta.\n *\n * If it's a"...
function_definition (+42 nodes collapsed)
comment "/**\n * Filters the edit post link to add an icon and use the"...
function_definition (+202 nodes collapsed)
expression_statement (+24 nodes collapsed)
comment "/**\n * Retrieves the post meta.\n *\n * @since Twenty Twenty 1"...
function_definition (+1192 nodes collapsed)
comment "/**\n * Menus\n */"
comment "/**\n * Filters classes of wp_list_pages items to match menu "...
function_definition (+159 nodes collapsed)
expression_statement (+24 nodes collapsed)
comment "/**\n * Adds a Sub Nav Toggle to the Expanded Menu and Mobile"...
function_definition (+331 nodes collapsed)
expression_statement (+24 nodes collapsed)
comment "/**\n * Displays SVG icons in social links menu.\n *\n * @since"...
function_definition (+145 nodes collapsed)
expression_statement (+24 nodes collapsed)
comment "/**\n * Classes\n */"
comment "/**\n * Adds 'no-js' class.\n *\n * If we're missing JavaScript"...
function_definition (+87 nodes collapsed)
expression_statement
function_call_expression
name "add_action"
arguments
( "("
argument
string
' "'"
string_content "wp_head"
' "'"
, ","
argument
string
' "'"
string_content "twentytwenty_no_js_class"
' "'"
) ")"
; ";"
comment "/**\n * Adds conditional body classes.\n *\n * @since Twenty Tw"...
function_definition (+782 nodes collapsed)
expression_statement
function_call_expression
name "add_filter"
arguments
( "("
argument
string
' "'"
string_content "body_class"
' "'"
, ","
argument
string
' "'"
string_content "twentytwenty_body_classes"
' "'"
) ")"
; ";"
comment "/**\n * Archives\n */"
comment "/**\n * Filters the archive title and styles the word before "...
function_definition (+118 nodes collapsed)
expression_statement
function_call_expression
name "add_filter"
arguments
( "("
argument
string
' "'"
string_content "get_the_archive_title"
' "'"
, ","
argument
string
' "'"
string_content "twentytwenty_get_the_archive_title"
' "'"
) ")"
; ";"
comment "/**\n * Miscellaneous\n */"
comment "/**\n * Toggles animation duration in milliseconds.\n *\n * @si"...
function_definition (+36 nodes collapsed)
comment "/**\n * Gets unique ID.\n *\n * This is a PHP implementation of"...
function_definition (+73 nodes collapsed)