mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-27 23:35:04 +02:00
Pinking shears.
Built from https://develop.svn.wordpress.org/trunk@29707 git-svn-id: http://core.svn.wordpress.org/trunk@29481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
89e9363adb
commit
f7392ef917
|
@ -23,14 +23,14 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
* @param array $args An associative array of arguments.
|
* @param array $args An associative array of arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $args = array() ) {
|
public function __construct( $args = array() ) {
|
||||||
global $post_id;
|
global $post_id;
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ class WP_Importer {
|
||||||
/**
|
/**
|
||||||
* Bump up the request timeout for http requests
|
* Bump up the request timeout for http requests
|
||||||
*
|
*
|
||||||
* @param int $val
|
* @param int $val
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function bump_request_timeout( $val ) {
|
public function bump_request_timeout( $val ) {
|
||||||
|
|
|
@ -11,14 +11,14 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
* @param array $args An associative array of arguments.
|
* @param array $args An associative array of arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $args = array() ) {
|
public function __construct( $args = array() ) {
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'plural' => 'bookmarks',
|
'plural' => 'bookmarks',
|
||||||
|
|
|
@ -89,7 +89,7 @@ class WP_List_Table {
|
||||||
* screen. If left null, the current screen will be automatically set.
|
* screen. If left null, the current screen will be automatically set.
|
||||||
* Default null.
|
* Default null.
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
public function __construct( $args = array() ) {
|
public function __construct( $args = array() ) {
|
||||||
$args = wp_parse_args( $args, array(
|
$args = wp_parse_args( $args, array(
|
||||||
'plural' => '',
|
'plural' => '',
|
||||||
|
|
|
@ -11,14 +11,14 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
* @param array $args An associative array of arguments.
|
* @param array $args An associative array of arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $args = array() ) {
|
public function __construct( $args = array() ) {
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'plural' => 'sites',
|
'plural' => 'sites',
|
||||||
|
|
|
@ -11,14 +11,14 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
* @param array $args An associative array of arguments.
|
* @param array $args An associative array of arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $args = array() ) {
|
public function __construct( $args = array() ) {
|
||||||
global $status, $page;
|
global $status, $page;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
|
|
|
@ -13,14 +13,14 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
* @param array $args An associative array of arguments.
|
* @param array $args An associative array of arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $args = array() ) {
|
public function __construct( $args = array() ) {
|
||||||
global $post_type, $taxonomy, $action, $tax;
|
global $post_type, $taxonomy, $action, $tax;
|
||||||
|
|
||||||
|
|
|
@ -14,14 +14,14 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
* @param array $args An associative array of arguments.
|
* @param array $args An associative array of arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $args = array() ) {
|
public function __construct( $args = array() ) {
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'ajax' => true,
|
'ajax' => true,
|
||||||
|
|
|
@ -30,14 +30,14 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||||
*
|
*
|
||||||
* @param array $args An associative array of arguments.
|
* @param array $args An associative array of arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $args = array() ) {
|
public function __construct( $args = array() ) {
|
||||||
parent::__construct( array(
|
parent::__construct( array(
|
||||||
'singular' => 'user',
|
'singular' => 'user',
|
||||||
|
|
|
@ -832,7 +832,7 @@ add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );
|
||||||
* as they disregard the autocomplete setting on the editor textarea. That can break the editor
|
* as they disregard the autocomplete setting on the editor textarea. That can break the editor
|
||||||
* when the user navigates to it with the browser's Back button. See #28037
|
* when the user navigates to it with the browser's Back button. See #28037
|
||||||
*
|
*
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
function post_form_autocomplete_off() {
|
function post_form_autocomplete_off() {
|
||||||
global $is_safari, $is_chrome;
|
global $is_safari, $is_chrome;
|
||||||
|
|
|
@ -248,7 +248,7 @@ case 'delete':
|
||||||
/**
|
/**
|
||||||
* Fires at the end of the delete users form prior to the confirm button.
|
* Fires at the end of the delete users form prior to the confirm button.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*
|
*
|
||||||
* @param WP_User $current_user WP_User object for the user being deleted.
|
* @param WP_User $current_user WP_User object for the user being deleted.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -15,7 +15,7 @@ class WP_Embed {
|
||||||
/**
|
/**
|
||||||
* When an URL cannot be embedded, return false instead of returning a link
|
* When an URL cannot be embedded, return false instead of returning a link
|
||||||
* or the URL. Bypasses the 'embed_maybe_make_link' filter.
|
* or the URL. Bypasses the 'embed_maybe_make_link' filter.
|
||||||
*/
|
*/
|
||||||
public $return_false_on_fail = false;
|
public $return_false_on_fail = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -147,7 +147,7 @@ function wptexturize($text, $reset = false) {
|
||||||
$dynamic_characters['apos'] = array_keys( $dynamic );
|
$dynamic_characters['apos'] = array_keys( $dynamic );
|
||||||
$dynamic_replacements['apos'] = array_values( $dynamic );
|
$dynamic_replacements['apos'] = array_values( $dynamic );
|
||||||
$dynamic = array();
|
$dynamic = array();
|
||||||
|
|
||||||
// Quoted Numbers like "42"
|
// Quoted Numbers like "42"
|
||||||
if ( '"' !== $opening_quote && '"' !== $closing_quote ) {
|
if ( '"' !== $opening_quote && '"' !== $closing_quote ) {
|
||||||
$dynamic[ '/(?<=\A|' . $spaces . ')"(\d[.,\d]*)"/' ] = $opening_quote . '$1' . $closing_quote;
|
$dynamic[ '/(?<=\A|' . $spaces . ')"(\d[.,\d]*)"/' ] = $opening_quote . '$1' . $closing_quote;
|
||||||
|
@ -167,11 +167,11 @@ function wptexturize($text, $reset = false) {
|
||||||
if ( '"' !== $closing_quote ) {
|
if ( '"' !== $closing_quote ) {
|
||||||
$dynamic[ '/"/' ] = $closing_quote;
|
$dynamic[ '/"/' ] = $closing_quote;
|
||||||
}
|
}
|
||||||
|
|
||||||
$dynamic_characters['quote'] = array_keys( $dynamic );
|
$dynamic_characters['quote'] = array_keys( $dynamic );
|
||||||
$dynamic_replacements['quote'] = array_values( $dynamic );
|
$dynamic_replacements['quote'] = array_values( $dynamic );
|
||||||
$dynamic = array();
|
$dynamic = array();
|
||||||
|
|
||||||
// Dashes and spaces
|
// Dashes and spaces
|
||||||
$dynamic[ '/---/' ] = $em_dash;
|
$dynamic[ '/---/' ] = $em_dash;
|
||||||
$dynamic[ '/(?<=' . $spaces . ')--(?=' . $spaces . ')/' ] = $em_dash;
|
$dynamic[ '/(?<=' . $spaces . ')--(?=' . $spaces . ')/' ] = $em_dash;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user