Changeset 351930
- Timestamp:
- 10/04/2026 10:28:03 AM (2 weeks ago)
- Location:
- kivora/1.0.1
- Files:
-
- 6 edited
- 1 copied
-
. (copied) (copied from kivora/1.0.0 )
-
CHANGELOG.md (modified) (1 diff)
-
functions.php (modified) (1 diff)
-
inc/classes/class-demo-library.php (modified) (1 diff)
-
inc/helpers/template-tags.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kivora/1.0.1/CHANGELOG.md
r351923 r351930 2 2 3 3 All notable changes to Kivora are documented in this file. 4 5 ## [1.0.1] - Unreleased 6 7 ### Fixed 8 9 - The demo URL rewrite no longer doubles the address when the importing 10 site's URL starts with the demo's build URL (the trailing slash is part 11 of the match now). 4 12 5 13 ## [1.0.0] - Unreleased -
kivora/1.0.1/functions.php
r351923 r351930 10 10 } 11 11 12 define( 'KIVORA_VERSION', '1.0. 0' );12 define( 'KIVORA_VERSION', '1.0.1' ); 13 13 define( 'KIVORA_THEME_DIR', get_template_directory() ); 14 14 define( 'KIVORA_THEME_URI', get_template_directory_uri() ); -
kivora/1.0.1/inc/classes/class-demo-library.php
r351923 r351930 431 431 432 432 foreach ( $posts as $post ) { 433 $content = str_replace( $source, $target, $post->post_content ); 433 /* 434 * The trailing slash is part of the needle on purpose: without 435 * it, a site whose address starts with the build address (say, 436 * localhost/kivora-import-test importing from localhost/kivora) 437 * gets its own freshly rewritten URLs rewritten a second time. 438 * Every URL embedded in content continues with a path, so nothing 439 * legitimate is missed by requiring the slash. 440 */ 441 $content = str_replace( trailingslashit( $source ), trailingslashit( $target ), $post->post_content ); 434 442 435 443 if ( $content !== $post->post_content ) { -
kivora/1.0.1/inc/helpers/template-tags.php
r351923 r351930 105 105 } elseif ( is_page() && ! is_front_page() ) { 106 106 foreach ( array_reverse( get_post_ancestors( get_queried_object_id() ) ) as $ancestor_id ) { 107 $ancestor_title = get_the_title( $ancestor_id ); 108 109 if ( '' === trim( (string) $ancestor_title ) ) { 110 continue; 111 } 112 107 113 $trail[] = array( 108 'name' => get_the_title( $ancestor_id ),114 'name' => $ancestor_title, 109 115 'url' => get_permalink( $ancestor_id ), 110 116 ); … … 136 142 // keeps it as formatting, but a trail is navigation, not content 137 143 // — core strips tags in the same spots (document title, feeds). 138 $trail[] = array( 'name' => wp_strip_all_tags( get_the_title() ), 'url' => '' ); 144 // An untitled post contributes no crumb rather than a dangling 145 // separator: there is nothing truthful to call it. 146 $singular_title = wp_strip_all_tags( get_the_title() ); 147 148 if ( '' !== trim( $singular_title ) ) { 149 $trail[] = array( 'name' => $singular_title, 'url' => '' ); 150 } 139 151 } 140 152 -
kivora/1.0.1/readme.txt
r351923 r351930 4 4 Tested up to: 7.0 5 5 Requires PHP: 8.0 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPL v2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 108 108 == Changelog == 109 109 110 = 1.0.1 = 111 * Fixed the demo URL rewrite doubling the address when the importing site's URL starts with the demo's build URL. 112 * The author archive breadcrumb no longer prints markup as text. 113 110 114 = 1.0.0 = 111 115 * Initial release. -
kivora/1.0.1/style.css
r351923 r351930 5 5 Author URI: https://github.com/devmonowar 6 6 Description: Kivora is a world-class, lightweight, modern, and professional WordPress theme. It is 100% free and open source. 7 Version: 1.0. 07 Version: 1.0.1 8 8 Requires at least: 6.5 9 9 Tested up to: 7.0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)