Plugin Directory

Changeset 1671554


Ignore:
Timestamp:
06/06/2017 07:50:16 AM (9 years ago)
Author:
dasmaeh
Message:

Preparing release 0.9.2

Location:
recipepress-reloaded/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • recipepress-reloaded/trunk/admin/class-rpr-admin-generalmeta.php

    r1624084 r1671554  
    188188            $recipe->post_excerpt = $data['rpr_recipe_description'];
    189189            wp_update_post($recipe);
     190            //die;
    190191        }
    191192    }
  • recipepress-reloaded/trunk/admin/class-rpr-admin.php

    r1624084 r1671554  
    231231        /**
    232232         *  This is done for testing! REMOVE WHEN DONE!
    233         var_dump( $_POST);
     233         */
     234        //var_dump( $_POST);
    234235        //die;
    235          */
     236        //var_dump( $recipe );
     237            //die;
    236238        if( $recipe !== NULL && $recipe->post_type == 'rpr_recipe' ) {
    237239            $errors = false;
     
    280282                    $this->nutrition->save_nutritionalmeta($recipe_id, $data, $recipe);
    281283                }
    282                                 if( AdminPageFramework::getOption( 'rpr_options', array( 'metadata', 'use_source') , false ) ) {
     284                if( AdminPageFramework::getOption( 'rpr_options', array( 'metadata', 'use_source') , false ) ) {
    283285                    $this->source->save_sourcemeta($recipe_id, $data, $recipe);
    284286                }
  • recipepress-reloaded/trunk/public/class-rpr-recipeposttype.php

    r1624084 r1671554  
    8686                    'plugin_listing_table_title_cell_link' => __( 'RPR recipe post type', 'recipepress-reloaded' ), // (framework specific key). [3.0.6+]
    8787                ),
    88                 'supports'      => array( 'title', 'comments', 'thumbnail', 'excerpt', 'featured', 'author', 'revisions' ),
     88                'supports'      => array( 'title', 'comments', 'thumbnail', 'excerpt', 'featured', 'author' ),
    8989                //'supports'      => array( 'title', 'editor', 'comments', 'thumbnail', 'excerpt' ),
    9090                'public'        => true,
  • recipepress-reloaded/trunk/public/rpr_template_tags.php

    r1645170 r1671554  
    159159            }
    160160            $prefix = '<i class="fa ' . $icon_class . '" title=' . esc_html( $tax->labels->name ) . '></i> ';
    161         } elseif( $label ) {
     161        } elseif( $label && $tax ) {
    162162            $prefix = $tax->labels->name . ': ';
    163163        } else {
     
    725725            */
    726726            $i =0;
    727            foreach ( $ingredients as $ingredient ){
    728                /**
    729                 * Check if the ingredient is a grouptitle
    730                 */
    731                if( isset( $ingredient['grouptitle'] ) ){
    732                    
    733                    /**
    734                     * Render the grouptitle
    735                     */
    736                    $out .= rpr_render_ingredient_grouptitle( $ingredient );
    737                } else {
    738                    /**
    739                     * Start the list on the first item
    740                     */
    741                     if( $i == 0 ) {
    742                    //if( isset( $ingredient['sort'] ) && $ingredient['sort'] == 1 ){
    743                        $out .= '<ul class="rpr-ingredient-list" >';
    744                    }
    745                    /**
    746                     * Render the ingredient line
    747                     */
    748                    $out .= rpr_render_ingredient_line( $ingredient );
    749                    /**
    750                     * Close the list on the last item
    751                     */
    752                    if( isset( $ingredient['sort'] ) && $ingredient['sort'] == count( $ingredients ) ){
    753                        $out .= '</ul>';
    754                    }
    755                }
    756                $i++;
    757            }
     727            if( is_array( $ingredients ) ){
     728                foreach ( $ingredients as $ingredient ){
     729                    /**
     730                     * Check if the ingredient is a grouptitle
     731                     */
     732                    if( isset( $ingredient['grouptitle'] ) ){
     733
     734                        /**
     735                         * Render the grouptitle
     736                         */
     737                        $out .= rpr_render_ingredient_grouptitle( $ingredient );
     738                    } else {
     739                        /**
     740                         * Start the list on the first item
     741                         */
     742                         if( $i == 0 ) {
     743                        //if( isset( $ingredient['sort'] ) && $ingredient['sort'] == 1 ){
     744                            $out .= '<ul class="rpr-ingredient-list" >';
     745                        }
     746                        /**
     747                         * Render the ingredient line
     748                         */
     749                        $out .= rpr_render_ingredient_line( $ingredient );
     750                        /**
     751                         * Close the list on the last item
     752                         */
     753                        if( isset( $ingredient['sort'] ) && $ingredient['sort'] == count( $ingredients ) ){
     754                            $out .= '</ul>';
     755                        }
     756                    }
     757                    $i++;
     758                }
     759            }
    758760           /**
    759761             * Close the list on the last item
     
    10941096             * Loop over all the ingredients
    10951097            */
    1096             $i =0;
    1097             foreach ( $instructions as $instruction ){
    1098                 /**
    1099                  * Check if the ingredient is a grouptitle
    1100                  */
    1101                 if( isset( $instruction['grouptitle'] ) ){         
    1102                     /**
    1103                      * Render the grouptitle
    1104                      */
    1105                     $out .= rpr_render_instruction_grouptitle( $instruction );
    1106                 } else {
    1107                    
    1108                     if( $i == 0 ) {
    1109                             //isset( $instruction['sort'] ) && $instruction['sort'] == 0 ){
    1110                         /**
    1111                          * Start the list on the first item
    1112                          */
    1113                         $out .= '<ol class="rpr-instruction-list" >';
    1114                     }
    1115                     /**
    1116                      * Render the instrcution block
    1117                      */
    1118                     $out .= rpr_render_instruction_block( $instruction );
    1119                 }
    1120                 $i++;
    1121             }
     1098            if( is_array( $instructions ) ){
     1099                $i =0;
     1100                foreach ( $instructions as $instruction ){
     1101                    /**
     1102                     * Check if the ingredient is a grouptitle
     1103                     */
     1104                    if( isset( $instruction['grouptitle'] ) ){         
     1105                        /**
     1106                         * Render the grouptitle
     1107                         */
     1108                        $out .= rpr_render_instruction_grouptitle( $instruction );
     1109                    } else {
     1110
     1111                        if( $i == 0 ) {
     1112                                //isset( $instruction['sort'] ) && $instruction['sort'] == 0 ){
     1113                            /**
     1114                             * Start the list on the first item
     1115                             */
     1116                            $out .= '<ol class="rpr-instruction-list" >';
     1117                        }
     1118                        /**
     1119                         * Render the instrcution block
     1120                         */
     1121                        $out .= rpr_render_instruction_block( $instruction );
     1122                    }
     1123                    $i++;
     1124                }
     1125            }
    11221126            /**
    11231127             * Close the list on the last item
  • recipepress-reloaded/trunk/readme.txt

    r1645170 r1671554  
    33Tags: recipe, recipes, cooking, baking, food, food blog, recipe sharing,
    44Requires at least: 4.0
    5 Tested up to: 4.7
    6 Stable tag: 0.9.1
     5Tested up to: 4.8
     6Stable tag: 0.9.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99Donate link: https://paypal.me/dasmaeh
    1010
    11 The swiss army knife for your food blog. A tool to add nicely and seo friendly formatted  recipes to your blog and to manage your recipe collection.
     11The swiss army knife for your food blog. A tool to add nicely and seo friendly formatted  recipes to your blog and to manage your recipe collection.       
     12   
    1213
    1314== Description ==
     
    7071== Changelog ==
    7172
     73= 0.9.2 =
     74  * Fixing a bug while saving recipes
     75
    7276= 0.9.1 =
    7377  * Fixing several display bugs such as double numerated items, double post images or hidden elements at the backend
     
    101105
    102106== Upgrade Notice ==
     107= 0.9.2 =
     1080.9.2 Bugfix release: Fixing a bug while saving recipes the first time
     109
    103110= 0.9.1 =
    1041110.9.1 Bugfix release: Fixing several display bugs. | 0.9.0 New printing system, enhanced compatibilyt for multisite, ...
  • recipepress-reloaded/trunk/recipe-press-reloaded.php

    r1645170 r1671554  
    1717 * Plugin URI:        http://tech.cbjck.de/wp-plugins/rpr/
    1818 * Description:       The swiss army knife for your food blog. A tool not only to add nicely and seo friendly formatted  recipes to your posts. But also to manage present your recipe collection.
    19  * Version:           0.9.1
     19 * Version:           0.9.2
    2020 * Author:            Jan Köster
    2121 * Author URI:        http://tech.cbjck.de/author/jan
     
    3434 * Define constants
    3535 */
    36 const RPR_VERSION = '0.9.1';
     36const RPR_VERSION = '0.9.2';
    3737const RPR_DBVER = '';
    3838
Note: See TracChangeset for help on using the changeset viewer.