WordPress.org

Make WordPress Core

Ticket #6170: 6170.diff

File 6170.diff, 15.0 KB (added by mdawaffe, 6 years ago)
  • wp-admin/menu-header.php

     
    11<?php 
     2if ( !defined( 'ABSPATH' ) ) die(); 
    23$self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']); 
    34$self = preg_replace('|^.*/plugins/|i', '', $self); 
    45 
  • wp-admin/options-head.php

     
    1 <?php wp_reset_vars(array('action', 'standalone', 'option_group_id')); ?> 
     1<?php 
     2if ( !defined( 'ABSPATH' ) ) die(); 
     3wp_reset_vars(array('action', 'standalone', 'option_group_id')); 
    24 
    3 <?php if (isset($_GET['updated'])) : ?> 
     5if (isset($_GET['updated'])) : ?> 
    46<div id="message" class="updated fade"><p><strong><?php _e('Settings saved.') ?></strong></p></div> 
    57<?php endif; ?> 
     8 No newline at end of file 
  • wp-admin/includes/misc.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34function got_mod_rewrite() { 
    45        global $is_apache; 
  • wp-admin/includes/schema.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
     3 
    24// Here we keep the DB structure and option values 
    35 
    46$charset_collate = ''; 
  • wp-admin/includes/comment.php

     
    8080        return "$avatar $name"; 
    8181} 
    8282 
    83 if ( is_admin() && ('edit-comments.php' == $pagenow || 'moderation.php' == $pagenow || 'edit.php' == $pagenow) ) { 
     83if ( function_exists( 'is_admin' ) && is_admin() && ('edit-comments.php' == $pagenow || 'moderation.php' == $pagenow || 'edit.php' == $pagenow) ) { 
    8484        if ( get_option('show_avatars') ) 
    8585                add_filter( 'comment_author', 'floated_admin_avatar' ); 
    8686} 
  • wp-admin/includes/widgets.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34// $_search is unsanitized 
    45function wp_list_widgets( $show = 'all', $_search = false ) { 
  • wp-admin/includes/media.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34function media_upload_tabs() { 
    45        $_default_tabs = array( 
  • wp-admin/includes/file.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34$wp_file_descriptions = array ('index.php' => __( 'Main Index Template' ), 'style.css' => __( 'Stylesheet' ), 'rtl.css' => __( 'RTL Stylesheet' ), 'comments.php' => __( 'Comments' ), 'comments-popup.php' => __( 'Popup Comments' ), 'footer.php' => __( 'Footer' ), 'header.php' => __( 'Header' ), 'sidebar.php' => __( 'Sidebar' ), 'archive.php' => __( 'Archives' ), 'category.php' => __( 'Category Template' ), 'page.php' => __( 'Page Template' ), 'search.php' => __( 'Search Results' ), 'searchform.php' => __( 'Search Form' ), 'single.php' => __( 'Single Post' ), '404.php' => __( '404 Template' ), 'link.php' => __( 'Links Template' ), 'functions.php' => __( 'Theme Functions' ), 'attachment.php' => __( 'Attachment Template' ), 'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ), '.htaccess' => __( '.htaccess (for rewrite rules )' ), 
    45        // Deprecated files 
  • wp-admin/includes/export.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34// version number for the export format.  bump this when something changes that might affect compatibility. 
    45define('WXR_VERSION', '1.0'); 
  • wp-admin/includes/update.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34// The admin side of our 1.1 update system 
    45 
  • wp-admin/includes/upload.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34function wp_upload_display( $dims = false, $href = '' ) { 
    45        global $post; 
  • wp-admin/includes/upgrade.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34if ( file_exists(ABSPATH . 'wp-content/install.php') ) 
    45        require (ABSPATH . 'wp-content/install.php'); 
  • wp-admin/includes/admin.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34if ( !defined( 'AUTOSAVE_INTERVAL' ) ) 
    45        define( 'AUTOSAVE_INTERVAL', 60 ); 
  • wp-admin/upgrade-functions.php

     
    11<?php 
     2if ( !defined( 'ABSPATH' ) ) die(); 
    23// Deprecated.  Use includes/upgrade.php. 
    34require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 
    45?> 
     6 No newline at end of file 
  • wp-admin/admin-functions.php

     
    11<?php 
    22// Deprecated.  Use includes/admin.php. 
     3if ( !defined('ABSPATH') ) die(); 
    34require_once(ABSPATH . 'wp-admin/includes/admin.php'); 
    45?> 
     6 No newline at end of file 
  • wp-admin/async-upload.php

     
    77if ( defined('ABSPATH') ) 
    88        require_once( ABSPATH . 'wp-config.php'); 
    99else 
    10     require_once('../wp-config.php'); 
     10        require_once('../wp-config.php'); 
    1111 
    1212// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead 
    1313if ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) ) 
  • wp-admin/edit-page-form.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34if (!isset($post_ID) || 0 == $post_ID) { 
    45        $form_action = 'post'; 
  • wp-admin/edit-link-form.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23if ( ! empty($link_id) ) { 
    34        $heading = __('Edit Link'); 
    45        $submit_text = __('Save Changes'); 
  • wp-admin/import/btt.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class BunnyTags_Import { 
    45 
  • wp-admin/import/wp-cat2tag.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class WP_Categories_to_Tags { 
    45        var $categories_to_convert = array(); 
  • wp-admin/import/livejournal.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class LJ_Import { 
    45 
  • wp-admin/import/jkw.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class JeromesKeyword_Import { 
    45 
  • wp-admin/import/dotclear.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
     3 
    24/* 
    35 * DotClear import plugin 
    46 * by Thomas Quinot - http://thomas.quinot.org/ 
  • wp-admin/import/utw.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class UTW_Import { 
    45 
  • wp-admin/import/mt.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class MT_Import { 
    45 
  • wp-admin/import/blogger.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34define( 'MAX_RESULTS',        50 ); // How many records per GData query 
    45define( 'MAX_EXECUTION_TIME', 20 ); // How many seconds to let the script run 
  • wp-admin/import/blogware.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34/* By Shayne Sweeney - http://www.theshayne.com/ */ 
    45 
  • wp-admin/import/textpattern.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
     3 
    24/** 
    35        Add These Functions to make our lives easier 
    46**/ 
  • wp-admin/import/greymatter.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class GM_Import { 
    45 
  • wp-admin/import/stp.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
     3 
    24class STP_Import { 
    35        function header()  { 
    46                echo '<div class="wrap">'; 
  • wp-admin/import/rss.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class RSS_Import { 
    45 
  • wp-admin/import/wordpress.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23 
    34class WP_Import { 
    45 
  • wp-admin/edit-form.php

     
    1  
     1<?php if ( !defined('ABSPATH') ) die(); ?> 
    22<div class="wrap"> 
    33<h2><?php _e('Write Post'); ?></h2> 
    44<form name="post" action="post.php" method="post" id="simple"> 
  • wp-admin/edit-form-comment.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23$submitbutton_text = __('Edit Comment'); 
    34$toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID); 
    45$form_action = 'editedcomment'; 
  • wp-admin/edit-form-advanced.php

     
    11<?php 
     2if ( !defined( 'ABSPATH' ) ) die(); 
    23$action = isset($action)? $action : ''; 
    34if ( isset($_GET['message']) ) 
    45        $_GET['message'] = (int) $_GET['message']; 
  • wp-admin/edit-link-category-form.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23if ( ! empty($cat_ID) ) { 
    34        $heading = __('Edit Category'); 
    45        $submit_text = __('Edit Category'); 
  • wp-admin/edit-tag-form.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23if ( ! empty($tag_ID) ) { 
    34        $heading = __('Edit Tag'); 
    45        $submit_text = __('Edit Tag'); 
  • wp-admin/menu.php

     
    11<?php 
     2if ( !defined( 'ABSPATH' ) ) die(); 
     3 
    24// This array constructs the admin menu bar. 
    35// 
    46// Menu item name 
  • wp-admin/admin-header.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 
    34if (!isset($_GET["page"])) require_once('admin.php'); 
    45if ( $editing ) { 
  • wp-admin/edit-category-form.php

     
    11<?php 
     2if ( !defined('ABSPATH') ) die(); 
    23if ( ! empty($cat_ID) ) { 
    34        $heading = __('Edit Category'); 
    45        $submit_text = __('Edit Category'); 
  • wp-admin/admin-footer.php

     
     1<?php if ( !defined('ABSPATH') ) die(); ?> 
    12</div><!-- wpbody --> 
    23</div><!-- wpcontent --> 
    34</div><!-- wpwrap -->