| @@ 206-208 (lines=3) @@ | ||
| 203 | $value = TestContent::title( rand( 10, 50 ) ); |
|
| 204 | } |
|
| 205 | ||
| 206 | if ( 'acf' === $cmb['source'] && !empty( $cmb['extras']->chars ) ){ |
|
| 207 | $value = substr( $value, 0, $cmb['extras']->chars ); |
|
| 208 | } |
|
| 209 | ||
| 210 | return $value; |
|
| 211 | ||
| @@ 354-356 (lines=3) @@ | ||
| 351 | ||
| 352 | $value = TestContent::plain_text(); |
|
| 353 | ||
| 354 | if ( 'acf' == $cmb['source'] && !empty( $cmb['extras']->chars ) ){ |
|
| 355 | $value = substr( $value, 0, $cmb['extras']->chars ); |
|
| 356 | } |
|
| 357 | ||
| 358 | return $value; |
|
| 359 | ||