|
@@ 1028-1033 (lines=6) @@
|
| 1025 |
|
if ( ! isset( $this->fields['post_thumbnail'] ) && ( 'post_thumbnail' === $params->name || 0 === strpos( $params->name, 'post_thumbnail.' ) ) ) { |
| 1026 |
|
$size = 'thumbnail'; |
| 1027 |
|
|
| 1028 |
|
if ( 0 === strpos( $params->name, 'post_thumbnail.' ) ) { |
| 1029 |
|
$field_names = explode( '.', $params->name ); |
| 1030 |
|
|
| 1031 |
|
if ( isset( $field_names[1] ) ) { |
| 1032 |
|
$size = $field_names[1]; |
| 1033 |
|
} |
| 1034 |
|
} |
| 1035 |
|
|
| 1036 |
|
// Pods will auto-get the thumbnail ID if this isn't an attachment. |
|
@@ 1043-1048 (lines=6) @@
|
| 1040 |
|
} elseif ( ! isset( $this->fields['post_thumbnail_url'] ) && ( 'post_thumbnail_url' === $params->name || 0 === strpos( $params->name, 'post_thumbnail_url.' ) ) ) { |
| 1041 |
|
$size = 'thumbnail'; |
| 1042 |
|
|
| 1043 |
|
if ( 0 === strpos( $params->name, 'post_thumbnail_url.' ) ) { |
| 1044 |
|
$field_names = explode( '.', $params->name ); |
| 1045 |
|
|
| 1046 |
|
if ( isset( $field_names[1] ) ) { |
| 1047 |
|
$size = $field_names[1]; |
| 1048 |
|
} |
| 1049 |
|
} |
| 1050 |
|
|
| 1051 |
|
// Pods will auto-get the thumbnail ID if this isn't an attachment. |
|
@@ 1104-1109 (lines=6) @@
|
| 1101 |
|
if ( ! isset( $this->fields['avatar'] ) && ( 'avatar' === $params->name || 0 === strpos( $params->name, 'avatar.' ) ) ) { |
| 1102 |
|
$size = null; |
| 1103 |
|
|
| 1104 |
|
if ( 0 === strpos( $params->name, 'avatar.' ) ) { |
| 1105 |
|
$field_names = explode( '.', $params->name ); |
| 1106 |
|
|
| 1107 |
|
if ( isset( $field_names[1] ) ) { |
| 1108 |
|
$size = (int) $field_names[1]; |
| 1109 |
|
} |
| 1110 |
|
} |
| 1111 |
|
|
| 1112 |
|
if ( 0 < $size ) { |