Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes and updates to es_ES #136

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion includes/sm-deprecated-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,23 @@
*/
function wpfc_sermon_date( $d, $before = '', $after = '' ) {
sm_the_date( $d, $before = '', $after = '' );
}
}

/**
* Saves service type
*
* Will be obsolete when we add new meta boxes code
*
* @param int $post_ID
*/
function set_service_type( $post_ID ) {
if ( isset( $_POST['wpfc_service_type'] ) ) {
if ( $term = get_term_by( 'id', $_POST['wpfc_service_type'], 'wpfc_service_type' ) ) {
$service_type = $term->slug;
}

wp_set_object_terms( $post_ID, empty( $service_type ) ? null : $service_type, 'wpfc_service_type' );
}
}

add_action( 'save_post', 'set_service_type', 99 );
Binary file added languages/sermon-manager-for-wordpress-es_ES.mo
Binary file not shown.
Loading