From 8926655a5461d9e0998b305cc7fd46ad3636b984 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 13 Apr 2019 20:44:27 -0700 Subject: [PATCH] Bump WP compat --- README.md | 32 ++++++++++++++ eth-redirect-to-latest.php | 4 +- languages/.gitkeep | 0 languages/eth-redirect-to-latest.pot | 64 ++++++++++++++++++++++++++++ readme.txt | 2 +- 5 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 README.md delete mode 100644 languages/.gitkeep create mode 100644 languages/eth-redirect-to-latest.pot diff --git a/README.md b/README.md new file mode 100644 index 0000000..82e72d2 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# ETH Redirect to Latest Post # +**Contributors:** ethitter +**Donate link:** https://ethitter.com/donate/ +**Tags:** latest, latest post, redirect, redirect latest, redirect post +**Requires at least:** 4.5 +**Tested up to:** 5.2 +**Stable tag:** 0.2.2 +**License:** GPLv2 or later +**License URI:** http://www.gnu.org/licenses/gpl-2.0.html + +Redirect a chosen slug, "latest" by default, to, well, the most-recently published post. + +## Description ## + +Once activated, a given slug will redirect to whatever is the most recently-published post on the site. By default, the slug is `latest`, but it can be changed from the Permalinks settings screen. + +## Installation ## + +1. Upload the plugin files to the `/wp-content/plugins/eth-redirect-to-latest` directory, or install the plugin through the WordPress plugins screen directly. +1. Activate the plugin through the 'Plugins' screen in WordPress. +1. If desired, change the slug from the 'Permalinks' screen in WordPress. + +## Changelog ## + +### 0.2.2 ### +* Handle sites using slug-only permalinks + +### 0.2.1 ### +* Correct Composer path error + +### 0.2 ### +* Initial release diff --git a/eth-redirect-to-latest.php b/eth-redirect-to-latest.php index f4404a8..b232576 100644 --- a/eth-redirect-to-latest.php +++ b/eth-redirect-to-latest.php @@ -48,8 +48,8 @@ class ETH_Redirect_To_Latest_Post { /** * Dummy magic methods */ - public function __clone() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ uh?' ), '0.1' ); } - public function __wakeup() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ uh?' ), '0.1' ); } + public function __clone() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ uh?', 'eth_redirect_to_latest_post' ), '0.1' ); } + public function __wakeup() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ uh?', 'eth_redirect_to_latest_post' ), '0.1' ); } public function __call( $name = '', $args = array() ) { unset( $name, $args ); return null; } /** diff --git a/languages/.gitkeep b/languages/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/languages/eth-redirect-to-latest.pot b/languages/eth-redirect-to-latest.pot new file mode 100644 index 0000000..cbfc15a --- /dev/null +++ b/languages/eth-redirect-to-latest.pot @@ -0,0 +1,64 @@ +# Copyright (C) 2019 Erick Hitter +# This file is distributed under the same license as the ETH Redirect to Latest Post package. +msgid "" +msgstr "" +"Project-Id-Version: ETH Redirect to Latest Post 0.2.2\n" +"Report-Msgid-Bugs-To: " +"https://wordpress.org/support/plugin/eth-redirect-to-latest\n" +"POT-Creation-Date: 2019-04-14 03:43:53+00:00\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"X-Generator: grunt-wp-i18n 0.5.4\n" +"X-Poedit-KeywordsList: " +"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_" +"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n" +"Language: en\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-Country: United States\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-Basepath: ../\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-Bookmarks: \n" +"X-Textdomain-Support: yes\n" + +#: eth-redirect-to-latest.php:51 eth-redirect-to-latest.php:52 +msgid "Cheatin’ uh?" +msgstr "" + +#: eth-redirect-to-latest.php:76 +msgid "latest" +msgstr "" + +#: eth-redirect-to-latest.php:166 +msgid ""Latest post" slug" +msgstr "" + +#: eth-redirect-to-latest.php:176 +msgid "" +"Set the slug that will redirect to the latest published post. The default " +"value is %s." +msgstr "" + +#. Plugin Name of the plugin/theme +msgid "ETH Redirect to Latest Post" +msgstr "" + +#. Plugin URI of the plugin/theme +msgid "https://ethitter.com/plugins/" +msgstr "" + +#. Description of the plugin/theme +msgid "Redirect a chosen slug to the whatever is currently the latest post" +msgstr "" + +#. Author of the plugin/theme +msgid "Erick Hitter" +msgstr "" + +#. Author URI of the plugin/theme +msgid "https://ethitter.com/" +msgstr "" \ No newline at end of file diff --git a/readme.txt b/readme.txt index ca6e7af..e4e9ba7 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: ethitter Donate link: https://ethitter.com/donate/ Tags: latest, latest post, redirect, redirect latest, redirect post Requires at least: 4.5 -Tested up to: 4.7 +Tested up to: 5.2 Stable tag: 0.2.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html -- GitLab