rwmb_fieldID_field_title filter

Support General rwmb_fieldID_field_title filter

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1846
    saulcozenssaulcozens
    Participant

    I've spotted a bug in the post field type:
    fields/post.php lines 140-143 say:

    $post = $query->next_post();
    $title = apply_filters( 'rwmb_post_field_title', $post->post_title, $post );
    $title = apply_filters( "rwmb_{$field['id']}_field_title", $title, $post );
    $options[$post->ID] = $post->post_title;

    they should say:

    $post = $query->next_post();
    $title = apply_filters( 'rwmb_post_field_title', $post->post_title, $post );
    $title = apply_filters( "rwmb_{$field['id']}_field_title", $title, $post );
    $options[$post->ID] = $title;

    what's the best way to get this corrected in the next release? Git pull request?

    cheers

    Saul

    #1851
    Anh TranAnh Tran
    Keymaster

    Hi Saul,

    I think it's fixed in the development version on Github:

    https://github.com/rilwis/meta-box/blob/master/inc/fields/post.php#L142

    I will update the plugin soon so it's available on WordPress.org as well.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘rwmb_fieldID_field_title filter’ is closed to new replies.