Plugin Directory

Changeset 2870501


Ignore:
Timestamp:
02/24/2023 09:48:16 AM (3 years ago)
Author:
tfrommen
Message:

2.0.0

Location:
bring-back-the-get-shortlink-button
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • bring-back-the-get-shortlink-button/trunk/bring-back-the-get-shortlink-button.php

    r2497379 r2870501  
    11<?php
    22/**
     3 * Bring Back the Get Shortlink Button
     4 *
     5 * @package           BringBackTheGetShortlinkButton
     6 * @author            Thorsten Frommen
     7 * @copyright         2023 Thorsten Frommen
     8 * @license           GPL-3.0-or-later
     9 *
     10 * @wordpress-plugin
    311 * Plugin Name:       Bring Back the Get Shortlink Button
    412 * Plugin URI:        https://wordpress.org/plugins/bring-back-the-get-shortlink-button/
    5  * Description:       This plugin brings back the Get Shortlink button, which is hidden by default since WordPress      4.4.
    6  * Version:           1.2.0
     13 * Description:       This plugin brings back the Get Shortlink button, which is hidden by default since WordPress 4.4.
     14 * Version:           2.0.0
    715 * Requires at least: 4.4
    8  * Requires PHP:      5.3
     16 * Requires PHP:      7.4
    917 * Author:            Thorsten Frommen
    1018 * Author URI:        https://tfrommen.de
     
    1826}
    1927
    20 add_filter( 'get_shortlink', function ( $shortlink ) {
     28add_filter( 'get_shortlink', function ( string $shortlink ): string {
    2129
    2230    return $shortlink;
  • bring-back-the-get-shortlink-button/trunk/readme.txt

    r2497379 r2870501  
    33Tags: link, short, shortlink
    44Requires at least: 4.4
    5 Tested up to: 5.7
    6 Requires PHP: 5.3
    7 Stable tag: 1.2.0
     5Tested up to: 6.1
     6Requires PHP: 7.4
     7Stable tag: 2.0.0
    88License: GPL v3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    1515As of WordPress 4.4, the _Get Shortlink_ button is hidden by default. This plugin brings it back. Yay.
    1616
     17Please note that the button does not exist at all in a Block Editor context. It will only show up when using the Classic Editor, for example, when editing a single attachment.
     18
    1719== Installation ==
    1820
    19 This plugin requires PHP 5.3.
     21This plugin requires PHP 7.0.
    2022
    21231. Upload the `bring-back-the-get-shortlink-button` folder to the `/wp-content/plugins/` directory on your web server.
     
    2426
    2527== Changelog ==
     28
     29= 2.0.0 =
     30* Add type declarations.
     31* Add code quality tooling and config.
     32* **BREAKING:** Require PHP 7.4 or higher.
     33* Bump "Tested up to" header.
    2634
    2735= 1.2.0 =
Note: See TracChangeset for help on using the changeset viewer.