Make WordPress Themes

Changeset 351930


Ignore:
Timestamp:
10/04/2026 10:28:03 AM (2 weeks ago)
Author:
themedropbox
Message:

New version of Kivora - 1.0.1

Location:
kivora/1.0.1
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • kivora/1.0.1/CHANGELOG.md

    r351923 r351930  
    22
    33All 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).
    412
    513## [1.0.0] - Unreleased
  • kivora/1.0.1/functions.php

    r351923 r351930  
    1010}
    1111
    12 define( 'KIVORA_VERSION', '1.0.0' );
     12define( 'KIVORA_VERSION', '1.0.1' );
    1313define( 'KIVORA_THEME_DIR', get_template_directory() );
    1414define( 'KIVORA_THEME_URI', get_template_directory_uri() );
  • kivora/1.0.1/inc/classes/class-demo-library.php

    r351923 r351930  
    431431
    432432                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 );
    434442
    435443                        if ( $content !== $post->post_content ) {
  • kivora/1.0.1/inc/helpers/template-tags.php

    r351923 r351930  
    105105                } elseif ( is_page() && ! is_front_page() ) {
    106106                        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
    107113                                $trail[] = array(
    108                                         'name' => get_the_title( $ancestor_id ),
     114                                        'name' => $ancestor_title,
    109115                                        'url'  => get_permalink( $ancestor_id ),
    110116                                );
    … …  
    136142                        // keeps it as formatting, but a trail is navigation, not content
    137143                        // — 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                        }
    139151                }
    140152
  • kivora/1.0.1/readme.txt

    r351923 r351930  
    44Tested up to: 7.0
    55Requires PHP: 8.0
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPL v2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    108108== Changelog ==
    109109
     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
    110114= 1.0.0 =
    111115* Initial release.
  • kivora/1.0.1/style.css

    r351923 r351930  
    55Author URI: https://github.com/devmonowar
    66Description: Kivora is a world-class, lightweight, modern, and professional WordPress theme. It is 100% free and open source.
    7 Version: 1.0.0
     7Version: 1.0.1
    88Requires at least: 6.5
    99Tested up to: 7.0
Note: See TracChangeset for help on using the changeset viewer.