Releases: wp-papi/papi
v3.0.2
v2.4.12
v3.0.1
v2.4.11
v3.0.0
Papi 3.0.0 is a big release since a big piece of the core code has been refactored to improve how page type works. With 3.0.0 release we introduce Entry Type
which is a base class that both page type and option type use. Both box
and tab
logic has been rewritten with new core classes and the admin classes has been divided into several smaller classes. Some internal functions has been removed or rewritten with backward compatibility.
We moved some logic from page type class to entry type class to be able the separate page type and option type class. This will make it easier to add new types to core or create plugin that has custom types.
Added
- Added: Extended support for
meta
,box
andremove
methods #114. - Added: WP CLI Support #111.
- Added: Group property #112.
- Added:
papi/before_init
action that is fired before Papi loads textdomain, classes, functions and setups the container. - Added:
papi/init
action that is fired after Papi loads textdomain, classes, functions and setups the container. - Added:
papi/loaded
action that will be the newpapi/include
. The old action is deprecated but will still work, it's fired beforepapi/loaded
and will be removed in a feature version of Papi. - Added:
placeholder
setting to string property. - Added: Description to option type meta data.
- Added:
papi/settings/column_hide_{$post_type}
for hiding type column. - Added:
papi/template_include
to provide support for third party templating engines. - Added: Layout mode to post property. It can devide into multiple select or a single select with labels (as before).
- Added: Layout mode to term property. It can devide into multiple select or a single select with labels (as before).
- Added: Second bool param to
papi_get_slugs
that will return only slugs if true. - Added: A way to handle classes with the same name in multiple directories #107
- Added: When WordPress refresh nonces, Papi nonces should be refreshed too.
Changed
- Flexible property will only save one layout per row. The layout key is changed from
_layout
to_flexible_layout
since_layout
can be a real slug. It has backward compatibility for the old layout key. This may cause problem with existing slugs that are namedlayout
. To fix default value issue you need to manually add the layout value for the effected row. The slug will be something like this:sections_0_flexible_layout
, wheresections
is your flexible slug,0
is the row and_flexible_layout
is the new layout key. The value should be a slug of the layout title, the same value as the old_layout
rows that exists on each property.
Fixed
- Fixed: Save post issue when using property template file and overwrited the slug #129.
- Fixed: Select2 clear issue #132.
- Fixed: Property type values like
test-form-1
should matchPapi_Property_Test_Form_1
- Fixed: When using
overwrite
it should read data from the post instead of post meta #145 - Fixed: Same prefix on folders should not replace all, only the current one.
Removed
- Removed:
remove
method is removed. - Removed: No more array properties, all properties must use
papi_property
or$this->property
to work. This because the converting of array properties is bad and some keys can't be used for other things. - Removed deprecated function
current_page
, was deprecated in 2.0.0. - Removed deprecated function
papi_field
, was deprecated in 2.0.0. - Removed deprecated function
papi_fields
, was deprecated in 2.0.0. - Removed deprecated function
papi_get_page_type_meta_value
, was deprecated in 2.0.0. - Removed deprecated meta methods,
page_type
andoption_type
,meta
method should be used instead.
Upgraded
- Upgraded: Moment.js from 2.10.6 to 2.11.0
Thanks
Thanks to all contributors and all who have tested Papi during the development.
v3.0.0-beta1
First beta release of Papi 3!
Since this is a beta release we won't write the full changelog here, you can read it here.
v2.4.10
Fixed: jQuery sortable text input issue with TinyMCE, see issue #121, thanks @entr!
Fixed: Meta box css border issue in WordPress 4.4.
Fixed: Papi redirected to add new page when no page types was register on page post type.
Fixed: Offset check before using the offset value in html_id
method in core property class.
v2.4.9
v2.4.8
Fixed: String issue with $page
variable in papi_get_post_type
Fixed: Apostrophe issue with added slash, see issue #126.
v2.4.7
Fixed: Template did return empty string when no template was found.
Fixed: Select2 overflow, see issue #105.