Changeset 1497423
- Timestamp:
- 09/17/2016 12:26:26 PM (10 years ago)
- Location:
- idea-board/trunk
- Files:
-
- 1 added
- 19 edited
-
assets/css/idea-board.css (modified) (1 diff)
-
idea-board-functions.php (added)
-
idea-board.php (modified) (3 diffs)
-
src/ideapeople/board/Comment.php (modified) (1 diff)
-
src/ideapeople/board/Editor.php (modified) (4 diffs)
-
src/ideapeople/board/Plugin.php (modified) (5 diffs)
-
src/ideapeople/board/Post.php (modified) (5 diffs)
-
src/ideapeople/board/Query.php (modified) (2 diffs)
-
src/ideapeople/board/Rewrite.php (modified) (1 diff)
-
src/ideapeople/board/Roles.php (modified) (1 diff)
-
src/ideapeople/board/action/CommentAction.php (modified) (1 diff)
-
src/ideapeople/board/action/FileAction.php (modified) (3 diffs)
-
src/ideapeople/board/action/PostAction.php (modified) (2 diffs)
-
src/ideapeople/util/common/Utils.php (modified) (1 diff)
-
src/ideapeople/util/http/Request.php (modified) (11 diffs)
-
src/ideapeople/util/wp/BlockFileUtils.php (modified) (2 diffs)
-
src/ideapeople/util/wp/Options.php (modified) (1 diff)
-
src/ideapeople/util/wp/PluginLoader.php (modified) (1 diff)
-
src/ideapeople/util/wp/WpNoprivUploader.php (modified) (1 diff)
-
views/skin/board/basic/edit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
idea-board/trunk/assets/css/idea-board.css
r1496925 r1497423 475 475 } 476 476 477 #idea-board .idea-board-entry-content img { 478 border: inherit; 479 } 480 477 481 #idea-board .idea-text-over { 478 482 overflow: hidden; -
idea-board/trunk/idea-board.php
r1497351 r1497423 19 19 $loader->add( 'ideapeople\\', dirname( __FILE__ ) . '/src/' ); 20 20 21 require_once dirname( __FILE__ ) . '/idea-board-f ilter.php';21 require_once dirname( __FILE__ ) . '/idea-board-functions.php'; 22 22 23 23 PluginConfig::init( __FILE__ ); … … 25 25 $plugin = new Plugin(); 26 26 $plugin->run(); 27 28 $GLOBALS[ 'idea_board_plugin' ] = $plugin;29 27 30 28 do_action( 'idea_board_init' ); … … 34 32 35 33 run_idea_board(); 36 37 /**38 * @return Plugin39 */40 function idea_board_plugin() {41 global $idea_board_plugin;42 43 return $idea_board_plugin;44 } -
idea-board/trunk/src/ideapeople/board/Comment.php
r1496664 r1497423 71 71 return get_comment_meta( $comment_ID, 'comment_password', true ); 72 72 } 73 74 public static function add_comment_fields() { 75 echo sprintf( '<input type="hidden" name="idea_comment_nonce" value="%s">', wp_create_nonce( 'idea_comment_edit' ) ); 76 echo sprintf( '<input type="hidden" name="comment_ID" value="%s">', get_query_var( 'comment_ID' ) ); 77 } 78 79 public static function add_comment_default_fields( $fields ) { 80 $post = get_post(); 81 82 if ( $post->post_type != PluginConfig::$board_post_type ) { 83 return $fields; 84 } 85 86 $fields[ 'comment-form-password' ] = 87 '<p class="comment-form-password"><label for="comment_password">' . __( 'Password' ) . '<span class="required">*</span></label> ' . 88 '<input id="comment_password" name="comment_password" type="password" size="30" maxlength="200" required /></p>'; 89 90 $fields = apply_filters( 'idea_board_add_comment_fields', $fields, $post ); 91 92 return $fields; 93 } 73 94 } -
idea-board/trunk/src/ideapeople/board/Editor.php
r1497350 r1497423 10 10 11 11 use ideapeople\board\setting\Setting; 12 use ideapeople\util\wp\WpNoprivUploader; 12 13 13 14 class Editor { … … 40 41 41 42 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>43 <label for="<?php echo $args[ 'name' ] ?>" class="idea-board-hide"></label> 44 <textarea name="<?php echo $args[ 'name' ] ?>" 45 id="<?php echo $args[ 'name' ] ?>" 46 class="<?php echo $args[ 'name' ] ?>" 47 rows="10"><?php echo $args[ 'content' ] ?></textarea> 47 48 <?php 48 49 } … … 50 51 public static function wp_editor( $args ) { 51 52 if ( ! is_user_logged_in() ) { 52 idea_board_plugin()->nopriv_uploader->upload_button(); 53 /** 54 * @var $idea_board_nopriv_uploader WpNoprivUploader; 55 */ 56 global $idea_board_nopriv_uploader; 57 58 $idea_board_nopriv_uploader->upload_button(); 53 59 } 54 60 55 wp_editor( $args[ 'content'], $args['name'], array() );61 wp_editor( $args[ 'content' ], $args[ 'name' ], array() ); 56 62 } 57 63 … … 66 72 $editor = self::get_editor( $board_editor ); 67 73 68 if ( isset( $editor[ 'args'] ) && ! empty( $editor['args'] ) ) {69 $args = wp_parse_args( $editor[ 'args'], $args );74 if ( isset( $editor[ 'args' ] ) && ! empty( $editor[ 'args' ] ) ) { 75 $args = wp_parse_args( $editor[ 'args' ], $args ); 70 76 } 71 77 72 78 ob_start(); 73 79 74 call_user_func( $editor[ 'callback'], $args );80 call_user_func( $editor[ 'callback' ], $args ); 75 81 $content = ob_get_contents(); 76 82 ob_end_clean(); -
idea-board/trunk/src/ideapeople/board/Plugin.php
r1497350 r1497423 10 10 use ideapeople\board\action\AdminAction; 11 11 use ideapeople\board\action\AdminGlobalAction; 12 use ideapeople\board\action\AdminPostAction; 12 13 use ideapeople\board\action\CommentAction; 13 14 use ideapeople\board\action\FileAction; … … 19 20 use ideapeople\board\helper\WordpressPopularPostsHelper; 20 21 use ideapeople\board\validator\ViewValidator; 21 use ideapeople\util\http\Request;22 22 use ideapeople\util\wp\PluginLoader; 23 23 use ideapeople\util\wp\PostOrderGenerator; … … 68 68 register_activation_hook( PluginConfig::$__FILE__, array( $activator, 'register_activation_hook' ) ); 69 69 register_deactivation_hook( PluginConfig::$__FILE__, array( $activator, 'register_deactivation_hook' ) ); 70 }71 72 public function register_global() {73 $this->post_order_generator = new PostOrderGenerator( PluginConfig::$board_post_type, 'idea_board_grp', 'idea_board_ord', 'idea_board_depth' );74 $this->nopriv_uploader = new WpNoprivUploader( 'idea_board_upload', 'idea_upload_file', PluginConfig::$plugin_url );75 76 $this->helper_loader = new HelperLoader();77 70 } 78 71 … … 157 150 $seo = new Seo(); 158 151 $this->loader->add_action( 'wp', $seo, 'active_seo' ); 152 153 $admin_post_action = new AdminPostAction(); 154 $this->loader->add_filter( 'wp_insert_post_data', $admin_post_action, 'restore_author', 10, 2 ); 155 $this->loader->add_filter( "manage_edit-" . PluginConfig::$board_post_type . "_columns", $admin_post_action, 'edit_columns' ); 156 $this->loader->add_filter( "manage_" . PluginConfig::$board_post_type . "_posts_custom_column", $admin_post_action, 'custom_columns' ); 157 $this->loader->add_action( 'restrict_manage_posts', $admin_post_action, 'add_search_category' ); 158 159 $auto_insert_page = new AutoInsertPage(); 160 $this->loader->add_filter( 'the_content', $auto_insert_page, 'auto_insert' ); 161 162 $sort = new PostSort(); 163 $this->loader->add_filter( 'idea_post_order_pre', $sort, 'sort_notice' ); 164 165 $post = new Post(); 166 $this->loader->add_filter( 'the_author', $post, 'get_the_author_nicename' ); 167 $this->loader->add_filter( 'protected_title_format', $post, 'remove_protected', 10, 2 ); 168 169 $comment = new Comment(); 170 $this->loader->add_action( 'comment_form', $comment, 'add_comment_fields' ); 171 $this->loader->add_filter( 'comment_form_default_fields', $comment, 'add_comment_default_fields' ); 159 172 } 160 173 … … 164 177 } 165 178 179 public function register_global() { 180 $this->post_order_generator = new PostOrderGenerator( PluginConfig::$board_post_type, 'idea_board_grp', 'idea_board_ord', 'idea_board_depth' ); 181 182 $this->nopriv_uploader = new WpNoprivUploader( 'idea_board_upload', 'idea_upload_file', PluginConfig::$plugin_url ); 183 184 $this->helper_loader = new HelperLoader(); 185 186 $GLOBALS[ 'idea_board_session' ] = WP_Session::get_instance(); 187 188 $GLOBALS[ 'idea_board_post_order_generator' ] = $this->post_order_generator; 189 190 $GLOBALS[ 'idea_board_nopriv_uploader' ] = $this->nopriv_uploader; 191 192 $GLOBALS[ 'idea_board_loader' ] = $this->loader; 193 194 $GLOBALS[ 'idea_board_helper_loader' ] = $this->helper_loader; 195 } 196 166 197 public function register_global_vars() { 167 $GLOBALS['idea_board_page_mode'] = get_query_var( 'page_mode' ); 168 169 $GLOBALS['idea_board_pid'] = get_query_var( 'pid' ); 170 171 $GLOBALS['idea_board_session'] = WP_Session::get_instance(); 198 $GLOBALS[ 'idea_board_page_mode' ] = get_query_var( 'page_mode' ); 199 200 $GLOBALS[ 'idea_board_pid' ] = get_query_var( 'pid' ); 172 201 } 173 202 } -
idea-board/trunk/src/ideapeople/board/Post.php
r1496845 r1497423 12 12 use ideapeople\util\html\HtmlUtils; 13 13 use ideapeople\util\wp\PasswordUtils; 14 use ideapeople\util\wp\PostOrderGenerator; 14 15 use ideapeople\util\wp\PostUtils; 15 16 use ideapeople\util\wp\TermUtils; … … 161 162 } 162 163 163 public static function get_the_author_nicename( $ post = null ) {164 public static function get_the_author_nicename( $author = null, $post = null ) { 164 165 $post = self::get_post( $post ); 165 166 … … 295 296 296 297 public static function get_user_email( $default = null, $post = null ) { 298 $post = self::get_post( $post ); 299 300 if ( $post->post_author ) { 301 return get_userdata( $post->post_author )->user_email; 302 } 303 297 304 return self::get_post_meta( $post, 'idea_board_email', false ); 298 305 } … … 311 318 312 319 public static function get_depth( $post = null ) { 313 return idea_board_plugin()->post_order_generator->get_depth( $post ); 320 /** 321 * @var $idea_board_post_order_generator PostOrderGenerator 322 */ 323 global $idea_board_post_order_generator; 324 325 return $idea_board_post_order_generator->get_depth( $post ); 314 326 } 315 327 … … 390 402 return apply_filters( 'idea_board_the_file_list', $result, $attah_files, $board, $post ); 391 403 } 404 405 public static function remove_protected( $protected, $post ) { 406 $post = get_post( $post ); 407 408 if ( $post->post_type == PluginConfig::$board_post_type ) { 409 return '%s'; 410 } 411 412 return $protected; 413 } 392 414 } -
idea-board/trunk/src/ideapeople/board/Query.php
r1496664 r1497423 15 15 class Query extends WP_Query { 16 16 public function __construct( $query = '' ) { 17 add_filter( 'parse_query', array( $this, 'taxonomy_term_in_query' ) ); 18 17 19 $query = wp_parse_args( $query, array( 18 20 'post_type' => PluginConfig::$board_post_type, … … 44 46 45 47 $this->query_vars = wp_parse_args( $this->query_vars, $wp_the_query->query_vars ); 48 } 49 50 public function taxonomy_term_in_query( $query ) { 51 global $pagenow; 52 53 $qv = &$query->query_vars; 54 55 if ( $pagenow == 'edit.php' 56 && isset( $qv[ 'post_type' ] ) 57 && $qv[ 'post_type' ] == PluginConfig::$board_post_type 58 && isset( $qv[ 'term' ] ) 59 && is_numeric( $qv[ 'term' ] ) 60 && $qv[ 'term' ] != 0 61 ) { 62 $term = get_term_by( 'id', $qv[ 'term' ], PluginConfig::$board_tax ); 63 $qv[ 'tax_query' ] = array( 64 'relation' => 'AND', 65 array( 66 'taxonomy' => PluginConfig::$board_tax, 67 'field' => 'name', 68 'terms' => $term->slug 69 ) 70 ); 71 } 46 72 } 47 73 -
idea-board/trunk/src/ideapeople/board/Rewrite.php
r1496865 r1497423 68 68 69 69 $paged = get_query_var( 'paged' ); 70 $searchType = get_query_var( 'searchType', Request::get Parameter( 'searchType', false ) );71 $searchValue = get_query_var( 'searchValue', Request::get Parameter( 'searchValue', false ) );72 $category = get_query_var( 'idea_board_category', Request::get Parameter( 'idea_board_category', false ) );70 $searchType = get_query_var( 'searchType', Request::get_parameter( 'searchType', false ) ); 71 $searchValue = get_query_var( 'searchValue', Request::get_parameter( 'searchValue', false ) ); 72 $category = get_query_var( 'idea_board_category', Request::get_parameter( 'idea_board_category', false ) ); 73 73 74 74 $args = array( -
idea-board/trunk/src/ideapeople/board/Roles.php
r1497350 r1497423 30 30 } 31 31 32 /**33 * 플러그인이 시작되면 관리자에게 최고 권한을 준다.34 */35 32 public function add_role_caps() { 36 33 $roles = array( PluginConfig::$board_admin_role, 'administrator' ); -
idea-board/trunk/src/ideapeople/board/action/CommentAction.php
r1496664 r1497423 82 82 do_action( 'idea_board_action_comment_delete_pre', $comment_ID ); 83 83 84 $return_url = Request::get Parameter( 'return_url', wp_get_referer() );84 $return_url = Request::get_parameter( 'return_url', wp_get_referer() ); 85 85 86 86 $view = apply_filters( 'pre_cap_check_comment_view', null, $comment_ID ); -
idea-board/trunk/src/ideapeople/board/action/FileAction.php
r1496843 r1497423 47 47 48 48 $max_upload_cnt = Setting::get_max_upload_cnt( $board->term_id ); 49 $count = count( $idea_upload_attach ) + count( Request::get Files( 'files', false, false ) );49 $count = count( $idea_upload_attach ) + count( Request::get_files( 'files', false, false ) ); 50 50 51 51 if ( $max_upload_cnt ) { … … 55 55 } 56 56 57 $files = Request::get Files( 'files' );57 $files = Request::get_files( 'files' ); 58 58 59 59 foreach ( $files as $file ) { … … 88 88 public function delete_attach_redirect( $attach_id = null ) { 89 89 if ( empty( $attach_id ) ) { 90 $attach_id = Request::get Parameter( 'attach_id' );90 $attach_id = Request::get_parameter( 'attach_id' ); 91 91 } 92 92 93 93 $this->delete_attach( $attach_id ); 94 94 95 $return_url = Request::get Parameter( 'return_url' );95 $return_url = Request::get_parameter( 'return_url' ); 96 96 97 97 wp_redirect( $return_url ); -
idea-board/trunk/src/ideapeople/board/action/PostAction.php
r1496785 r1497423 39 39 40 40 $post_data = wp_parse_args( $post_data, array( 41 'post_content' => Request::get Parameter( 'idea_board_post_content' ),42 'post_parent' => Request::get Parameter( 'parent', 0 )41 'post_content' => Request::get_parameter( 'idea_board_post_content' ), 42 'post_parent' => Request::get_parameter( 'parent', 0 ) 43 43 ) ); 44 44 … … 55 55 $error = new \WP_Error(); 56 56 $post_id = ! empty( $post_data[ 'ID' ] ) ? $post_data[ 'ID' ] : $post_data[ 'pid' ]; 57 $return_url = Request::get Parameter( 'return_url', null );57 $return_url = Request::get_parameter( 'return_url', null ); 58 58 $nonce = $post_data[ PluginConfig::$idea_board_edit_nonce_name ]; 59 59 -
idea-board/trunk/src/ideapeople/util/common/Utils.php
r1496702 r1497423 80 80 } 81 81 82 static function get Var( $target, $key, $defaultValue = null, $trim = false ) {82 static function get_value( $target, $key, $defaultValue = null, $trim = false ) { 83 83 if ( is_null( $target ) ) { 84 84 return $defaultValue; -
idea-board/trunk/src/ideapeople/util/http/Request.php
r1496664 r1497423 23 23 * @return bool|null|mixed 24 24 */ 25 static function get Parameter( $key, $defaultValue = null, $method = self::METHOD_REQUEST ) {25 static function get_parameter( $key, $defaultValue = null, $method = self::METHOD_REQUEST ) { 26 26 if ( $method == self::METHOD_REQUEST ) { 27 return Utils::get Var( $_REQUEST, $key, $defaultValue );27 return Utils::get_value( $_REQUEST, $key, $defaultValue ); 28 28 } 29 29 30 30 if ( $method == self::METHOD_POST ) { 31 return Utils::get Var( $_POST, $key, $defaultValue );31 return Utils::get_value( $_POST, $key, $defaultValue ); 32 32 } 33 33 34 34 if ( $method == self::METHOD_GET ) { 35 return Utils::get Var( $_GET, $key, $defaultValue );35 return Utils::get_value( $_GET, $key, $defaultValue ); 36 36 } 37 37 … … 39 39 } 40 40 41 static function get ParameterPost( $key, $defaultValue = null ) {42 return self::get Parameter( $key, $defaultValue, self::METHOD_POST );41 static function get_parameter_post( $key, $defaultValue = null ) { 42 return self::get_parameter( $key, $defaultValue, self::METHOD_POST ); 43 43 } 44 44 45 static function get ParameterGet( $key, $defaultValue = null ) {46 return self::get Parameter( $key, $defaultValue, self::METHOD_GET );45 static function get_parameter_get( $key, $defaultValue = null ) { 46 return self::get_parameter( $key, $defaultValue, self::METHOD_GET ); 47 47 } 48 48 49 static function get Files( $name, $single = false, $include_empty = true ) {49 static function get_files( $name, $single = false, $include_empty = true ) { 50 50 $keys = array( 'name', 'type', 'tmp_name', 'error', 'size' ); 51 51 $result = array(); 52 52 53 if ( ! is_array( @ $_FILES[ $name ][ 'name'] ) ) {53 if ( ! is_array( @ $_FILES[ $name ][ 'name' ] ) ) { 54 54 $v = array(); 55 55 … … 58 58 } 59 59 60 if ( empty( $v[ 'name'] ) && ! $include_empty ) {60 if ( empty( $v[ 'name' ] ) && ! $include_empty ) { 61 61 62 62 } else { … … 64 64 } 65 65 } else { 66 $count = count( @$_FILES[ $name ][ 'name'] );66 $count = count( @$_FILES[ $name ][ 'name' ] ); 67 67 68 68 for ( $i = 0; $i < $count; $i ++ ) { … … 73 73 } 74 74 75 if ( empty( $v[ 'name'] ) && ! $include_empty ) {75 if ( empty( $v[ 'name' ] ) && ! $include_empty ) { 76 76 77 77 } else { … … 82 82 83 83 if ( $single && ! empty( $result ) ) { 84 return $result[ 0];84 return $result[ 0 ]; 85 85 } 86 86 … … 94 94 } 95 95 96 static function get RequestMethod() {97 return $_SERVER[ 'REQUEST_METHOD'];96 static function get_request_method() { 97 return $_SERVER[ 'REQUEST_METHOD' ]; 98 98 } 99 99 100 static function is GET() {101 return self::get RequestMethod() == 'GET';100 static function is_get() { 101 return self::get_request_method() == 'GET'; 102 102 } 103 103 104 static function is Post() {105 return self::get RequestMethod() == 'POST';104 static function is_post() { 105 return self::get_request_method() == 'POST'; 106 106 } 107 107 108 static function is Put() {109 return self::get RequestMethod() == 'PUT';108 static function is_put() { 109 return self::get_request_method() == 'PUT'; 110 110 } 111 111 112 static function is Delete() {113 return self::get RequestMethod() == 'DELETE';112 static function is_delete() { 113 return self::get_request_method() == 'DELETE'; 114 114 } 115 115 116 static function is Connect() {117 return self::get RequestMethod() == 'CONNECT';116 static function is_connect() { 117 return self::get_request_method() == 'CONNECT'; 118 118 } 119 119 … … 121 121 $arr = parse_url( $url ); 122 122 123 $port = @$arr[ 'port'];123 $port = @$arr[ 'port' ]; 124 124 125 125 return "{$arr['scheme']}:{$port}//{$arr['host']}{$arr['path']}"; … … 127 127 128 128 129 static function get UrlPrefix( $url ) {129 static function get_url_prefix( $url ) { 130 130 if ( strpos( $url, '?' ) === false ) { 131 131 return '?'; … … 136 136 137 137 138 static function get CurrentUrl() {138 static function get_current_url() { 139 139 $url = ''; 140 140 141 if ( isset( $_SERVER[ 'HTTPS'] ) && filter_var( $_SERVER['HTTPS'], FILTER_VALIDATE_BOOLEAN ) ) {141 if ( isset( $_SERVER[ 'HTTPS' ] ) && filter_var( $_SERVER[ 'HTTPS' ], FILTER_VALIDATE_BOOLEAN ) ) { 142 142 $url .= 'https'; 143 143 } else { … … 147 147 $url .= '://'; 148 148 149 if ( isset( $_SERVER[ 'HTTP_HOST'] ) ) {150 $url .= $_SERVER[ 'HTTP_HOST'];151 } elseif ( isset( $_SERVER[ 'SERVER_NAME'] ) ) {152 $url .= $_SERVER[ 'SERVER_NAME'];149 if ( isset( $_SERVER[ 'HTTP_HOST' ] ) ) { 150 $url .= $_SERVER[ 'HTTP_HOST' ]; 151 } elseif ( isset( $_SERVER[ 'SERVER_NAME' ] ) ) { 152 $url .= $_SERVER[ 'SERVER_NAME' ]; 153 153 } else { 154 154 trigger_error( 'Could not get URL from $_SERVER vars' ); 155 155 } 156 156 157 if ( $_SERVER[ 'SERVER_PORT'] != '80' ) {158 $url .= ':' . $_SERVER[ "SERVER_PORT"];157 if ( $_SERVER[ 'SERVER_PORT' ] != '80' ) { 158 $url .= ':' . $_SERVER[ "SERVER_PORT" ]; 159 159 } 160 160 161 if ( isset( $_SERVER[ 'REQUEST_URI'] ) ) {162 $url .= $_SERVER[ 'REQUEST_URI'];163 } elseif ( isset( $_SERVER[ 'PHP_SELF'] ) ) {164 $url .= $_SERVER[ 'PHP_SELF'];165 } elseif ( isset( $_SERVER[ 'REDIRECT_URL'] ) ) {166 $url .= $_SERVER[ 'REDIRECT_URL'];161 if ( isset( $_SERVER[ 'REQUEST_URI' ] ) ) { 162 $url .= $_SERVER[ 'REQUEST_URI' ]; 163 } elseif ( isset( $_SERVER[ 'PHP_SELF' ] ) ) { 164 $url .= $_SERVER[ 'PHP_SELF' ]; 165 } elseif ( isset( $_SERVER[ 'REDIRECT_URL' ] ) ) { 166 $url .= $_SERVER[ 'REDIRECT_URL' ]; 167 167 } else { 168 168 trigger_error( 'Could not get URL from $_SERVER vars' ); -
idea-board/trunk/src/ideapeople/util/wp/BlockFileUtils.php
r1496845 r1497423 46 46 47 47 public function ajax_action() { 48 $attach_id = Request::get Parameter( 'attach_id' );48 $attach_id = Request::get_parameter( 'attach_id' ); 49 49 50 50 if ( ! $attach_id ) { … … 165 165 166 166 public function request_upload( $param_name, $convert_attached = false ) { 167 $files = Request::get Files( $param_name );167 $files = Request::get_files( $param_name ); 168 168 169 169 $results = array(); -
idea-board/trunk/src/ideapeople/util/wp/Options.php
r1496664 r1497423 40 40 $options = $this->get_options(); 41 41 42 return Utils::get Var( $options, $key, $defaultValue );42 return Utils::get_value( $options, $key, $defaultValue ); 43 43 } 44 44 -
idea-board/trunk/src/ideapeople/util/wp/PluginLoader.php
r1496664 r1497423 56 56 * 57 57 * @param string $hook The name of the WordPress filter that is being registered. 58 * @param object $component A reference to the instance of the object on which the filter is defined.58 * @param object|string $component A reference to the instance of the object on which the filter is defined. 59 59 * @param string $callback The name of the function definition on the $component. 60 60 * @param int $priority Optional. he priority at which the function should be fired. Default is 10. -
idea-board/trunk/src/ideapeople/util/wp/WpNoprivUploader.php
r1496915 r1497423 56 56 57 57 public function action_upload_media() { 58 $files = Request::get Files( $this->file_param );58 $files = Request::get_files( $this->file_param ); 59 59 60 60 $error = new WP_Error(); -
idea-board/trunk/views/skin/board/basic/edit.php
r1496865 r1497423 32 32 $page_permalink = CommonUtils::get_post_page_link(); 33 33 34 $parent = Request::get Parameter( 'parent', 0 );34 $parent = Request::get_parameter( 'parent', 0 ); 35 35 36 36 $action_url = Rewrite::edit_ajax_link();
Note: See TracChangeset
for help on using the changeset viewer.