Skip to content

Commit

Permalink
2023-08-01
Browse files Browse the repository at this point in the history
modified:   CHANGELOG.md
modified:   README.md
  • Loading branch information
smileBeda committed Aug 1, 2023
1 parent 6f5b8ab commit a0c98a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 2023-08-01
### Changed
- Use Constant instead of function for the plugin base name

This comment has been minimized.

Copy link
@szepeviktor

szepeviktor Aug 1, 2023

I would gladly read: Use an immutable container for the plugin base name :)

This comment has been minimized.

Copy link
@smileBeda

smileBeda Aug 1, 2023

Author Member

I am not the best at writing changelogs... but as far as "immutable container" goes, this is in fact a Constant - so we speak about the same, right?

This comment has been minimized.

Copy link
@szepeviktor

szepeviktor Aug 1, 2023

No. A container is an object, an instance of a class.
And it is immutable as you initially put in values, they cannot be modified.
An example.

But I let you choose technologies. Objects may not be to your liking.

This comment has been minimized.

Copy link
@smileBeda

smileBeda Aug 1, 2023

Author Member

Ah, got you. Yes, that makes (most likely) sense and is within v5.0 scope.
I do not like globals because the global space is already cluttered, and functions, while OK to use IMO as long they are provided by core already (especially in this case I do not really see why we shouldn't use inbuilt global functions provided by WP), might not be the best thing either.

- Added License to main project
- Updated readme with information on translation and minor fixes
### HEADS UP
This is the last release before a full refactor towards more modern approaches such as using namespaces and autoloader. This version (4.0.1) will not receive any further updates unless security fixes. Version 5.0.0 and upwards is the only actively supported version from today on.

The new version 5.0.0 and upwards is NOT backwards compatible with prior versions.

## 2023-07-01
### Changed
- Small refactors to be more compliant with coding standards
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ For example, if your plugin is named 'example-me' then:
* change `plugin-name` to `example-me`
* change `Plugin_Name` to `Example_Me`
* change `PLUGIN_NAME_` to `EXAMPLE_ME_`
* change `pfx_` to `example_me_`

It's safe to activate the plugin at this point.
Because the Boilerplate has no real functionality there will be no menu items, meta boxes, or custom post types added until you write the code, of course.

For simplicity, you can just use the [TukuToi Boilerplate Generator Plugin](https://github.com/TukuToi/tukutoi-plugin-generator), or the Webform (coming soon), to generate a starter plate using your file-, class-, method- names (and prefixes, authorname, etc etc).
For simplicity, you can just use the [TukuToi Boilerplate Generator Plugin](https://github.com/TukuToi/tukutoi-plugin-generator), or the [Webform](https://www.generateplugins.com/), to generate a starter plate using your file-, class-, method- names (and prefixes, authorname, etc etc).

## Generate POT file for translation

Expand All @@ -65,7 +66,6 @@ We also follow [Keep A Changelog](https://keepachangelog.com/en/1.0.0/) for chan

If you’re interested in writing any documentation or creating tutorials please let's discuss in the [Discussions section](https://github.com/TukuToi/better-wp-plugin-boilerplate/discussions) of this Repo.


# Credits

The WordPress Plugin Boilerplate was started in 2011 by [Tom McFarlin](https://twitter.com/tommcfarlin/) and has since included a number of great contributions. In March of 2015 the project was handed over by Tom to Devin Vinson.
Expand Down

0 comments on commit a0c98a0

Please sign in to comment.