You appear to be a bot. Output may be restricted
Description
Deterimine the right value for post_parent
Usage
$found_parent = oiksc_file_should_have_parent( $file, $current_parent );
Parameters
- $file
- ( string ) required – the file name
- $current_parent
- ( ID ) required –
Returns
found_parent null when need to find one otherwise the required ID
Source
File name: oik-shortcodes/admin/oik-files.php
Lines:
1 to 11 of 11
function oiksc_file_should_have_parent( $file, $current_parent ) { //bw_trace2(); if ( false === strpos( $file, "/" ) ) { $found_parent = 0; } elseif ( 0 == $current_parent ) { $found_parent = null; } else { $found_parent = $current_parent; } return( $found_parent ); }