Skip to content

Commit

Permalink
Fixed incorrect text domain; set stable tag to 'trunk.'
Browse files Browse the repository at this point in the history
  • Loading branch information
cagross committed Nov 11, 2019
1 parent c5dae89 commit b4ef092
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
8 changes: 7 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to the Outdated Plugin Notifier project will be documented i
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.1] - 2019-11-05
### Fixed
- Issue which would have prevented translations from being properly added to plugin. Translations can now be added as expected.
### Fixed
- Minor issue relating to the WP plugin repository.

## [1.0.0] - 2019-10-07
### Added
- Initial plugin version added to WP repository.
- Initial plugin version added to WP plugin repository.
18 changes: 9 additions & 9 deletions outdated-plugin-notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* Plugin Name: Outdated Plugin Notifier
* Plugin URI: https://everlooksolutions.com
* Description: Plugin to display last modified date for all plugins.
* Version: 1.0.0
* Version: 1.0.1
* Author: Carl Gross
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: opn-td
* Text Domain: outdated-plugin-notifier
* Domain Path: /languages
* Requires at least: 4.9.0
* Requires PHP: 7.0
Expand Down Expand Up @@ -51,7 +51,7 @@ function opn_error_wp( $plugin_meta, $plugin_file ) {
*/
function opn_error_php( $plugin_meta, $plugin_file ) {
if ( plugin_basename( __FILE__ ) === $plugin_file ) {// In the plugin admin table, for the Outdated Plugin Notifier plugin, display an error message.
$plugin_meta[] = 'Your version of PHP does not meet the minimum requirements. Please upgrade to PHP version 7.3 or later.';
$plugin_meta[] = 'Your version of PHP does not meet the minimum requirements. Please upgrade to PHP version 7.0 or later.';
}
return $plugin_meta;
}
Expand All @@ -65,7 +65,7 @@ function opn_error_php( $plugin_meta, $plugin_file ) {
* @return array Returns an array containing the header text for each column in the plugin admin table (each array value is a string).
*/
function opn_add_column( $columns ) {
$columns['last_updated'] = __( 'Last Dev Update', 'opn_td' );
$columns['last_updated'] = __( 'Last Dev Update', 'outdated-plugin-notifier' );
return $columns;
}

Expand All @@ -78,7 +78,7 @@ function opn_add_column( $columns ) {
* @return array Returns an array containing the header text for each column in the plugin admin table (each array value is a string).
*/
function opn_add_sortable_column( $columns ) {
$columns['last_updated'] = __( 'Last Dev Update', 'opn_td' );
$columns['last_updated'] = __( 'Last Dev Update', 'outdated-plugin-notifier' );
return $columns;
}

Expand All @@ -96,7 +96,7 @@ function opn_render_date( $column_name, $plugin_file, $plugin_data ) {

// Check if WordPress can find a slug for the plugin. If not, return an error message.
if ( empty( $plugin_data['slug'] ) ) {
esc_html_e( 'Plugin name not found.', 'opn_td' );
esc_html_e( 'Plugin name not found.', 'outdated-plugin-notifier' );
return;
}

Expand All @@ -114,7 +114,7 @@ function opn_render_date( $column_name, $plugin_file, $plugin_data ) {
echo( esc_html( $date_lu_form ) );// Display the formatted date on the screen.

} else {
esc_html_e( 'Plugin information not found.', 'opn_td' );// If plugin information is not found in the WP plugin repo, display an error message.
esc_html_e( 'Plugin information not found.', 'outdated-plugin-notifier' );// If plugin information is not found in the WP plugin repo, display an error message.
}
}
}
Expand All @@ -137,7 +137,7 @@ function opn_main() {
}

// Confirm user's version of PHP meets minimum requirement.
$opn_minphpver = '7.2';
$opn_minphpver = '7.0';
if ( version_compare( PHP_VERSION, $opn_minphpver, '<' ) ) {
add_filter( 'plugin_row_meta', 'opn_error_php', 10, 2 );
deactivate_plugins( plugin_basename( __FILE__ ) );// Self-deactivate the Outdated Plugin Notifier plugin.
Expand All @@ -148,7 +148,7 @@ function opn_main() {
if ( ! function_exists( 'plugins_api' ) ) {
$opn_include = include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
if ( false === $opn_include ) {
esc_html_e( 'WordPress file wp-admin/includes/plugin-install.php not found.', 'opn_td' );
esc_html_e( 'WordPress file wp-admin/includes/plugin-install.php not found.', 'outdated-plugin-notifier' );
return;
}
}
Expand Down
8 changes: 4 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://everlooksolutions.com/
Tags: plugins
Requires at least: 4.9.0
Tested up to: 5.2.4
Stable tag: 1.0.0
Stable tag: trunk
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -26,7 +26,7 @@ To use, simply install and activate the plugin. There is no additional configur

= Are there any settings to configure? =

As of version 1.0.0, there are no settings to configure with this plugin. As soon as you activate the plugin, it will display a new column on the plugin admin page.
There are currently no settings to configure with this plugin. As soon as you activate the plugin, it will display a new column on the plugin admin page.

== Screenshots ==

Expand All @@ -39,5 +39,5 @@ As of version 1.0.0, there are no settings to configure with this plugin. As so

== Upgrade Notice ==

= 1.0.0 =
When future versions are released, this section will describe why user's should upgrade.
= 1.0.1 =
* Fixes a bug which would have prevented translations from being added to the plugin. Feel free to contribute to the project and translate the plugin into a language other than EN-US.

0 comments on commit b4ef092

Please sign in to comment.