plugin install
This commit is contained in:
@@ -95,7 +95,6 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
* @param $layout (array)
|
||||
* @return $layout (array)
|
||||
*/
|
||||
|
||||
function get_valid_layout( $layout = array() ) {
|
||||
|
||||
// parse
|
||||
@@ -128,7 +127,6 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
*
|
||||
* @return $field - the field array holding all the field options
|
||||
*/
|
||||
|
||||
function load_field( $field ) {
|
||||
|
||||
// bail early if no field layouts
|
||||
@@ -225,7 +223,6 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
* @since 3.6
|
||||
* @date 23/01/13
|
||||
*/
|
||||
|
||||
function render_field( $field ) {
|
||||
|
||||
// defaults
|
||||
@@ -326,7 +323,6 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
* @param $post_id (int)
|
||||
* @return $post_id (int)
|
||||
*/
|
||||
|
||||
function render_layout( $field, $layout, $i, $value ) {
|
||||
|
||||
// vars
|
||||
@@ -897,6 +893,10 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
|
||||
// loop rows
|
||||
foreach ( $value as $i => $row ) {
|
||||
// ensure row is an array
|
||||
if ( ! is_array( $row ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// get layout
|
||||
$l = $row['acf_fc_layout'];
|
||||
@@ -1221,7 +1221,6 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
* @param $post_id (int)
|
||||
* @return $post_id (int)
|
||||
*/
|
||||
|
||||
function delete_field( $field ) {
|
||||
|
||||
if ( ! empty( $field['layouts'] ) ) {
|
||||
@@ -1255,7 +1254,6 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
*
|
||||
* @return $field - the modified field
|
||||
*/
|
||||
|
||||
function duplicate_field( $field ) {
|
||||
|
||||
// vars
|
||||
@@ -1496,7 +1494,6 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
* @param $field (array)
|
||||
* @return $field
|
||||
*/
|
||||
|
||||
function validate_any_field( $field ) {
|
||||
|
||||
// width has changed
|
||||
@@ -1519,7 +1516,6 @@ if ( ! class_exists( 'acf_field_flexible_content' ) ) :
|
||||
* @param $field (array)
|
||||
* @return $field
|
||||
*/
|
||||
|
||||
function translate_field( $field ) {
|
||||
|
||||
// translate
|
||||
|
||||
Reference in New Issue
Block a user