Skip to:
Content

bbPress.org

Changeset 6033


Ignore:
Timestamp:
05/25/2016 01:25:45 AM (9 years ago)
Author:
johnjamesjacoby
Message:

WP_Screen::post_type is always set since WordPress 3.3.0, so remove superfluous checks in bail() methods.

Location:
trunk/src/includes/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/forums.php

    r5951 r6033  
    9797     */
    9898    private function bail() {
    99         if ( ! isset( get_current_screen()->post_type ) || ( $this->post_type != get_current_screen()->post_type ) ) {
     99        if ( $this->post_type != get_current_screen()->post_type ) {
    100100            return true;
    101101        }
  • trunk/src/includes/admin/replies.php

    r6032 r6033  
    101101     */
    102102    private function bail() {
    103         if ( ! isset( get_current_screen()->post_type ) || ( $this->post_type !== get_current_screen()->post_type ) ) {
     103        if ( $this->post_type !== get_current_screen()->post_type ) {
    104104            return true;
    105105        }
  • trunk/src/includes/admin/topics.php

    r6032 r6033  
    102102     */
    103103    private function bail() {
    104         if ( ! isset( get_current_screen()->post_type ) || ( $this->post_type !== get_current_screen()->post_type ) ) {
     104        if ( $this->post_type !== get_current_screen()->post_type ) {
    105105            return true;
    106106        }
Note: See TracChangeset for help on using the changeset viewer.