Releases: wpbones/WPBones
Releases Β· wpbones/WPBones
v1.9.0
β¨ Added
- Added new
registerPlaceholderTitle
overwritten method inWordPressCustomPostTypeServiceProvider
to set the placeholder title for the custom post type. - Added new
registerAfterTitleView
overwritten method inWordPressCustomPostTypeServiceProvider
to set the after title view for the custom post type. - Added new
registerColumns
overwritten method inWordPressCustomPostTypeServiceProvider
to set the columns for the custom post type. - Added new
registerPostMeta
overwritten method inWordPressCustomPostTypeServiceProvider
to register the post meta for the custom post type. - Added new
registerMetaBoxes
overwritten method inWordPressCustomPostTypeServiceProvider
to register the post meta for the custom post type. - Added new
registerLabels
overwritten method inWordPressCustomPostTypeServiceProvider
to set the labels for the custom post type. - Added new
columnContent
overwritten method inWordPressCustomPostTypeServiceProvider
to handle the column content for the custom post type. - Added new
wpbones_console_deploy_dont_skip_files_folders
filters to exclude specific files from deployment - Added new
wpbones_console_deploy_default_skip_files_folders
filters the default list of the files and folder to skip during deployment - Added new
wpbones_console_deploy_build_assets
filters to skip asset building during deployment
π Fixed
- Minor fixes in the documentation
π Changed and Improved
- Updated the Custom Post Type documentation to reflect the new changes
- Added the Custom Post Type core class documentation
- Improved documentation header generation to provide concise page content summaries
- Enhance package manager handling within the
php bones
command for improved reliability and performance - Enhance
php bones install
command with comprehensive package installation support (#54) - Minor fixes and improvements to the
php bones
command.
π₯ Breaking Changes
- The
registerMetaBoxCallback
property in theWordPressCustomPostTypeServiceProvider
is deprecated, useregisterMetaBoxes
overwritten method instead.
v1.8.1
v1.8.0
β¨ Added
- Added new
WordPressScheduleServiceProvider
service provider to manage the WordPress cron jobs - Added new
php bones make:schedule
command to create a new WordPress cron job - Added new WPKirk-Cron-Boilerplate example plugin
- Added new WPKirk-Hooks-Boilerplate example plugin
- Added new
wpbones_cache()
helper function to manage a simple cached data in the WordPress transients - Added new
wpbones_import()
helper function andimport()
alias for streamlined module folder management - Added new
file
property in thePlugin Class
as alias of__FILE__
constant
π Fixed
- Improved deployment process by excluding
tsconfig.json
from file synchronization to streamline build and transfer operations (#50) - Improved text domain loading to align with WordPress 6.7 Internationalization improvements (#51)
π Changed and Improved
- Reorganized the command list in
php bones
for better readability. - Updated the Service Providers documentation to reflect the new changes
- Completely rewrote all boilerplates using the new
wpkirk-helpers
package, enhancing project structure and maintainability - Improved documentation for Boilerplate, addressing minor bug fixes and enhancing overall clarity
v1.7.0
β¨ Added
- Added new entry
logging
inconfig/plugin.php
file to configure Logging behavior. - Added new
DB::tableWithoutPrefix()
method to query the database table without the table prefix. - Added new
$usePrefix
params in theDB::table()
method to query the database table with or without the table prefix. - Added new
$usePrefix
property in theModel
class to query the database table with or without the table prefix. - Added new
$usePrefix
property in theMigration
class to query the database table with or without the table prefix. - Added new
$usePrefix
property in theSeeder
class to query the database table with or without the table prefix. - Added new WPKirk-Database-Boilerplate example plugin.
- Added new Templates section in the documentation.
π Changed and Improved
- Updated the Logging documentation to reflect the new changes.
- Updated the Core Plugin Files documentation to reflect the new changes.
- Database table prefix is now optional in the
DB::table()
method,Model
,Migration
, andSeeder
classes. - Updated the Database documentation to reflect the new changes.
- Updated and improved the WPKirk Demo plugin.
π Fixed
- Resolved an issue with the
Log
provider that prevented logs from being written to the file and displayed in the console. - Fixed the
Model
andEloquent
model path created by bones command.
π₯ Breaking Changes
- The
"log"
entry in theconfig/plugin.php
file is deprecated. Use the new settinglogging
instead. - The
"log_level"
entry in theconfig/plugin.php
file is deprecated as it is no longer used.
1.6.5
β¨ Added
- Added a new WP Bones helper function
wpbones_flatten_and_uniquify()
to flatten and uniquify the array. - Added a new
php bones plugin
command to display the plugin header and perform plugin related operations. - Added a new
php bones plugin --check-header
command to check the plugin header.
π Changed and Improved
- Revamped the
php bones
command intro message. - Removed verbose file listing during the
php bones update
command. - Improved documentation for enhanced clarity and usability
π Fixed
- Fixed the
select()
fluent method in theHTML::select()
component to work with themultiple
attribute. Now you can pass a comma separated string to theselected
attribute as well as an array. - Fixed the Eloquent documentation.
- Fixed an issue with the
php bones update
command where it was incorrectly searching for the hardcodedlocalization
folder instead of using theDomain Path
value from the plugin header. - Fixed an issue in the
View Class
class that prevent that correct enqueueing of the inline scripts and inline styles.
π₯ Breaking Changes
- Deprecated
withScripts()
andwithStyles()
fluent methods in theView Class
- usewithScript()
andwithStyle()
instead.
v1.6.0
β¨ Added
- Added the Internationalization support for the ReactJS app and blocks.
- Added the Core Classes documentation.
- Added the Core Plugin Files documentation.
- Added the FAQs documentation.
- Added the npm script
make-pot
to generate the.pot
file for the ReactJS app and blocks. - Added the npm script
make-json
to generate the.json
file for the ReactJS app and blocks. - Added the npm script
package-update
. - Added the npm script
check-engines
. - Added the npm script
check-licenses
. - Added the npm script
format
to format the code. - Added the
wp_set_script_translations()
support for the ReactJS app and blocks. - Added a new
dev
branch for the development. - Added
withInlineScript()
fluent method in theView Class
- Added
withInlineStyle()
fluent method in theView Class
- Added CHANGELOG.md file.
- Added new WP Bones API Boilerplate example plugin.
- Added new WP Bones Internationalization Boilerplate example plugin.
- Added new WP Bones Mantine Boilerplate example plugin.
- Added new WP Bones ReactJS Boilerplate example plugin.
- Added new WP Bones Routes Boilerplate example plugin.
- Added a new Flags Package to manage the static feature flags in your plugin.
π Changed and Improved
- The
bones
command displays the WP-CLI version. - Minor fixes and improvements in the
bones
command. - Updated and improved the Documentation.
- Updated the WPBones demo plugin.
- Updated the WPBones Boilerplate plugin
- Update the Help Functions documentation.
π Fixed
- Fixed an issue where admin scripts and styles were always being loaded in the
View Class
, even on the theme side. - Fixed Compatibility with macOS
.DS_Store
files (#47)
π₯ Breaking Changes
- Deprecated
withAdminScripts()
andwithAdminStyles()
fluent methods in theView Class
- usewithAdminScript()
andwithAdminStyle()
instead. - Deprecated
withLocalizeScripts()
fluent methods in theView Class
- usewithLocalizeScript()
instead. - Deprecated
withAdminAppsScripts()
fluent methods in theView Class
- usewithAdminAppsScript()
instead. - Deprecated
getBasePath()
andgetBaseUri()
methods in thePlugin Class
- usebasePath
andbaseUri
properties instead. - In the WPBones demo plugin and WPBones Boilerplate plugin we have renamed the
localization
folder tolanguages
.
π€ Suggestions
- To use the new npm scripts for the localization, you need to install WP-CLI.
π§βπ»π©βπ» New Contributors
v1.5.0
β¨ New
- Added
--wp
option to thephp bones deploy
command to create a WordPress plugin folder structure in accordance with the WordPress Plugin Handbook. - Updated the documentation about the
php bones deploy
command. - updated the documentation and the Demo plugin about the ability to handle the
null
values in the options. - Added useful information on Before submitting your plugin to the WordPress repository in the documentation.
- Updated the Demo plugin to the latest version of WP Bones.
- Updated the WP Kirk Boilerplate to the latest version of WP Bones.
1.4.15
1.4.14
1.4.13
-
π Remove undefined checks from upgrader_post_install: the
$hook_extra['type']
and$hook_extra['action']
variables doesn't exist in most cases, causing the hook to never run. By checking for the plugin name instead, we ensure the hook executes correctly. -
π Allow null as option default value. Currently, if you set a default value of
null
for an option in yourconfig/option.php
file, every time you activate the plugin, the value of that option is reset tonull
, regardless of the current value.