Plugin Directory

Changeset 3044060


Ignore:
Timestamp:
03/02/2024 04:11:57 PM (2 years ago)
Author:
topdownjimmy
Message:

Version 0.1.2

Location:
author-rel-me-link/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • author-rel-me-link/trunk/author-rel-me-link.php

    r3037528 r3044060  
    77 * Description: Adds a rel-me <link> to the <head> of author pages if they have
    88 * a Website set in their Profile
    9  * Version:     0.1.1
     9 * Version:     0.1.2
    1010 * Author:      topdownjimmy
    1111 * Author URI:  https://www.jaysitter.com
    1212 * License:     GPLv2 or later
    1313 * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    14  * Text Domain: author-rel-me-link
     14 * Text Domain: arml
    1515 * Requires at least: 2.8
    1616 * Tested up to: 6.4.3
     
    2525
    2626
    27 function head_link_rel_me_html_in_header() {
     27function arml_link_rel_me() {
    2828    if ( is_author() && get_the_author_meta( 'user_url' ) ) {
    2929        echo '<link rel="me" href="' . esc_url( get_the_author_meta( 'user_url' ) ) . '" />';
     
    3131}
    3232
    33 add_action( 'wp_head', 'insert_html_in_header' );
     33add_action( 'wp_head', 'arml_link_rel_me' );
  • author-rel-me-link/trunk/readme.txt

    r3037528 r3044060  
    44Requires at least: 2.8
    55Tested up to: 6.4.3
    6 Stable tag: 0.1.1
     6Stable tag: 0.1.2
    77License: GPL2
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    99Add a rel="me" link to the head of an author page, if the author has a website set in their profile.
    1010
    11 This plugin, when activated, will add a `<link>` to the `<head>` of an Author
    12 page with `rel="me"`, if that author has set a "Website" in their profile.
     11This plugin, when activated, will add a `<link>` to the `<head>` of an Author page with `rel="me"`, if that author has set a "Website" in their profile.
    1312
    1413This can be useful for things like Mastodon URL verification.
     
    1615== Example ==
    1716
    18 If an author has set their website to `https://www.example.com`, this plugin
    19 will add the following HTML to the `<head>` on their author page:
     17If an author has set their website to `https://www.example.com`, this plugin will add the following HTML to the `<head>` on their author page:
    2018
    2119    <link rel="me" href="https://social.example/@evelyn" />
    2220
    23 To verify with Mastodon etc., the author would need to use the URL to their
    24 Author archive page, typically something like
    25 `https://www.your-site.example/author/evelyn`.
    26 
     21To verify with Mastodon etc., the author would need to use the URL to their Author archive page, typically something like `https://www.your-site.example/author/evelyn`.
Note: See TracChangeset for help on using the changeset viewer.