Skip to content

Commit

Permalink
Merge pull request #30 from petenelson/fix/php-8
Browse files Browse the repository at this point in the history
Fixed deprected PHP 8 notices
  • Loading branch information
petenelson authored Dec 26, 2024
2 parents b64db46 + 3207547 commit dcbecf2
Show file tree
Hide file tree
Showing 14 changed files with 1,637 additions and 132 deletions.
12 changes: 1 addition & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ module.exports = function( grunt ) {
},
},

insert: {
options: {},
badges: {
src: "badges.md",
dest: "README.md",
match: "**License URI:** http://www.gnu.org/licenses/gpl-2.0.html "
},
},

copy: {

// create release for WordPress repository
Expand Down Expand Up @@ -69,7 +60,6 @@ module.exports = function( grunt ) {
'grunt-contrib-clean',
'grunt-contrib-copy',
'grunt-wp-readme-to-markdown',
'grunt-insert',
'grunt-wp-i18n'
];

Expand All @@ -83,7 +73,7 @@ module.exports = function( grunt ) {
// create release for WordPress repository
grunt.registerTask( 'wp', [ 'makepot', 'clean', 'copy' ] );

grunt.registerTask( 'readme', ['wp_readme_to_markdown', 'insert:badges'] );
grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );

grunt.util.linefeed = '\n';

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# Any Ipsum #
**Contributors:** [gungeekatx](https://profiles.wordpress.org/gungeekatx), [shooper](https://profiles.wordpress.org/shooper)
**Contributors:** [gungeekatx](https://profiles.wordpress.org/gungeekatx/), [shooper](https://profiles.wordpress.org/shooper/)
**Tags:** content, ipsum
**Donate link:** https://baconipsum.com/
**Requires at least:** 4.0
**Tested up to:** 5.5
**Stable tag:** 1.9.3
**Tested up to:** 6.7.1
**Stable tag:** 1.9.4
**Text Domain:** any-ipsum
**Domain Path:** /lang
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

[![Code Climate](https://codeclimate.com/github/petenelson/wp-any-ipsum/badges/gpa.svg)](https://codeclimate.com/github/petenelson/wp-any-ipsum)


Roll your own custom lorem ipsum generator

## Description ##
Expand Down Expand Up @@ -41,6 +38,9 @@ The plugin installs Bacon Ipsum filler by default, so be sure to check Settings/

## Changelog ##

### v1.9.4 December 26, 2024 ###
* Fixed deprecated notices for PHP 8.

### v1.9.3 July 31, 2018 ###
* Fixed bugs in the code that loads default filler and custom words and an array count bug (props @colinusher)

Expand Down
87 changes: 29 additions & 58 deletions lang/any-ipsum.pot
Original file line number Diff line number Diff line change
@@ -1,241 +1,215 @@
# Copyright (C) 2018 Pete Nelson (@GunGeekATX)
# Copyright (C) 2024 Pete Nelson (@GunGeekATX)
# This file is distributed under the same license as the Any Ipsum package.
msgid ""
msgstr ""
"Project-Id-Version: Any Ipsum 1.9.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-any-ipsum\n"
"POT-Creation-Date: 2018-12-16 15:31:40+00:00\n"
"POT-Creation-Date: 2024-12-26 16:28:58+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2024-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"X-Generator: grunt-wp-i18n1.0.2\n"
"X-Generator: grunt-wp-i18n 1.0.3\n"

#: lib/admin-help.php:19 release/lib/admin-help.php:19
#: lib/admin-help.php:19
msgid "Shortcode"
msgstr ""

#: lib/admin-help.php:21 release/lib/admin-help.php:21
#: lib/admin-help.php:21
msgid "Add a form to any page or post to generate your custom ipsum"
msgstr ""

#: lib/admin-help.php:22 release/lib/admin-help.php:22
#: lib/admin-help.php:22
msgid ""
"You can also add a header that's displayed at the beginning of the form and "
"is hidden when the form is submitted"
msgstr ""

#: lib/admin-help.php:22 release/lib/admin-help.php:22
#: lib/admin-help.php:22
msgid "Give our ipsum generator a try! It's the best!"
msgstr ""

#: lib/admin-help.php:25 release/lib/admin-help.php:25
#: lib/admin-help.php:25
msgid "API Parameters"
msgstr ""

#: lib/admin-help.php:28 release/lib/admin-help.php:28
#: lib/admin-help.php:28
msgid "for custom mixed with miscellaneous filler."
msgstr ""

#: lib/admin-help.php:29 lib/admin-help.php:31 release/lib/admin-help.php:29
#: release/lib/admin-help.php:31
#: lib/admin-help.php:29 lib/admin-help.php:31
msgid "optional"
msgstr ""

#: lib/admin-help.php:29 release/lib/admin-help.php:29
#: lib/admin-help.php:29
msgid "number of paragraphs, defaults to 5."
msgstr ""

#: lib/admin-help.php:30 release/lib/admin-help.php:30
#: lib/admin-help.php:30
msgid "number of sentences (this overrides paragraphs)"
msgstr ""

#: lib/admin-help.php:31 release/lib/admin-help.php:31
#: lib/admin-help.php:31
msgid ""
"pass <strong>1</strong> to start the first paragraph with your custom Start "
"With text"
msgstr ""

#: lib/admin-help.php:35 release/lib/admin-help.php:35
#: lib/admin-help.php:35
msgid "Filters"
msgstr ""

#: lib/admin-help.php:38 release/lib/admin-help.php:38
#: lib/admin-help.php:38
msgid "Returns an array of paragraphs"
msgstr ""

#: lib/admin-help.php:38 lib/admin-help.php:44 lib/admin-help.php:50
#: release/lib/admin-help.php:38 release/lib/admin-help.php:44
#: release/lib/admin-help.php:50
msgid "Parameters"
msgstr ""

#: lib/admin-help.php:40 release/lib/admin-help.php:40
#: lib/admin-help.php:40
msgid "array containing the same parameters as above (type, paras, etc)"
msgstr ""

#: lib/admin-help.php:44 release/lib/admin-help.php:44
#: lib/admin-help.php:44
msgid "Customize the HTML form generated by the anyipsum-form shortcode"
msgstr ""

#: lib/admin-help.php:46 release/lib/admin-help.php:46
#: lib/admin-help.php:46
msgid "Default HTML form"
msgstr ""

#: lib/admin-help.php:50 release/lib/admin-help.php:50
#: lib/admin-help.php:50
msgid "Customize the generated custom ipsum created by the anyipsum-form shortcode"
msgstr ""

#: lib/admin-help.php:52 release/lib/admin-help.php:52
#: lib/admin-help.php:52
msgid "Default output"
msgstr ""

#: lib/admin-help.php:53 release/lib/admin-help.php:53
#: lib/admin-help.php:53
msgid "Paragraphs of generated ipsum"
msgstr ""

#: lib/admin-help.php:60 release/lib/admin-help.php:60
#: lib/admin-help.php:60
msgid "Contact"
msgstr ""

#: lib/admin-help.php:62 release/lib/admin-help.php:62
#: lib/admin-help.php:62
msgid "E-Mail"
msgstr ""

#: lib/admin-help.php:63 release/lib/admin-help.php:63
#: lib/admin-help.php:63
msgid "Twitter"
msgstr ""

#: lib/admin-help.php:64 release/lib/admin-help.php:64
#: lib/admin-help.php:64
msgid "GitHub"
msgstr ""

#: lib/class-WPAnyIpsumForm.php:108 release/lib/class-WPAnyIpsumForm.php:108
#: lib/class-WPAnyIpsumForm.php:108
msgid "Paragraphs"
msgstr ""

#: lib/class-WPAnyIpsumForm.php:110 release/lib/class-WPAnyIpsumForm.php:110
#: lib/class-WPAnyIpsumForm.php:110
msgid "Type"
msgstr ""

#: lib/class-WPAnyIpsumForm.php:122 release/lib/class-WPAnyIpsumForm.php:122
#: lib/class-WPAnyIpsumForm.php:122
msgid "Start with"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:73
#: release/lib/class-WPAnyIpsumSettings.php:73
msgid ""
"<strong>Any Ipsum activated!</strong> Please visit the <a href=\"%s\">Any "
"Ipsum Settings</a> page to customize your ipsum generator."
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:98
#: release/lib/class-WPAnyIpsumSettings.php:98
msgid "General"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:106
#: release/lib/class-WPAnyIpsumSettings.php:106
msgid "Your Ipsum Name"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:109
#: release/lib/class-WPAnyIpsumSettings.php:109
msgid "All Custom Text"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:112
#: release/lib/class-WPAnyIpsumSettings.php:112
msgid "Custom and Filler Text"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:115
#: release/lib/class-WPAnyIpsumSettings.php:115
msgid "Start With Text"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:118
#: release/lib/class-WPAnyIpsumSettings.php:118
msgid "Button Text"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:121
#: release/lib/class-WPAnyIpsumSettings.php:121
msgid "Querystring for All Custom"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:124
#: release/lib/class-WPAnyIpsumSettings.php:124
msgid "Querystring for Custom and Filler"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:131
#: release/lib/class-WPAnyIpsumSettings.php:131
msgid "Custom and Filler"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:139
#: release/lib/class-WPAnyIpsumSettings.php:139
msgid "Custom Words"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:142
#: release/lib/class-WPAnyIpsumSettings.php:142
msgid "Filler Words"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:145
#: release/lib/class-WPAnyIpsumSettings.php:145
msgid "Sentence Mode"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:146
#: release/lib/class-WPAnyIpsumSettings.php:146
msgid ""
"The custom words above are sentences instead of words. Disables automatic "
"punctuation."
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:167
#: release/lib/class-WPAnyIpsumSettings.php:167
msgid "Enabled"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:171
#: release/lib/class-WPAnyIpsumSettings.php:171
msgid "(please enable any non-default Permalink structure)"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:183
#: release/lib/class-WPAnyIpsumSettings.php:183
msgid "Example: oembed, ipsum-oembed"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:186
#: release/lib/class-WPAnyIpsumSettings.php:186
msgid "Example: api, ipsum-api, etc"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:198
#: release/lib/class-WPAnyIpsumSettings.php:198
msgid "Help"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:302
#: release/lib/class-WPAnyIpsumSettings.php:302
msgid "Yes"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:303
#: release/lib/class-WPAnyIpsumSettings.php:303
msgid "No"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:312 lib/class-WPAnyIpsumSettings.php:349
#: release/lib/class-WPAnyIpsumSettings.php:312
#: release/lib/class-WPAnyIpsumSettings.php:349
msgid "Any Ipsum Settings"
msgstr ""

Expand All @@ -244,19 +218,16 @@ msgid "Any Ipsum"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:326
#: release/lib/class-WPAnyIpsumSettings.php:326
msgid "Save Settings"
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:365
#: release/lib/class-WPAnyIpsumSettings.php:365
msgid ""
"Allows for API access to your custom ipsum, that returns JSON, HTML, or "
"plain text."
msgstr ""

#: lib/class-WPAnyIpsumSettings.php:368
#: release/lib/class-WPAnyIpsumSettings.php:368
msgid "Example"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion lib/admin-help.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<h3 class="title"><?php _e( 'Contact', $text_domain ); ?></h3>
<p>
<?php _e( 'E-Mail', $text_domain ) ?>: <a href="mailto:[email protected]">[email protected]</a><br/>
<?php _e( 'Twitter', $text_domain ) ?>: <a href="https://twitter.com/GunGeekATX" target="_blank">@GunGeekATX</a><br/>
<?php _e( 'Twitter', $text_domain ) ?>: <a href="https://twitter.com/CodeGeekATX" target="_blank">@CodeGeekATX</a><br/>
<?php _e( 'GitHub', $text_domain ) ?>: <a href="https://github.com/petenelson/wp-any-ipsum" target="_blank">https://github.com/petenelson/wp-any-ipsum</a><br/>
</p>

Expand Down
10 changes: 3 additions & 7 deletions lib/class-WPAnyIpsumAPI.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php
/*
Class: WPAnyIpsumAPI
Author: Pete Nelson (@GunGeekATX)
Exposes a JSON API endpoint
*/
/**
* Class WPAnyIpsumAPI
*/

if ( !defined( 'ABSPATH' ) ) die( 'restricted access' );

Expand Down
Loading

0 comments on commit dcbecf2

Please sign in to comment.