PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
← All changes | libraries/cmb2/includes/rest-api/CMB2_REST.php +3 -1 6.0.0 → 6.0.3 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2 /**
3 - * Handles hooking CMB2 objects/fields into the WordPres REST API
3 + * Handles hooking CMB2 objects/fields into the WordPress REST API
4 4 * which can allow fields to be read and/or updated.
5 5 *
6 6 * @since 2.2.3
7 7 *
@@ -706,12 +706,14 @@
706 706 case 'post':
707 707 if ( isset( $object->ID ) ) {
708 708 return intval( $object->ID );
709 709 }
710 + // no break
710 711 case 'comment':
711 712 if ( isset( $object->comment_ID ) ) {
712 713 return intval( $object->comment_ID );
713 714 }
715 + // no break
714 716 case 'term':
715 717 if ( is_array( $object ) && isset( $object['term_id'] ) ) {
716 718 return intval( $object['term_id'] );
717 719 } elseif ( isset( $object->term_id ) ) {