Plugin Directory

Changeset 1497350


Ignore:
Timestamp:
09/17/2016 05:44:18 AM (10 years ago)
Author:
oternet
Message:

버그수정

Location:
idea-board/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • idea-board/trunk/idea-board-filter.php

    r1496785 r1497350  
    191191
    192192add_filter( 'wp_kses_allowed_html', 'idea_board_allow_html' );
     193
     194function idea_board_pre_post_update( $data, $postarr ) {
     195    if ( isset( $postarr[ 'post_ID' ] ) && $postarr[ 'post_ID' ] ) {
     196        $post = get_post( $postarr[ 'post_ID' ] );
     197
     198        $data[ 'post_author' ] = $post->post_author;
     199    }
     200
     201    return $data;
     202}
     203
     204add_filter( 'wp_insert_post_data', 'idea_board_pre_post_update', 10, 2 );
  • idea-board/trunk/languages/idea-board-ko_KR.po

    r1496915 r1497350  
    178178
    179179msgid "Forum Setting"
    180 msgstr "게시판 환경설정"
     180msgstr "게시판<br/>환경설정"
    181181
    182182msgid "Upload file types to allow"
  • idea-board/trunk/languages/idea-board.po

    r1496915 r1497350  
    44"Report-Msgid-Bugs-To: http://www.ideapeople.co.kr\n"
    55"POT-Creation-Date: 2016-08-12 22:51+0900\n"
    6 "PO-Revision-Date: 2016-09-16 21:46+0900\n"
     6"PO-Revision-Date: 2016-09-16 20:27+0900\n"
    77"Last-Translator: IdeaPeople<>\n"
    88"Language-Team: ideapeople <ideapeople@ideapeople.co.kr>\n"
  • idea-board/trunk/readme.txt

    r1496925 r1497350  
    3636== Frequently Asked Questions ==
    3737
    38 If you have any concerns, please contact your questions [IDEA-PEOPLE](http://www.ideapeople.co.kr/plugin-qna)
     38If you have any concerns, please contact your questions
     39
     40[FACEBOOK] (https://www.facebook.com/ipeople2014)
     41
     42[HOMEPAGE] (http://www.ideapeople.co.kr/plugin-qna)
    3943
    4044== Screenshots ==
  • idea-board/trunk/src/ideapeople/board/Activator.php

    r1496900 r1497350  
    1414
    1515    public function __construct() {
    16         global $wp_version;
    17 
    1816        $this->post_type   = new PostTypes();
    1917        $this->roles       = new Roles();
  • idea-board/trunk/src/ideapeople/board/Editor.php

    r1496785 r1497350  
    2525        $args = wp_parse_args( $args, array(
    2626            'wp_editor' => array(
    27                 'name'     => __( 'wordpress editor' ),
     27                'name'     => __( 'Wordpress Editor' ),
    2828                'callback' => array( 'ideapeople\board\Editor', 'wp_editor' ),
    2929                'args'     => array()
    3030            ),
    3131            'text_area' => array(
    32                 'name'     => __( 'TEXTAREA' ),
     32                'name'     => __( 'TEXT AREA' ),
    3333                'callback' => array( 'ideapeople\board\Editor', 'text_area' ),
    3434                'args'     => array()
     
    4040
    4141    public static function text_area( $args ) { ?>
    42         <label for="<?php echo $args[ 'name' ] ?>" class="idea-board-hide"></label>
    43         <textarea name="<?php echo $args[ 'name' ] ?>"
    44                   id="<?php echo $args[ 'name' ] ?>"
    45                   class="<?php echo $args[ 'name' ] ?>"
    46                   rows="10"><?php echo $args[ 'content' ] ?></textarea>
     42        <label for="<?php echo $args['name'] ?>" class="idea-board-hide"></label>
     43        <textarea name="<?php echo $args['name'] ?>"
     44                  id="<?php echo $args['name'] ?>"
     45                  class="<?php echo $args['name'] ?>"
     46                  rows="10"><?php echo $args['content'] ?></textarea>
    4747        <?php
    4848    }
     
    5353        }
    5454
    55         wp_editor( $args[ 'content' ], $args[ 'name' ], array() );
     55        wp_editor( $args['content'], $args['name'], array() );
    5656    }
    5757
     
    6666        $editor = self::get_editor( $board_editor );
    6767
    68         if ( isset( $editor[ 'args' ] ) && ! empty( $editor[ 'args' ] ) ) {
    69             $args = wp_parse_args( $editor[ 'args' ], $args );
     68        if ( isset( $editor['args'] ) && ! empty( $editor['args'] ) ) {
     69            $args = wp_parse_args( $editor['args'], $args );
    7070        }
    7171
    7272        ob_start();
    7373
    74         call_user_func( $editor[ 'callback' ], $args );
     74        call_user_func( $editor['callback'], $args );
    7575        $content = ob_get_contents();
    7676        ob_end_clean();
  • idea-board/trunk/src/ideapeople/board/Plugin.php

    r1496785 r1497350  
    7878
    7979    public function plugin_hooks() {
    80         WP_Session::get_instance();
    81 
    8280        $this->loader->add_action( 'wp', $this, 'register_global_vars', 1 );
    8381
     
    167165
    168166    public function register_global_vars() {
    169         $GLOBALS[ 'idea_board_page_mode' ] = get_query_var( 'page_mode' );
     167        $GLOBALS['idea_board_page_mode'] = get_query_var( 'page_mode' );
    170168
    171         $GLOBALS[ 'idea_board_pid' ] = get_query_var( 'pid' );
     169        $GLOBALS['idea_board_pid'] = get_query_var( 'pid' );
     170
     171        $GLOBALS['idea_board_session'] = WP_Session::get_instance();
    172172    }
    173173}
  • idea-board/trunk/src/ideapeople/board/Roles.php

    r1496843 r1497350  
    2121
    2222        $roles                 = array();
    23         $roles[ 'all' ]        = __idea_board( 'All Open' );
     23        $roles[ 'all' ]        = __idea_board( 'All open' );
    2424        $roles[ 'isLogin' ]    = __idea_board( 'Login Users' );
    2525        $roles[ 'onlyAuthor' ] = __idea_board( 'Only Author' );
  • idea-board/trunk/src/ideapeople/board/Seo.php

    r1496808 r1497350  
    7979
    8080    public function clear_other_seo() {
    81         add_filter( 'jetpack_enable_open_graph', '__return_false' );
    82 
     81        remove_action( 'wp_head', 'wpseo_head', 20 );
     82        remove_action( 'wp_head', 'wpseo_opengraph', 20 );
    8383        remove_action( 'wp_head', 'rel_canonical' );
    8484        remove_action( 'wp_head', 'wp_shortlink_wp_head' );
     85
     86        add_filter( 'jetpack_enable_open_graph', '__return_false' );
     87        add_filter( 'wpseo_canonical', '__return_false' );
     88        add_filter( 'wpseo_title', '__return_false' );
     89        add_filter( 'wpseo_metadesc', '__return_false' );
     90        add_filter( 'wpseo_author_link', '__return_false' );
     91        add_filter( 'wpseo_metakey', '__return_false' );
     92        add_filter( 'wpseo_locale', '__return_false' );
     93        add_filter( 'wpseo_opengraph_type', '__return_false' );
     94        add_filter( 'wpseo_opengraph_image', '__return_false' );
     95        add_filter( 'wpseo_opengraph_image_size', '__return_false' );
     96        add_filter( 'wpseo_opengraph_site_name', '__return_false' );
     97        add_filter( 'wpseo_whitelist_permalink_vars', '__return_false' );
     98        add_filter( 'wpseo_prev_rel_link', '__return_false' );
     99        add_filter( 'wpseo_next_rel_link', '__return_false' );
     100        add_filter( 'wpseo_xml_sitemap_img_src', '__return_false' );
     101        add_filter( 'wp_seo_get_bc_title', '__return_false' );
     102        add_filter( 'wp_seo_get_bc_ancestors', '__return_false' );
     103       
     104        if ( defined( 'AIOSEOP_VERSION' ) ) {
     105            global $aiosp;
     106            remove_action( 'wp_head', array( $aiosp, 'wp_head' ) );
     107        }
    85108    }
    86109}
  • idea-board/trunk/src/ideapeople/board/setting/Setting.php

    r1496900 r1497350  
    8484
    8585            if ( ! $board_term ) {
    86                 $board_term = get_term_by( 'term_taxonomy_id', $value, PluginConfig::$board_tax );
     86                $board_term = get_term_by( 'term_taxonomy_id', $value );
    8787
    8888                if ( ! $board_term ) {
  • idea-board/trunk/views/admin/setting.php

    r1496843 r1497350  
    7474<table class="form-table idea-board-admin-table" style="margin-bottom: 10px;">
    7575    <tbody>
    76 
     76    <?php if ( $board->name ) : ?>
     77        <tr>
     78            <th>
     79                <strong><?php _e_idea_board( 'ShortCode' ); ?></strong>
     80            </th>
     81            <td><em>[idea_board name="<?php echo $board->name ?>"]</em></td>
     82        </tr>
     83    <?php endif; ?>
    7784    <tr>
    7885        <th><?php _e_idea_board( 'Forum Setting' ) ?></th>
     
    93100                        <?php foreach ( Editor::get_editors() as $key => $editor ) { ?>
    94101                            <option value="<?php echo $key ?>"
    95                                 <?php echo $key == Setting::get_editor( $board->term_id ) ? 'selected' : '' ?>><?php echo $editor[ 'name' ] ?></option>
     102                                <?php echo $key == Setting::get_editor( $board->term_id ) ? 'selected' : '' ?>><?php echo $editor['name'] ?></option>
    96103                        <?php } ?>
    97104                    </select>
     
    120127            <p>
    121128                <select name="board_skin" id="board_skin">
    122                     <?php foreach ( $board_skins[ 'board' ] as $skin ) : ?>
     129                    <?php foreach ( $board_skins['board'] as $skin ) : ?>
    123130                        <option
    124                             value="<?php echo $skin[ 'name' ]; ?>"
    125                             <?php echo $skin[ 'name' ] == Setting::get_skin( $board->term_id ) ? 'selected' : '' ?>>
    126                             <?php echo $skin[ 'name' ]; ?>
     131                            value="<?php echo $skin['name']; ?>"
     132                            <?php echo $skin['name'] == Setting::get_skin( $board->term_id ) ? 'selected' : '' ?>>
     133                            <?php echo $skin['name']; ?>
    127134                        </option>
    128135                    <?php endforeach; ?>
     
    135142                        <?php echo Setting::get_use_comment_skin( $board->term_id, false ) == 1 ? 'checked' : '' ?> />
    136143                    <?php _e_idea_board( 'Whether to use bulletin board comments skins' ); ?>
    137                     <em><?php _e_idea_board( 'If you use other WordPress plugin or theme Comments Comments Form Please check off' ); ?>.</em>
     144                    <em><?php _e_idea_board( 'If you use other WordPress plugin or theme Comments Comments Form Please check off' ); ?>
     145                        .</em>
    138146                </label>
    139147            </p>
     
    185193                <input type="checkbox" name="board_comment_moderation" id="board_comment_moderation" value="1"
    186194                    <?php echo Setting::get_comment_moderation( $board->term_id, false ) == 1 ? 'checked' : '' ?> />
    187                 <label for="board_comment_moderation"><?php _e_idea_board( 'Comments should be approved must be manually' ); ?></label>
     195                <label
     196                    for="board_comment_moderation"><?php _e_idea_board( 'Comments should be approved must be manually' ); ?></label>
    188197            </p>
    189198
     
    192201                    <?php echo Setting::get_comment_whitelist( $board->term_id, false ) == 1 ? 'checked' : '' ?> />
    193202                <label
    194                     for="board_comment_whitelist"><?php _e_idea_board( 'This person must have been written comments on the comments previously approve' ); ?></label>
     203                    for="board_comment_whitelist"><?php _e_idea_board( 'This person must have been written comments on the comments previously approved' ); ?></label>
    195204            </p>
    196205        </td>
     
    231240
    232241            <p>
    233                 <label for="roles[notice_edit][]"><?php _e_idea_board( 'WriteNotice' ); ?></label>
     242                <label for="roles[notice_edit][]"><?php _e_idea_board( 'Write Notice' ); ?></label>
    234243                <?php echo CommonUtils::role_as_select_box( 'roles[notice_edit][]', Setting::get_role( $board->term_id, 'notice_edit', Capability::get_default_cap( 'notice_edit' ) ) ); ?>
    235244            </p>
Note: See TracChangeset for help on using the changeset viewer.