Ejemplo n.º 1
0
 /**
  * Parses shortcode parameters and returns the gallery objects
  *
  * Compatibility shim for MLAShortcode_Support::mla_get_shortcode_attachments
  *
  * @since .50
  *
  * @param int Post ID of the parent
  * @param array Attributes of the shortcode
  * @param boolean true to calculate and return ['found_posts'] as an array element
  *
  * @return array List of attachments returned from WP_Query
  */
 public static function mla_get_shortcode_attachments($post_parent, $attr, $return_found_rows = NULL)
 {
     if (!class_exists('MLAShortcode_Support')) {
         require_once MLA_PLUGIN_PATH . 'includes/class-mla-shortcode-support.php';
     }
     return MLAShortcode_Support::mla_get_shortcode_attachments($post_parent, $attr, $return_found_rows);
 }