Changeset 3416753
- Timestamp:
- 12/10/2025 08:10:56 PM (4 months ago)
- Location:
- molongui-authorship/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (1 diff)
-
changelog.txt (modified) (1 diff)
-
includes/authors.php (modified) (3 diffs)
-
includes/compat/plugins/wpdiscuz.php (modified) (1 diff)
-
includes/compat/plugins/yoast.php (modified) (2 diffs)
-
molongui-authorship.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molongui-authorship/trunk/README.txt
r3415571 r3416753 253 253 254 254 <strong>Important</strong>: If you use a caching plugin, please clear your cache after updating any plugins. 255 256 = 5.2.3 (2025-12-10) = 257 258 * **Fixed**: Several bugs related to wrong author data retrieval. 255 259 256 260 = 5.2.2 (2025-12-09) = -
molongui-authorship/trunk/changelog.txt
r3415571 r3416753 2 2 3 3 == Changelog == 4 5 = 5.2.3 (2025-12-10) = 6 7 * **Fixed**: Several bugs related to wrong author data retrieval. 4 8 5 9 = 5.2.2 (2025-12-09) = -
molongui-authorship/trunk/includes/authors.php
r3415065 r3416753 25 25 if ( !empty( $wp_query->query_vars['guest-author-name'] ) ) 26 26 { 27 if ( $guest = self::get_author_by( 'name', $wp_query->query_vars['guest-author-name'], 'guest', false ) ) 27 $guest = self::get_author_by( 'name', $wp_query->query_vars['guest-author-name'], 'guest', false ); 28 29 if ( $guest instanceof Author ) 28 30 { 29 31 $authors[0] = new \stdClass(); 30 $authors[0]->id = (int) $guest->ID;32 $authors[0]->id = (int) $guest->get_id(); 31 33 $authors[0]->type = 'guest'; 32 $authors[0]->ref = 'guest-'.$guest-> ID;34 $authors[0]->ref = 'guest-'.$guest->get_id(); 33 35 } 34 36 else 35 37 { 36 if ( $user = self::get_author_by( 'user_nicename', $wp_query->query_vars['guest-author-name'] ) ) 38 $user = self::get_author_by( 'user_nicename', $wp_query->query_vars['guest-author-name'] ); 39 40 if ( $user instanceof Author ) 37 41 { 38 42 $authors[0] = new \stdClass(); 39 $authors[0]->id = (int) $user->ID;43 $authors[0]->id = (int) $user->get_id(); 40 44 $authors[0]->type = 'user'; 41 $authors[0]->ref = 'user-'.$user-> ID;45 $authors[0]->ref = 'user-'.$user->get_id(); 42 46 } 43 47 } … … 51 55 if ( $user = self::get_author_by( 'user_nicename', $wp_query->query_vars['author_name'] ) ) 52 56 { 53 $authors[0]->id = (int) $user->ID;54 $authors[0]->ref = 'user-'.$user-> ID;57 $authors[0]->id = (int) $user->get_id(); 58 $authors[0]->ref = 'user-'.$user->get_id(); 55 59 } 56 60 } … … 235 239 { 236 240 $guest = self::get_author_by( 'name', $nicename, 'guest', false ); 237 if ( $guest )241 if ( $guest instanceof Author ) 238 242 { 239 243 return 'guest'; 240 244 } 241 245 $user = self::get_author_by( 'user_nicename', $nicename, 'user', false ); 242 if ( $user )246 if ( $user instanceof Author ) 243 247 { 244 248 return 'user'; -
molongui-authorship/trunk/includes/compat/plugins/wpdiscuz.php
r3415065 r3416753 61 61 $email = $comment->comment_author_email; 62 62 if ( !$email ) return $commentAuthorUrl; 63 if ( $guest = Authors::get_author_by( '_molongui_guest_author_mail', $email, 'guest' ) ) 63 $guest = Authors::get_author_by( '_molongui_guest_author_mail', $email, 'guest' ); 64 if ( $guest instanceof Author ) 64 65 { 65 $author = new Author( $guest->ID, 'guest' ); 66 $commentAuthorUrl = $author->get_archive_url(); 66 $commentAuthorUrl = $guest->get_archive_url(); 67 67 } 68 68 return $commentAuthorUrl; -
molongui-authorship/trunk/includes/compat/plugins/yoast.php
r3415065 r3416753 139 139 { 140 140 $guest = Molongui\Authorship\Authors::get_author_by( 'name', $author, 'guest', false ); 141 if ( $guest )141 if ( $guest instanceof Author ) 142 142 { 143 $author = new Molongui\Authorship\Author( $guest->ID, 'guest', $guest );144 145 143 switch ( $key ) 146 144 { … … 184 182 { 185 183 $guest = Molongui\Authorship\Authors::get_author_by( 'name', $author, 'guest', false ); 186 if ( $guest ) $crumbs[$last]['text'] = $prefix . esc_html( $guest->post_title ); 184 185 if ( $guest instanceof Author ) 186 { 187 $crumbs[$last]['text'] = $prefix . esc_html( $guest->get_display_name() ); 188 } 187 189 } 188 190 } -
molongui-authorship/trunk/molongui-authorship.php
r3415571 r3416753 13 13 * Plugin URI: https://www.molongui.com/wordpress-plugin-post-authors 14 14 * Description: All-in-One Authorship Solution: Seamless Author Box, Guest Authors, and Co-Authors to enhance your site's authority, credibility, engagement, and SEO. 15 * Version: 5.2. 215 * Version: 5.2.3 16 16 * Requires at least: 5.2 17 17 * Tested up to: 6.9 … … 44 44 final class MolonguiAuthorship 45 45 { 46 const VERSION = '5.2. 2';46 const VERSION = '5.2.3'; 47 47 use Singleton; 48 48 function __construct()
Note: See TracChangeset
for help on using the changeset viewer.