v3.2.0

@frozzare frozzare released this Sep 7, 2017 · 58 commits to master since this release

The stable release 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.

Unfortunately this will likely be the last release I plan to work on as the core maintainer of Papi since my focus has shifted from WordPress to doing more JavaScript and Go projects. I hope you understand my decision to step back from the project, if you have any questions or would be interested in take over some of the maintenance of the project please let me know. I will still be around answering questions and helping any new maintainers. Some bug fixes and/or pull request may be added (but now new versions) since me and my colleagues use Papi internally and will be continuing doing it.

Added

  • Added: body_classes will be added to the frontend aswell and not just the admin.
  • Added: register_meta support for REST API.
  • Added: Edit post reference in a iframe instead of leaving the current page.
  • Added: edit_url setting to post property to display iframe mode.
  • Added: Page type switcher.
  • Added: papi/get_boxes filter 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_Type to fetch all properties get_properties, it's useful if you would like to build something custom.
  • Added: Papi_Query
  • Added: Multiple select support for dropdown property.
  • Added: site_id option added to both box and property.
  • Added: papi/get_property filter 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 => ids setting on file, image, gallery, post, term and relationship property.
  • Added: meta_key => custom_meta_key setting on file, image, gallery, post, term and relationship property, so you can match meta value instead of post id.
  • Added: Support for any post type value for a page type.
  • Added: CLI to rename meta keys for posts and terms, see #208.
  • Added: lang option now supports arrays and not just strings.
  • Added: Filter to override conditional rule allowed value papi/conditional/rule_allowed
  • Added: Filter to modify lang query string value papi/lang
  • Added: Filter to modify template extension papi/template_extension

Changed

  • Changed: PHP 5.6 will be required instead of 5.5.9.
  • 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_type to check if current post is a page type with (was only used internal before).
  • Changed: papi()->make( 'Sample_Page_Type' ) is replaced by id papi()->make( 'simple-page-type' ) to make it more consistent.

Deprecated

  • Deprecated: papi_get_page, is deprecated and you should use papi_get_meta_store( $id ) instead since it support both post, term and option stores and papi_get_page returns the value of papi_get_meta_store so no need for two functions that does the same thing.

Fixed

  • Fixed: papi_get_entry_type_css_class will work with taxonomies.
  • Fixed: Better peformance when core loads entry types.
  • Fixed: Group properties works with conditional rules now.
  • Fixed: Dropdown property can now handle numeric values, see #225.
  • Fixed: Respect show standard type filter in list columns, see #235.
  • Fixed: Complex properties should now be rendered in REST API, see #232.
  • Fixed: Post ID will be respected all the way and it will not guess, see #227.

Removed

  • Removed: HHVM testing is removed, PHP7 is more awesome.
  • Removed: papi_delete_property_meta_value is replaced with papi_data_delete, mostly use by core and advanced properties.
  • Removed: papi_get_property_meta_value is replaced with papi_data_get, mostly use by core and advanced properties.
  • Removed: papi_update_property_meta_value is replaced with papi_data_update, mostly use by core and advanced properties.

v3.2.0-beta2

@frozzare frozzare released this Jun 19, 2017 · 94 commits to master since this release

Beta 2 of Papi 3.2.0, things may change and be fixed when Papi 3.2.0 is out. Use the beta release to test your sites, give feedback and contribute fixes.

Changelog for beta 2 (read changelog for beta 1 here).

Added

  • Added: CLI to rename meta keys for posts and terms, see #208.
  • Added: lang option now supports arrays and not just strings.
  • Added: Filter to override conditional rule allowed value papi/conditional/rule_allowed
  • Added: Filter to modify lang query string value papi/lang
  • Added: Filter to modify template extension papi/template_extension

Fixed

  • Fixed: Dropdown property can now handle numeric values, see #225.
  • Fixed: Respect show standard type filter in list columns, see #235.
  • Fixed: Complex properties should now be rendered in REST API, see #232.
  • Fixed: Post ID will be respected all the way and it will not guess, see #227.

v3.2.0-beta1

