AesopInteractive / lasso

Code Repository for Editus (formerly Lasso) Commercial Plugin
https://edituswp.com
GNU General Public License v2.0
147 stars 25 forks source link

New post: Problem with non-english sites #111

Open stracker-phil opened 8 years ago

stracker-phil commented 8 years ago

When creating a new post via front end the popup displays a select list of available post types: "Post" and "Page" for english sites.

However, in German those values are "Beiträge" and "Seiten" As a result the new items in the wp_posts table are created with post_type "beiträge", obviously nonsense.

stracker-phil commented 8 years ago

Problem is in file lasso/public/includes/editor-modules.php

Loop in line 439 should look like this:

foreach( $types as $type => $label ) {

    $type = preg_replace( '/s\b/','', $type );

    printf( '<option value="%s">%s</option>', 
        esc_attr( $type ), 
        ucfirst( esc_attr( $label ) )
    );
}
hyunsupul commented 8 years ago

Hi thank you for your input. I will put this into our next release