Ticket #6267: 6267.patch
File 6267.patch, 1.9 KB (added by , 3 years ago) |
---|
-
wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
316 316 } 317 317 318 318 if ( $taxonomy === 'wp-parser-source-file' ) { 319 $taxonomy_permastruct = $wp_rewrite->get_extra_permastruct( $taxonomy ); 320 319 321 $slug = $term->slug; 320 322 if ( substr( $slug, -4 ) === '-php' ) { 321 323 $slug = substr( $slug, 0, -4 ) . '.php'; 322 324 $slug = str_replace( '_', '/', $slug ); 323 325 } 324 $link = home_url( user_trailingslashit( "reference/files/$slug") );326 $link = home_url( user_trailingslashit( str_replace('%wp-parser-source-file%', $slug, $taxonomy_permastruct ) ) ); 325 327 } elseif ( $taxonomy === 'wp-parser-since' ) { 326 328 $link = str_replace( $term->slug, str_replace( '-', '.', $term->slug ), $link ); 327 329 } -
wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/registrations.php
196 196 'public' => true, 197 197 // Hierarchical x 2 to enable (.+) rather than ([^/]+) for rewrites. 198 198 'hierarchical' => true, 199 'rewrite' => array( 'with_front' => false, 'slug' => 'reference/file s', 'hierarchical' => true ),199 'rewrite' => array( 'with_front' => false, 'slug' => 'reference/file', 'hierarchical' => true ), 200 200 'sort' => false, 201 201 'update_count_callback' => '_update_post_term_count', 202 202 'show_in_rest' => true,