@frozzare frozzare released this Apr 5, 2017 · 136 commits to master since this 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_classes will be added to the frontend aswell and not just the admin.
  • Added: register_meta support for REST API.
  • Added: Edit post reference in a iframe instead of leaving the current page.
  • Added: Page type switcher.
  • Added: papi/get_boxes filter 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_Type to fetch all properties get_properties, it's useful if you would like to build something custom.
  • Added: Papi_Query
  • Added: Multiple select support for dropdown property.
  • Added: site_id option added to both box and property.
  • Added: papi/get_property filter 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 => ids setting on file, image, gallery, post, term and relationship property.
  • Added: meta_key => custom_meta_key setting on file, image, gallery, post, term and relationship property, so you can match meta value instead of post id.
  • Added: Support for any post 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_type to check if current post is a page type with (was only used internal before).
  • Changed: papi()->make( 'Sample_Page_Type' ) is replaced by id papi()->make( 'simple-page-type' ) to make it more consistent.

Deprecated

  • Deprecated: papi_get_page, is deprecated and you should use papi_get_meta_store( $id ) instead since it support both post, term and option stores and papi_get_page returns the value of papi_get_meta_store so no need for two functions that does the same thing.

Fixed

  • Fixed: papi_get_entry_type_css_class will 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_value is replaced with papi_data_delete, mostly use by core and advanced properties.
  • Removed: papi_get_property_meta_value is replaced with papi_data_get, mostly use by core and advanced properties.
  • Removed: papi_update_property_meta_value is replaced with papi_data_update, mostly use by core and advanced properties.

v3.1.19

@frozzare frozzare released this Feb 14, 2017 · 477 commits to 3.x since this release

  • Fixed: Sanitize box id key #215.
  • Fixed: Undefined property on file object used in file property #217.
  • Fixed: AJAX endpoint for plain permalink structure #218.
  • Fixed: FORCE_SSL_ADMIN and AJAX endpoint #213.
  • Fixed: oEmbed cache is broken if content is empty #210.
  • Fixed: Respect user admin language in WordPress 4.7 #209.
  • Fixed: Sort order on properties.
  • Fixed: Autosave didn't work as it should.
  • Fixed: Repeater rows was affected when removing flexible rows when repeater was a child property to the flexible.

v3.1.18

@frozzare frozzare released this Dec 16, 2016 · 477 commits to 3.x since this release

  • Fixed: Link property target didn't work correct in new WordPress #207

v3.1.17

@frozzare frozzare released this Nov 1, 2016 · 477 commits to 3.x since this release

  • Fixed: Link property didn't save values correct.
  • Fixed: Relationship custom data can now use string id and not just int ids.

v3.1.16

@frozzare frozzare released this Oct 26, 2016 · 477 commits to 3.x since this release

  • Fixed: Auto draft didn't save fields.
  • Fixed: Issues with color picker property that didn't work #179.
  • Fixed: Editor tabs didn't work when flexible and repeater use vertical layout #201.
  • Fixed: Remove duplicated database queries.
  • Fixed: z-index issue with flexible add button when placed under a editor #198. Props nlemoine.
  • Fixed: nl2br issue with text property #199.

v3.1.15

@frozzare frozzare released this Oct 6, 2016 · 477 commits to 3.x since this release

  • Fixed: Expression issues with TinyMCE in flexibles and repeaters #196.
  • Fixed: Dot files should not be loaded if exists in types directories #193.
  • Fixed: Cache issue when a repeater is a child property to a flexible.

v3.1.14

@frozzare frozzare released this Sep 23, 2016 · 477 commits to 3.x since this release

  • Fixed: Browser issue with selected attribute.
  • Fixed: Drag and drop issue with repeater.

v3.1.13

@frozzare frozzare released this Sep 12, 2016 · 477 commits to 3.x since this release

  • Fixed: Drag and drop issue with link property in flexible/repeater.
  • Fixed: Bug with post add new link when user is on another post type #190.
  • Fixed: Optimize papi_is_empty check for arrays #191.