@@ 656-664 (lines=9) @@ | ||
653 | * |
|
654 | * @return array |
|
655 | */ |
|
656 | function features_available() { |
|
657 | $raw_modules = Jetpack::get_available_modules(); |
|
658 | $modules = array(); |
|
659 | foreach ( $raw_modules as $module ) { |
|
660 | $modules[] = Jetpack::get_module_slug( $module ); |
|
661 | } |
|
662 | ||
663 | return $modules; |
|
664 | } |
|
665 | ||
666 | /** |
|
667 | * Returns what features are enabled. Uses the slug of the modules files. |
|
@@ 671-679 (lines=9) @@ | ||
668 | * |
|
669 | * @return array |
|
670 | */ |
|
671 | function features_enabled() { |
|
672 | $raw_modules = Jetpack::get_active_modules(); |
|
673 | $modules = array(); |
|
674 | foreach ( $raw_modules as $module ) { |
|
675 | $modules[] = Jetpack::get_module_slug( $module ); |
|
676 | } |
|
677 | ||
678 | return $modules; |
|
679 | } |
|
680 | ||
681 | function update_attachment_parent( $args ) { |
|
682 | $attachment_id = (int) $args[0]; |