Skip to content

Latest commit

 

History

History
317 lines (220 loc) · 19.2 KB

CHANGELOG.md

File metadata and controls

317 lines (220 loc) · 19.2 KB

Papi Changelog

[3.3.0]

Added

  • Added papi/pre_template_include filter to modify which template is loaded before Papi looks for a template.
  • Added papi_get_fields and papi_get_term_fields to receive all slugs and values from a Page/Taxonomy type.

3.2.0 - 2017-09-07

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.

3.1.19 - 2017-02-14

  • 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.

3.1.18 - 2016-12-16

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

3.1.17 - 2016-11-01

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

3.1.16 - 2016-10-26

  • 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.

3.1.15 - 2016-10-06

  • 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.

3.1.14 - 2016-09-23

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

3.1.13 - 2016-09-12

  • 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.

3.1.12 - 2016-09-05

  • Fixed: Cache issue with improved cache for flexible.

3.1.11 - 2016-09-05

  • Fixed: Cache only raw database value instead of formatted value, this solves problems with shortcodes in the editor that shouldn't be cached.
  • Fixed: Improve css for flexible and repeater.

3.1.10 - 2016-08-30

  • Fixed: Multiple render issue when using papi_get_field instead a property array.
  • Fixed: Add new page did remove custom query strings that shouldn't be removed.

3.1.9 - 2016-08-16

  • Fixed: Small css fixes for repeater in flexible #187.
  • Fixed: Remove repeater rows in flexible.
  • Fixed: Object cache not updated when adding row in repeater in flexible #185.
  • Fixed: CSS bug: Remove is hidden for repeater in flexible #184.

3.1.8 - 2016-08-10

  • Fixed: Some properties did try to save the property key.

3.1.7 - 2016-08-10

  • Fixed: Save issue with key/value arrays.
  • FIxed: Relationship setting only_once didn't remove items on page load #183.

3.1.6 - 2016-08-08

  • Fixed: Issue with papi_html_tag that caused html output issue with some properties.

3.1.5 - 2016-08-08

  • Fixed: Slug with _property suffix didn't work.
  • Fixed: Remove empty values on post save for properties.

3.1.4 - 2016-08-01

  • Fixed: PHP type error in group property.
  • Fixed: Wrong meta type was send to ajax when option page was in a post type menu.

3.1.3 - 2016-07-27

  • Fixed: Cache issue with key that has papi_ prefix.

3.1.2 - 2016-07-27

  • Added: papi_filter_settings_only_taxonomy_type that acts the same way as papi_filter_settings_only_page_type
  • Fixed: UTF-8 Encoding issue with JSON encoded strings #177.
  • Fixed: Equal hight class names on add new page view.

3.1.1 - 2016-07-04

  • Fixed: Path to files was rewritten with to lowercase #176

3.1.0 - 2016-06-27

Added

  • Added: show_screen_options to all types meta method that can turn off screen options tab.
  • Added: show_help_tabs to all types meta method that can turn off help tab.
  • Added: help method to all types which can be used to add help tabs.
  • Added: help_sidebar method to all types which can be used to add help tabs sidebar content.
  • Added: Support for taxonomy types with support for term meta.
  • Added: wp papi term command like post command.
  • Added: mce_buttons settings to editor property.
  • Added: media_buttons, teeny and drag_drop_upload settings to editor property.
  • Added: Vertical boxes support #148.
  • Added: Support for saving properties on revision posts and restoring revision data.
  • Added: display option to box options in order to control if the box should be displayed or not.
  • Added: Support for repeaters inside repeaters.
  • Added: Support for repeaters inside flexibles.
  • Added: Support for render html in Publish box with publish_box method.
  • Added: papi_get_entry_type_css_class to get the css class that is added to body for a entry type.
  • Added: Support for autosaving fields.
  • Added: Support for group inside flexibles.
  • Added: Support for group inside repeaters.
  • Added: body_classes method to all types which can be used to add custom body classes.
  • Added: show_permalink to page type so permalink div can be hidden on a page type.
  • Added: show_page_template to hide page template dropdown by default on a page type.
  • Added: show_page_attributes to show page attributes box by default on a page type.
  • Added: false value to slug key to generate a unique slug that don't should be saved in the database but displayed in the admin.

Changed

  • Updated: Cross icon for file property with new color #158.
  • Updated: $id param for papi_get_slugs is optional.
  • Updated: Group property is stored as a repeater but only with one row and not a standalone properties.

Removed

  • Removed: Papi tool page.
  • Removed: papi_translate_keys

3.0.9 - 2016-05-25

  • Fixed: Checkbox property did not save unchecked values.

3.0.8 - 2016-05-17

  • Fixed: Cache issue where admin and theme did get the same cached data, will now be saved as two caches.

3.0.7 - 2016-05-09

  • Fixed: Locale should be restored after papi_slugify is used #169.
  • Fixed: Show standard page type filter is used when only one page type exists.

3.0.6 - 2016-04-14

  • Fixed: Attachment types used on a page type didn't load right, so the site performance was bad.
  • Fixed: Object cache issue with properties that overwrites a existing post field. Cached data was loaded in WordPress admin.

3.0.5 - 2016-04-01

  • Fixed: Datetime did not work in repeater #166.

3.0.4 - 2016-03-23

  • Fixed: Require for link property #165.
  • Fixed: Check so file exists before calling file_get_contents when reading page type files.

3.0.3 - 2016-03-19

  • Fixed: Box options didn't work when no properties exists in the box.
  • Fixed: Some properties that was stored in options table did return null from papi_get_option, mostly flexible and repeater.
  • Fixed: Object cache issue with options fields that did get post id instead of zero that options should have.
  • Fixed: Check for registered directories before they are used.

3.0.2 - 2016-03-08

Fixed

  • Fixed: PHP Notice/Object issue for relationship when using custom relationship data.
  • Fixed: Double fields issue for any field when using papi_get_field in hooks that fires earlier then admin_init #153.

3.0.1 - 2016-02-15

Fixed

  • Fixed: Render issue with tabs that existed in template files #148.
  • Fixed: Edit link property did appear in the default editor.
  • Fixed: Required did not output the red wildcard #149.
  • Fixed: Required did not output the red wildcard #149.

3.0.0 - 2016-02-02

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 and remove 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 new papi/include. The old action is deprecated but will still work, it's fired before papi/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 named layout. 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, where sections 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 match Papi_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 and option_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.

You can find the old changelog for 2.x here.