If the array empty - go on. No ID was specified. If not - check if current
ID is in array
בתאריך 31 במאי 2014 14:12, "Ron Masas" <notifications@github.com> כתב:

> In plugout.php:
>
> > @@ -248,13 +250,15 @@ function po_meta_box_callback( $post , $metabox ) {
> >      $_configoretions = get_configoretion();
> >      foreach ( $_configoretions as $configoretion ) {
> >          if ( in_array( $post->post_type , $configoretion[ "screens" ] ) ) {
> > -            if ( $metabox[ "id" ] == $configoretion[ "id" ] ) {
> > -                // Add an nonce field so we can check for it later.
> > -                wp_nonce_field( $post->ID . '_meta_box' , $post->ID . '_meta_box_nonce' );
> > -                // For each element in configoretion
> > -                foreach ( $configoretion[ "elements" ] as $element_object ) {
> > -                    // Convert to HTML object
> > -                    echo po_create_element( $element_object , $metabox[ "id" ] , $post->ID );
> > +            if ( count( $configoretion[ "post_id" ] ) == 0 || (in_array( $post->ID , $configoretion[ "post_id" ] )) ) {
>
> What is the count for?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/masasron/Plugout/pull/3/files#r13260611>.
>