v3.2.0-beta1
Pre-release
Pre-release
This release contains the first beta version of Papi 3.2.0, a lot has been added, changed, fixed and some functions has been removed (mostly core stuff). Papi 3.2.0 introduce a new core data api that is used everywhere in the plugin and by advanced properties. Upgrading from Papi 3.1.x will work and the new core data api will not create any problems.
This is just a beta release and stuff will be fixed and changed when Papi 3.2.0 is out. Use the beta release to test your sites, give feedback and contribute fixes.
Added
- Added:
body_classeswill be added to the frontend aswell and not just the admin. - Added:
register_metasupport for REST API. - Added: Edit post reference in a iframe instead of leaving the current page.
- Added: Page type switcher.
- Added:
papi/get_boxesfilter so you can add boxes to a entry type that don't exists in the class. - Added: New ajax action for shortcodes
/papi-ajax/?action=get_shortcode&shortcode=[test] - Added: New method on
Papi_Entry_Typeto fetch all propertiesget_properties, it's useful if you would like to build something custom. - Added:
Papi_Query - Added: Multiple select support for dropdown property.
- Added:
site_idoption added to both box and property. - Added:
papi/get_propertyfilter added so you can modify properties when they are fetched inside Papi. - Added: Labels to flexible property so you can see which row is using which layout.
- Added:
fields => idssetting on file, image, gallery, post, term and relationship property. - Added:
meta_key => custom_meta_keysetting on file, image, gallery, post, term and relationship property, so you can match meta value instead of post id. - Added: Support for
anypost type value for a page type.
Changed
- Changed: WordPress 4.4 will be required instead of 4.0.
- Changed: String numeric and bool values are strings and numeric and bool values are not string values in dropdown anymore.
- Changed: You can now use
papi_is_page_typeto check if current post is a page type with (was only used internal before). - Changed:
papi()->make( 'Sample_Page_Type' )is replaced by idpapi()->make( 'simple-page-type' )to make it more consistent.
Deprecated
- Deprecated:
papi_get_page, is deprecated and you should usepapi_get_meta_store( $id )instead since it support both post, term and option stores andpapi_get_pagereturns the value ofpapi_get_meta_storeso no need for two functions that does the same thing.
Fixed
- Fixed:
papi_get_entry_type_css_classwill work with taxonomies. - Fixed: Better peformance when core loads entry types.
- Fixed: Group properties works with conditional rules now.
Removed
- Removed: HHVM testing is removed, PHP7 is more awesome.
- Removed:
papi_delete_property_meta_valueis replaced withpapi_data_delete, mostly use by core and advanced properties. - Removed:
papi_get_property_meta_valueis replaced withpapi_data_get, mostly use by core and advanced properties. - Removed:
papi_update_property_meta_valueis replaced withpapi_data_update, mostly use by core and advanced properties.