主页 > 网络知识 > 如何查看WordPress未授权文章(2)

如何查看WordPress未授权文章(2)

                    //var_dump("PoC: No posts

:-(

");

 

                } else {

                    if ( $post_status_obj->protected ) {

                        // User must have edit permissions on the draft to preview.

                        if ( ! current_user_can( $edit_cap, $this->posts[0]->ID ) ) {

                            $this->posts = array();

                        } else {

                            $this->is_preview = true;

                            if ( 'future' != $status ) {

                                $this->posts[0]->post_date = current_time( 'mysql' );

                            }

                        }

                    } elseif ( $post_status_obj->private ) {

                        if ( ! current_user_can( $read_cap, $this->posts[0]->ID ) ) {

                            $this->posts = array();

                        }

                    } else {

                        $this->posts = array();

                    }

                }

            }

说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!